How to change Rollback State in Workflow

jxa7987
Tera Expert

I have a requirement that when a Catalog Task 2 Failed it will return to the previous Catalog Task 1 (closed state). 

After the Catalog Task 2 Activity,   I added a new Workflow Activity  "Rollback To",   it works and re- opens the Catalog Task 1, but the state of the Catalog Task 2 is being set to "Pending Approval". My question is, can we customize the state when I apply the Rollback To activity? Let say, I only like it to set as Pending since there is no approval happens. 

I could not find the business rule for that activity.Any leads please? Thank you. 

1 ACCEPTED SOLUTION

jxa7987
Tera Expert

I just removed the rollback activity and it works. 

View solution in original post

4 REPLIES 4

sachin_namjoshi
Kilo Patron
Kilo Patron

you can write run script to update state of catalog task as per your requirements.

rollback will reopen all previous tasks and approvals in your workflow. you can't customize rollback to activity.

 

Regards,

Sachin

Yes, I need to reopen the previous tasks. I also need to add rollback for catalog tasks 4 and if failed it will open all 3 previous tasks. Rollback functionality works well but the state is the only issue.

jxa7987
Tera Expert

Where will I insert my runscript? This is my Workflow. If Failed in Testing it should go back to Dev Task. Please help find_real_file.png

 

 

 

 

jxa7987
Tera Expert

I just removed the rollback activity and it works.