we both posted at same time i guess..:)
It does not work in that way too..here is the actual complete code..I have even tried to put timer task in a seperate tag but deployment fails either way..the error message is same as posted before
<task-node name="rev">
| <task name="prev" blocking="true" swimlane="property">
| <description>
| sent for approval </description>
| <controller class="com.package.mycontroller"></controller>
| </task>
| <task>
| <timer duedate="2 minutes" name="reminder" repeat="yes">
| <mail name="notification" template="custom-test"/>
| </timer>
| </task>
| <transition to="test " name="test info needed"></transition>
| </task-node>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230783#4230783
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230783
Assuming you know how to put process state node in main process and you have deployed the subprocess before main process then there is one thing you need to do is make change in
org.jbpm.graph.node. DbSubProcessResolver class
method
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| // below line is the code present comment this out and put above line in code
| //JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230782#4230782
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230782
I fixed the above error with by adding an action tag around mail ( just guessed it..is it right? )
<timer duedate="2 minutes" name="reminder" repeat="yes">
| <action>
| <mail name="notification" template="custom-test"/>
| </action>
| </timer>
But now there is no notification being sent..I have added a custom template in the jbpm.templates - so that is not the issue definitely..if i add a reminder it works - so my mail configuration is fine.,
what is wrong?????
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230777#4230777
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230777