Expand my Community achievements bar.

Fusion Scenario that closes a task when all advanced proofs (with multiple stages) in the task are "Approved"

Avatar

Level 1

I am struggling with this case.
I have a scenario that runs smoothly and closes as "completed" all tasks that have a "proof" that has been approved (advanced proofing with multiple stages). This was set up with the hypothesis that users were going to upload just one proof for each task
Now, after a few months of usage, we have a different use case where users upload multiple proofs to a single task and we need to change the Fusion Scenario in order to work in this case.
The logic must be: 
- if all proofs in the task (advanced proofs with multiple stages) are "approved" ==> update the task as "completed"
- if even one proof is still pending or "change requested" ==> leave the task untouched

I tried to set up in Fusion a very simple algorithm such as:
- Count all proofs in the task = (A)
- Count all proofs completed in the task = (B)
if A-B=0 ==> Complete the task 
if A-B>0 do nothing

I am not able to set up the counting though, and I am stuck.
I have tried using the Array Aggregator and Count Tool but I am not able to get a single bundle in output with the count result
Could any Fusion Guru please help? 


MarcoDo5_0-1730998059678.png

 

1 Reply

Avatar

Level 6

Why not just use the API to do a /count operation?  Count all proofs with a non-complete status.  When 0, proceed to process the task from there.