[jboss-user] [JBoss jBPM] - Re: Need help to fix timer issue
gchanteb
do-not-reply at jboss.com
Wed Mar 18 06:20:45 EDT 2009
Yep,
here are my JBoss AS logs when i use the process under jbpm-console:
11:14:13,199 INFO [STDOUT] Arunkumar---::tsmactoncr
11:14:13,239 INFO [STDOUT] Mail assignment handler.
My tasks in jbpm-console:
2 mail gchanteb at mycompany.com Not Started Examine Suspend Start
For this process:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="process4">
|
| <start-state name="start-state1">
| <transition to="tsmactoncr"></transition>
| </start-state>
|
| <state name="tsmactoncr" async="true">
| <event type="node-leave">
| <cancel-timer name="timer"></cancel-timer>
| </event>
| <timer duedate="7 seconds" name="timer" transition="to escalated">
| <script>
| System.out.println("Arunkumar---::"+node.getName());
| </script>
| </timer>
| <transition to="normailflow" name="to normal flow"></transition>
| <transition to="escalationflow" name="to escalated"></transition>
| </state>
|
| <state name="normailflow">
| <transition to="end-state1" name="to end-state1"></transition>
| </state>
|
| <task-node name="escalationflow">
| <task name="mail">
| <assignment class="mypackage.MailAssignmentHandler"></assignment>
| </task>
| <transition to="end-state1"></transition>
| </task-node>
|
| <end-state name="end-state1"></end-state>
|
| </process-definition>
And this MailAssignmentHandler:
mypackage;
|
| import org.jbpm.graph.exe.ExecutionContext;
| import org.jbpm.taskmgmt.def.AssignmentHandler;
| import org.jbpm.taskmgmt.exe.Assignable;
|
| public class MailAssignmentHandler implements AssignmentHandler
| {
| private static final long serialVersionUID = 9083542019895942536L;
|
| @Override
| public void assign(Assignable assignable, ExecutionContext executionContext) throws Exception
| {
| System.out.println("Mail assignment handler.");
| assignable.setActorId("gchanteb at mycompany.com");
| }
| }
I hope it helps you...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218988#4218988
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218988
More information about the jboss-user
mailing list