- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2020 06:22 AM
Steps:
- User raised CR and sent it for approval
- Now in assess state if he realize that he forgot to add location, he has option- to move CR to new state(‘Revert to New’). If user moving CR to new, Approval are cancelled.
- Now CR is in New state when user can add location and move CR to assess state. Issue is: in assess state as well approval are cancelled, not re-initiating as CR progressing.
__________________________________________
- Once CR is reverted to new- same changes doesn’t reflect in workflow
Also old approvals get cancelled.
- After I sent CR for approval again after changes, New approval record doesn’t trigger. Ideally it should happen OOTB.
- Approver is not notified about cancellation of approval record and he tried approving CR and got mail response from system that it is cancelled.
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2020 07:19 AM
Hi Priyanka,
This is known issue if you instance is prior to Orlando instance. The issue is fixed in Orlando instance.
If your instance is prior to that version then here are the steps which you need to follow:
You need to update the BR.
Steps:
1. Open the business rule whose name is : Change reverted to New
Table - change_request.
2. Update the script in the business rule with the script below:
(function executeRule(current, previous /*null when async*/) {
// Disassociate approvals
new ChangeRequestStateHandler(current).disassociateApprovalsFromWorkflow();
// Set cancelled state on outstanding approvals
var approvalUtils = new WorkflowApprovalUtils();
var changeSysId = current.getUniqueValue();
var statesToCancel = ['requested', 'not requested'];
var msg = gs.getMessage('This approval record was canceled as a result of the related change request moving back to the {0} state.', current.state.getDisplayValue());
approvalUtils.setUserApprovalsByTask(changeSysId, 'cancelled', msg, statesToCancel);
approvalUtils.setGroupApprovalsByTask(changeSysId, 'cancelled', msg, statesToCancel);
// reset approval status
current.approval = 'not requested';
})(current, previous);
Note: This was update in the BR in Orlando release to re-trigger the approvals when you click on revert to new button.
Please mark helpful and correct.
Thanks,
CB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2023 10:03 PM
Chander,
This solution works for changes that do not use Change Models.
'Change reverted to New' Business rule condition:
I have the same issue, when the "Change Approval Policy" Activity is executing and the 'Revert to New' UI Action is clicked.
Regards
Dan