Community

Manual reroute in Jbpm 4.3

reply from HuiSheng Xu in jBPM - View the full discussion

Hi Martin,

 

OK, I see the problem.  After you used execution.setActivity() or moveTo(), you should save the modifed execution into database.

 

Generately, please do these operations in a Command, then jBPM 4 will commit the transaction automaticly.  Please refer this:

 

processEngine.execute(new Command() {

    public Object execute(Environment env) {

        // ...

        execution.setActivity(activityImpl)

       //...

    }
});

Reply to this message by going to Community

Start a new discussion in jBPM at Community