I've been mislead also. https://jira.jboss.org/jira/browse/JBPM-2254
Thought that notification and reminder accepted a template attribute, but looking at the xsd, they don't.
BUT... according to the source it should work. So try something like I mentioned before:
| <task duedate="10 seconds" g="36,108,97,52" name="Visa Conseiller">
| <assignment-handler class="be.axi.bpm.handlers.TaskAssignmentHandler"/>
| <notification template="MyTaskNotification"/>
| <reminder duedate="15 seconds"/>
| <transition g="-76,-12" name="to Inspection" to="Inspection"/>
| </task>
|
| <mail-template name="MyTask-notification">
| <to addresses="xxxx(a)xxxi.be" />
| <subject>Assignment notification (E)</subject>
| <text>Task assigned</text>
| </mail-template>
|
|
And if embedding the template in the pd does not work, try putting the template in the config file.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246413#4246413
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246413
hmm..i am running out of ideas...
I had the same requirement but I have acheive it it in JBPM 3 with an event...I think things have changed considerably in JBPM 4..
In JBPM 3 the task assignment mail template and event was called with the same name "task-assign" so I dint have any problem..The last piece of advice I would give is to find the event associated with the task assignment..and to find out how to trigger an event from the code as yours does not seem to do anything (probably the syntax is wrong)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246368#4246368
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246368