Hi all, I have deployed the jbpm-enterprise.ear into my existing jpm-jpdl-suite 3.2.2.The ear got successfully deployed. However when I am trying to achieve asynchronous execution by declaring one node as asynch="true" which I tried with the following code: | <?xml version="1.0" encoding="UTF-8"?> | <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="synch-process"> | <start-state name="start-state1"> | <task name="task-1"></task> | <transition to="node1"></transition> | </start-state> | <node name="node1" async="true"> | <action name="action-1" class="CustomerActionHandler1"></action> | <transition to="node2"></transition> | </node> | <node name="node2"> | <action name="actio-2" class="CustomActionHandler2"></action> | <transition to="end-state1"></transition> | </node> | <end-state name="end-state1"></end-state> | </process-definition> | I turned on SOPs in the following classes :-JmsMessageServiceImpl.java,JobListenerBean.java,ExecuteJobCommand.java,CommandServiceBean.java,CommandListenerBean.java and redployed the ear. The classes generated the SOPs properly stating the job message was dumped into the jbpm job queue and command was executed from the command service bean: Following is the trace-
17:27:45,053 INFO [STDOUT] [EMAIL PROTECTED] 17:27:45,053 INFO [STDOUT] [EMAIL PROTECTED] 17:27:45,053 INFO [STDOUT] ****************Destination***************QUEUE.JbpmJobQueue 17:27:45,069 INFO [STDOUT] **********************JOB [EMAIL PROTECTED] 17:27:45,085 INFO [STDOUT] **********************JOB ID*******************3884 17:27:45,085 INFO [STDOUT] ****************Message sent successfully to QUEUE.JbpmJobQueue 17:27:45,225 INFO [STDOUT] ^^^^^^^^^^^^^^^^^JOB LISTENER BEAN IS CALLED^^^^^^^^^^^^^^ 17:27:45,225 INFO [STDOUT] getting job id from jms message... 17:27:45,225 INFO [STDOUT] retrieved jobId '3884' via jms message 17:27:45,225 INFO [STDOUT] looking up local command service 17:27:45,240 INFO [STDOUT] executing command with local command service 17:27:45,349 INFO [STDOUT] Action class of asynch node is executed 17:27:45,381 INFO [STDOUT] Action class of synchronous node is called . However in the action class attached with the asynch node I had to write the following code snippet so that the process continued to the next node:- | executionContext.getNode().leave(executionContext); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121254#4121254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121254 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user