Got something like this:
<serviceTask id="servicetask4" name="UpdateState"
activiti:class="some.package.UpdateState">
</serviceTask>
public class UpdateState implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
…
//update process vars
execution.setVariable("approved", approved);
execution.setVariable("sent", pa.isSent());
getSomeJpa().edit(pa);
….
}
if getSomeJpa().edit(pa); throws an exception will the execution variable be changed on the DB and the workflow go forward? thanks in advance.