Canceling a change

jtw1228
Giga Contributor

Hello. It seems that OOB functionality in SN is that when a Change gets canceled, its Parent (which in our case is a RITM) is marked as:

  • Stage = 'Completed'
  • State = 'Closed Complete'

I would like to change this so that when a change gets canceled its parent (which is a RITM) gets changed to:

  1. Stage = 'Request Cancelled'
  2. State = 'Closed Incomplete'

Unfortunately, I cannot find where this update of the Change Parent is currently being done when the Change is canceled. I assumed it was some type of Business Rule, but I can't find it. Any ideas on where I should look to see how the Parent gets updated when a Change is Canceled?

Thanks in advance for your help.

1 ACCEPTED SOLUTION

Hi James,



Ok, so the root cause is known now. Since you have the path from Create Task activity going always to the "Log message" activity which has Stage set to Completed, then the RITM is always marked as Completed.



What you need to do is to change the paths going out of Create Task activity via so called Condition (Manage workflow activity conditions ) - now you have only one condition there which is called "Always" but you want to have at least two (maybe more) like "Completed" and "Cancelled" and in them you check the result of the activity - in case change request has been cancelled, you follow Cancelled path to an activity with Stage "Request Cancelled" that will set state to Cancelled, in case it was closed otherwise, you go with "Completed" path to existing "Log Message" activity.



If you are not sure what I mean, it is similar to what you have by default in Approval - Group activity - where you have two conditions "Approved" and "Rejected" and you go different way based on the result of approval - so do the same for your Create Task activity.



Best regards,


Dominik


View solution in original post

6 REPLIES 6

Hi James,



Ok, so the root cause is known now. Since you have the path from Create Task activity going always to the "Log message" activity which has Stage set to Completed, then the RITM is always marked as Completed.



What you need to do is to change the paths going out of Create Task activity via so called Condition (Manage workflow activity conditions ) - now you have only one condition there which is called "Always" but you want to have at least two (maybe more) like "Completed" and "Cancelled" and in them you check the result of the activity - in case change request has been cancelled, you follow Cancelled path to an activity with Stage "Request Cancelled" that will set state to Cancelled, in case it was closed otherwise, you go with "Completed" path to existing "Log Message" activity.



If you are not sure what I mean, it is similar to what you have by default in Approval - Group activity - where you have two conditions "Approved" and "Rejected" and you go different way based on the result of approval - so do the same for your Create Task activity.



Best regards,


Dominik


Thanks! This worked perfectly! I was confused because right-clicking on the activity didn't seem to work at first, but after about 10-15 seconds the context menu did appear where I could add the proper conditions.


Thanks again. Much appreciated!