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 2051 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'
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]