jed jiang [
https://community.jboss.org/people/jedjiang] created the discussion
"Research for making a process instance go on with jbpm5 after server
restarting."
To view the discussion, visit:
https://community.jboss.org/message/761013#761013
--------------------------------------------------------------
Hi all,
I 'm doing some researches for going on the process with JBPM5.3 instances in the
eviroment of persistence and I create two sample:
https://community.jboss.org/servlet/JiveServlet/showImage/2-761013-19551/...
https://community.jboss.org/servlet/JiveServlet/downloadImage/2-761013-19...
1.
In the process , i defined a global variableA for printing it in the script1 and script2 ,
and the User Task1 can update it.
I start the process and the instance will wait for completing of user task, every thing
will be stored in the db.
Now i stop the server and restart it , reload the session from db ,register the
workItemHandler ,and get UserTask1 to complete whole process .In the userTask1 , i can get
the global variable , because it has been stored in the table of Content, and also
script2 can print that variableA which is updated by user task1.
It looks like everything is ok.
Let us look another sample:
https://community.jboss.org/servlet/JiveServlet/showImage/2-761013-19553/...
https://community.jboss.org/servlet/JiveServlet/downloadImage/2-761013-19...
2.
In this sample , when i complete the task 1 , i restart the server, then i reload the
session , register the workItemHandler , but when i complete the task2 , the process
instance will not go to the next node of script3.So i guess that the converge gateway
don't know the task 1 has been completed before the server restart.
Is that correct?What should i do for this issue?
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/761013#761013]
Start a new discussion in jBPM Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]