Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By raja2704
#813117
Hi,

I want to create a parallel task where the Validator 1 and Validator 2 approve or reject the case. Only if both the user approve then it has to route to the Director otherwise end of the case. But, the parallel task should consider both validator 1 and validator 2 decision and only if 2 task completed then it has to route Director or ends.
How to achieve this?

regards,
Raja
Attachments
Parallel.JPG
Parallel.JPG (57.42 KiB) Viewed 2056 times
User avatar
By amosbatto
#813122
Let's say that you have the variables approvedManager1 and approvedManage2 which are associated with checkboxes.

In your exclusive gateway, use these routing rule conditions:

To Director:
is_array(@=approvedManager1) and @=approvedManager1[0] == '1' and is_array(@=approvedManager2) and @=approvedManager2[0] == '1'

To End Event:
!is_array(@=approvedManager1) or @=approvedManager1[0] != '1' or !is_array(@=approvedManager2) or @=approvedManager2[0] != '1'

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]