cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

I have a requirement where in some cases, if a UserTask has multiple recipients, the task needs to have all recipients approve the task before moving on to the next evaluation. It looks like currently, as soon as the first approver actions the task, the workflow proceeds to the next step.

I have tried, as a simple test, splitting to two separate UserTask components with the parallel gateway split/join setup and with this setup, once both task are actioned, the join step and subsequent steps are never reached. Even if this worked, it is not ideal since there may be N number of approvers for each step.

The SAP documentation on how this is handled is very sparse and I have searched through many blogs and Q&A to no avail.

Is this possible with SCP Workflows? If not, a suggested enhancement would be to have a checkbox or toggle on the UserTask details that specify that the UserTask is complete upon one approval or all approvals.

0 Likes
View Entire Topic
Archana
Product and Topic Expert
Product and Topic Expert

Hello Chris,
There are multiple ways to achieve this:

  • If you want to send a task to multiple users for approval, and want to move forward only when all of them have either approved/rejected the user task, then you use parallel gateway.
  • You can have all these users as recipients of the task. As until all your users complete the task, you do not want to complete it, then you need to code the complete button appropriately. Store the responses from the recipients, and until all of them have completed or responded, do not complete the task.

Hope that helps.

chrisnguyen
Explorer

Hi Archana,

Thank you for your suggestion. This gives me an alternate idea. My thought is instead of using parallel gateway, since I can have an unknown number of approvers in parallel, I will have all the approvers in a single user task. The complete button, which can we code in a custom UI will handle the completion of the single workflow instance once all appovers have approved or immediately exit upon the first rejection. The key here is the approve/reject buttons will have the necessary logic to decide whether to complete the task or keep it open.