[jboss-user] [jBPM] - Re: ProcessContext Throwing NPE

Thomas Setiabudi do-not-reply at jboss.com
Wed Mar 13 23:44:10 EDT 2013


Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"Re: ProcessContext Throwing NPE"

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

--------------------------------------------------------------
Hi, (changed your name is it? was Roxy1987 right?)

So please find the attached process definition (test1.testAssignUser.v1.bpmn2)
The process has two process variables, they are:
1. pvFirstActor
2. pvSecondActor

The process is like what you said, it has 2 human task:
1. HumanTask1 with actor Id taken from the value of "pvFirstActor"
2. HumanTask2 with actor Id taken from the value of "pvSecondActor"


when we first start process we set the value of variable "pvFirstActor" that will be used as the first Human Task actor Id

then the first human task has output variable that called "secondActorName" that is mapped to "pvSecondActor"

so after we complete HumanTask1 then the value of "pvSecondActor" will be set based on the output of the HumanTask1

Attached a working test case too, look at the testAssignVariableAsActorId() test function inside PersistentProcessTest class in jbpm5-PersistentProcess.7z (it is based on sample from Mauricio Salatino / Salaboy)


Regards,
Thomas Setiabudi
--------------------------------------------------------------

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

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/20130313/c9293ff3/attachment.html 


More information about the jboss-user mailing list