[jboss-user] [jBPM] - Re: How to create a simple waiting workflow

Jan Uhlir do-not-reply at jboss.com
Wed Feb 15 20:11:17 EST 2012


Jan Uhlir [https://community.jboss.org/people/espinosa_cz] created the discussion

"Re: How to create a simple waiting workflow"

To view the discussion, visit: https://community.jboss.org/message/716976#716976

--------------------------------------------------------------
> Maciej Swiderski wrote:
> 
> Exanle of BPMN2 file you can find  https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/resources/junit/BPMN2-IntermediateCatchEventSignal.bpmn2 here and sample code that operates on this can be found in testIntermediateCatchEventSignal() method  https://github.com/droolsjbpm/jbpm/blob/9f57fbfa2c3f519a127727cbbde06c4eb06e02be/jbpm-examples/src/main/java/org/jbpm/examples/junit/BPMN2JUnitTests.java here
Thank you.
However it brings more questions then answers  :) 
Here is the diagram of that process model:
(/jbpm-examples/src/main/resources/junit/BPMN2-IntermediateCatchEventSignal.bpmn2)
 https://community.jboss.org/servlet/JiveServlet/showImage/2-716976-17983/jbpm+screenshot+wait+state+examples.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-716976-17983/450-137/jbpm+screenshot+wait+state+examples.png 
Why there are two lanes? One process, but two lanes. How they are supposed to influence each other?

Note: The "User Task" is a custom task mapped to DoNothingWorkItemHandler, which does nothing, empty handler, but in the task properties is selected "Wait for Completion = true"
The "event" (beginning of the second "line") is the mentioned intermediateCatchEvent task.

I made a bit modified version of this example:
 https://community.jboss.org/servlet/JiveServlet/showImage/2-716976-17984/jbpm+screenshot+wait+state+examples+my+modification.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-716976-17984/450-104/jbpm+screenshot+wait+state+examples+my+modification.png 
When I re-run test now:
When I start the process, "Print something 1" is printed as expected.
When I send signal to the process, the "Print something 3" is printed, as expected.
And there is end of process.
The "Print something 2" is never reached.
More interestingly, the test is evaluated as "completed" even, despite the process still did not finished the "first line".
Puzzling I have to say.

Yes, I have my wait state, but still no idea how to signalize it to move to the next task.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/716976#716976]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120215/3508d043/attachment-0001.html 


More information about the jboss-user mailing list