I am trying to implement a behaviour in jbpm where a failed operation is retried a number of times with some delay between retries.
I am using the 3.1.alpha.
the problem seems to arise in the Timer for the delay which I specified like this:
<state name="wait2minutes"> <transition name="timeElapsed" to="doOperation"/> <timer name='retryDelay' duedate='2 minutes' transition='timeElapsed' > </timer> </state>]
ProcessDefinition processDefinition = jbpmSession .getGraphSession() .findLatestProcessDefinition("testProcess"); ProcessInstance processInstance = new ProcessInstance(processDefinition); Token token = processInstance.getRootToken(); assertEquals("start", token.getNode().getName()); token.signal(); jbpmSession.commitTransaction(); jbpmSession.close();
ahh, the second problem was apparently caused by not doing a
before the commit...
just my first problem unsolved then...