<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