Urgent support-Mutiple approvers for a catalog item

MohammedYaseen
Tera Expert

Hi All,

 

I have a scenario where, 4 approvers are there for a catalog item

1)All 4 are part of same assignment group

2)All 4 have to respond either approve or reject

3)If anyone rejects it should wait for others to respond and finally the request should gets closed incomplete

4)If all 4 approves, request should gets closed complete

5)If all 4 rejects , request to get cancelled

When i try this in workflow, whenever a reject happens and other 3 responds with approve or reject, workflow still shows running and not getting finished.

@Ankur Bawiskar 

 

 

 

10 REPLIES 10

Harish KM
Kilo Patron
Kilo Patron

HI @MohammedYaseen in your approval group activity, have you define the below yellow color highlighted

HarishKM_0-1710911500590.png

 

Regards
Harish

Yes Harish, i have done that

Hi @MohammedYaseen I just tested, for rejection it waits, but if any approver approver the other approvers are set to no Longer required, so you can the below script, this will wait for all approvers to approve/reject.

change wait for to "condition based on script"

Script:

if (counts.total ==counts.rejected)
{
answer=rejected;
}
else if(count.total==(parseInt(count.approved) + parseInt(count.rejected)))
{
answer=approved;
}

HarishKM_0-1710912452685.png

Result:

HarishKM_1-1710912502019.png

 

Regards
Harish

MohammedYaseen
Tera Expert

Thanks Harish i will try this. Also , how will the request status will set to closed when mixed decisions(Approved and rejected) in same group are provided