Tun Mang [
http://community.jboss.org/people/tunmang] created the discussion
"Help for deploying a mail node with MailTemplateRegistry"
To view the discussion, visit:
http://community.jboss.org/message/554222#554222
--------------------------------------------------------------
Hi there:
When deploy a process definition with the following mail node (AuditMailProducer is
implemented) as shown below :
#
<mail name='send mail' class='org.example.AuditMailProducer'>
<property name='template'>
<object method='getTemplate'>
<factory><ref
type='org.jbpm.pvm.internal.email.impl.MailTemplateRegistry'/></factory>
<arg><string value='rectify-template'/></arg>
</object>
</property>
<property name='auditGroup'><string
value='thinkpol'/></property>
<transition to='end' />
</mail>
It throws the following exceptions:
[DefaultCommandService] exception while executing command
org.jbpm.pvm.internal.cmd.DeployCmd@18ff27
org.jbpm.api.JbpmException:
Caused by: org.jbpm.pvm.internal.wire.WireException: created factory object is null,
can't invoke method 'getTemplate' on it
at
org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:176)
at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:469)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:448)
at
org.jbpm.pvm.internal.wire.operation.PropertyOperation.apply(PropertyOperation.java:27)
at
org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:234)
... 30 more
Is it because some service descriptor's entry missing in jbpm.default.cfg.xml ?
Thanks for your help and time.
Tun Mang
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/554222#554222]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]