I have suspended the process instance and before activate i would like to modify the process instance. The modification involves moving token a activity before where it is suspended. I get optimistic locking exception. Could someone help me with this?
ActivityInstance ai = runtimeService.getActivityInstance(piId);