Hello again !
A first application java code may keep a reference on a given process instance.
In parallel, other applications, or timer execution may change the process
state, activating transition, changing variables, etc.
What is the best way to refresh the process instance for a new operation
(signal, task execution, variable modification, etc.) inside a context block ?
I've tried the following, and it seems to work :
| jbpmContext = jbpmConfiguration.createJbpmContext();
| try {
| processInstance =
jbpmContext.getGraphSession().loadProcessInstance(processInstance.getId());
| Token token = processInstance.getRootToken();
| token.signal();
| jbpmContext.save(processInstance);
| }
| finally {
| jbpmContext.close();
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949904#3949904
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949904
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user