[jboss-user] [jBPM] - Re: saving state after workitem

Prasanth Manchambhatla do-not-reply at jboss.com
Thu Jan 26 19:38:06 EST 2012

Prasanth Manchambhatla [https://community.jboss.org/people/pmancham] created the discussion

"Re: saving state after workitem"

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

I have a workflow with 

start -> script task1 -> workitem1 ->signal -> script task2 -> workitem2 -> end

If state is saved at signal, and at script task2 server crashes, then, upon restarting server, I have to load all processIds that server was running (probably from database) and also load the last signal to be able to correctly start these processes.

StatefulKnowledgeSession ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sid, kbase, config, env); [This wont start the process from where it left off]
ProcessInstance pi = (ProcessInstance) ksession.getProcessInstance(pid);
pi.signalEvent(signal, signalData); // I have to store these in some store to be able to restart correctly after reload

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120126/88a247f3/attachment-0001.html 

More information about the jboss-user mailing list