If I useexecutionService.endProcessInstance(id, Execution.STATE_SUSPENDED),
there will occur an Exception:
"invalid end state: suspended"
I think we need find another way.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241411#4241411
Reply to the post :
ht
how about following API
executionService.endProcessInstance(...)?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241385#4241385
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241385
___
I am not much sure about jBPM 4, but in jBPM 3 code I am using. I can suspend
and resume a process by using the following API's on ProcessInstance Class
org.jbpm.graph.exe.ProcessInstance
| public void suspend()
|
| suspends this execution. This will make sure that tasks, timers and
m