How to implement a BPM with dynamic numbers of person envolved?

I want a workflow in below way: several people agree on one thing, then flow end, otherwise, like parts of people agree, others no action, then nothing needs to do. Silimar like below:

In above flow, there needs 4 people to take action, but my case can’t tell how many person need to take action, maybe 4, 3, or 2, or 1, depends on business logic.

How to implement this?

I managed to make it work using multi-instance attribute.