We need to modify our current NERM workflow. Currently, even if the first level of approval is rejected, the request continues to the second level.
We need the workflow to close and terminate immediately upon a first-level rejection. The request should not execute any further steps once a “Denied” or “Rejected” action is taken. Please advise on the correct logic to apply to the transition so it routes to a “Closed” state instead of the next approval task.
Its important to understand how the Approval Form action works. If Approved, it proceeds to the next action in the workflow. If the Approval Form is rejected, the workflow goes back to the previous Request form or Approval form.
So you have 2 options depending on your needs:
) Create a sub workflow that just has the Approval Form, and in the main workflow call that flow and wait on it to finish. If the Approval form is rejected it will close the main flow, if approved it will continue
Another method: You would specifically need an attribute to know the decision by the approver as NERM doesn’t support retrieving/referencing the decision by the approver. Therefore, that’s why you need an attribute and utilization of a Fulfillment action that has the same form(s) as the approval form would. In addition, the form has an attribute to track “Approved” or “Rejected” . After the decision is made, you have a condition that closes the workflow if decision is “Rejected”