- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2018 06:07 AM
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:
- Stage = 'Request Cancelled'
- 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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2018 08:06 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2018 08:06 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2018 12:52 PM
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!