AnsweredAssumed Answered

Issue in suspend or activate a process instance  but the 'status' not refresh till 'restart' the J2EE Server

Question asked by roundmonkey on Jan 24, 2014
Latest reply on Jan 28, 2014 by roundmonkey
Recently I am developing a system for our Gov and I found a issue during "Suspend/Activate" a process instance.

Following steps can recreate this issue:

1. Deployed the "activiti-rest" and the "activiti-explorer" into a same jboss, and make sure they connected to a same DB(I use the DB Jndi)

2. Suspend or activate a process instance in the "activiti-explore".

3. I found after I suspend or activate a process instance thru the activiti-explorer, I can still use the REST interface "http://localhost:8080/activiti-rest/service/runtime/process-instances" to start the process instance. Seems the "status" not refresh immediately…and I restart the JBOSS, then I tried to start the process instance like "myProcess" then I got the exception "myProcess:9:8451 is suspended, can not start".

My question is:

Why the activated or suspended status not refresh immediately? until I restart the JBOSS/TOMCAT, then the activated or suspended status will be effected? This is quite inconvenience, is there any way to activate or suspend the process instance immediately or I missed something else?

Outcomes