cancel
Showing results for 
Search instead for 
Did you mean: 

rollback question??

tanxu1213
Champ in-the-making
Champ in-the-making
hi!
   I have a request like this:
process define:   start event->Task A->Task B->Task C->end event
I need to rollback to Task A when Task B completed.
how to do this?thanks!!!
4 REPLIES 4

tomcheng76
Champ in-the-making
Champ in-the-making
if you do some manual db operation on task b, you have to rollback manually.

create a xor gateway between b and c, create a xor gateway in front of a

Start-X-A-B-X-C-End
      |__R__|

X-C , you can specify condition on the path (when should the gateway pass the execution to C)

tanxu1213
Champ in-the-making
Champ in-the-making
well,can i rollback task from B to A?

tomcheng76
Champ in-the-making
Champ in-the-making
You can, click the "rollback" line, in main config, you can type your condition.
for example you set a process variable name "rollback"

in the condition, you can type "${rollback}" without double quote, then the process engine will check if rollback is true in your execution, if that is true, it will forward the execute back to Task A.

For the "go" line, type ${!rollback}

in fact, it is not a rollback, it is a re-execution of task A. hope this help.

tanxu1213
Champ in-the-making
Champ in-the-making
You can, click the "rollback" line, in main config, you can type your condition.
for example you set a process variable name "rollback"

in the condition, you can type "${rollback}" without double quote, then the process engine will check if rollback is true in your execution, if that is true, it will forward the execute back to Task A.

For the "go" line, type ${!rollback}

in fact, it is not a rollback, it is a re-execution of task A. hope this help.



got it!!thanks a lot!!!