Group Approval activity waiting for all members of group to approve

christaylor
Kilo Contributor

I have a group approval activity that is set to wait for "An approval from each group", which from my understanding will mark the item approved if ANY of the group members approve it. However, it's sitting waiting for approval from all the members. Why would it do that? I had another workflow where the expected behavior was seen- only one of the group members would have to approve to let the workflow continue.

17 REPLIES 17

rob_blakey
Tera Expert

Hi Chris,



Can you please post a Screenshot of your workflow in it's entirety so that we can review?


christaylor
Kilo Contributor

Here is the workflow that runs when I order my catalog item. the Set Values activity sets approval=requested. I've also tried approval=approved but that doesn't do anything.



cat-req.JPG



My catalog item is set to run this workflow. So far I have only been able to get it to work by putting the approvals on the request item level so I can read in the variables from the item, This workflow runs against the sc_req_item table. I have a group defined with two members, and this Approval -Group activity is set to use that group. When I order the catalog item both members get an approval request but the workflow waits until both members approve, and then even with both approve, the workflow stops and the item says 'waiting for approval'. I've tried setting the group approval to first response from any group and approval from each group (I only have one group). It definitely isn't set to anything like approval from everyone.


cat-req-item.JPG


Chris, firstly, if you have an approval workflow you shouldn't need the requested value.. so lets remove that, as it will be requested regardless with your 'approval - group'.   Following that, after you approve you are not setting the value of approved, see the below example. After that, At what point does it run your "chris-ZFS-usic3-add-share' ?? you should make this workflow the workflow you need and tie the tasks into that workflow. Running two workflows for the same thing doesn't make sense when you can do it through one ?



Here is mine, the below, sends for approval, (In this case 1 user but it was a group), then sets the value as approved, then creates the tasks.


find_real_file.png


christaylor
Kilo Contributor

Thanks- after days of messing with this I've found that ordering a catalog item has to run two workflows- one again sc_request, and the actual item that runs against sc_req_item. That workflow is the one that's defined in the catalog item. My catalog item has some variables assigned that I only seem to get to from the sc_req_item table.



You're right, I removed the Set Values from the catalog request workflow and it works the same so I don't need that. In my catalog request item workflow I substituted Set Values for approved or rejected like you have in your example, but it still doesn't work. Even when both members of the group approve, the request just stops saying 'waiting for approval'.


Hmm, that's odd, next I guess and sorry for making you go back and fourth, can you raise a request based on your scenario, then go to the ticket once both of the approvers have approved and then select "Show Workflow".



find_real_file.png



This should allow you to see where this is currently sitting and if your workflow is even being triggered off?