Hello,
I have the following process flow:
When a token hits the intermediate message “Resume Process”, it’s held there until I send a message to get it to follow one of the 4 flows:
runtimeService.createMessageCorrelation("resume")
.processInstanceBusinessKey(jd.getId())
.setVariables(properties)
.correlateWithResult();
Now, as far as hitting the intermediate event and moving things forward by calling the above code, all is well. The problem is that when I enter one of the call activities and a TaskListener is invoked for a create event, any changes to the domain object are not made permanent. I’m using an h2 db for testing atm. Everything works the first time for this diagram, but when it loops round to the intermediate event and enters the process again, things go wrong. Any suggestions?