You are viewing limited content. For full access, please sign in.

Question

Question

Assign User Tasks based on a collection

asked on October 24, 2018

I have looked around but cannot really seem to find out how to do it or if its possible.

Essentially I am at a step in the middle of a process where the user wants to pick (from a list on the form they have) who gets the next tasks.  The tasks go into a parallel approval process.

The user could pick one person or even up to 6 people.  I'd like to simply have a collection where the user picks the person, can hit add and pick another if they want.  On submit it sends a parallel to all people in the collection. 

Is that possible?

 

Thanks,

Chris

1 0

Answer

SELECTED ANSWER
replied on October 26, 2018

I was thinking more like what I have mapped out below. You have the Pick People user task with a checkbox for each user. Then you have an inclusive gateway that will route to any outflow branch that meets a given condition. You have an outflow to the top user task that is "If User A is checked", then a user task assigned to user A. You also have an outflow for each potential user. On the backend of the user tasks, use another inclusive gateway to merge the process back together. The inclusive gateway for merging will wait for all of the active branches to return before continuing on. For instance in the example below, if user A and user C are selected, User A Task and User C Task would be active. The inclusive gateway on the end would wait until both user A and user C complete their tasks before allowing the instance to move on to the end event in this case. 

0 0

Replies

replied on October 26, 2018 Show version history

Ok, so if it 15 possible people I'd need 15 user tasks.  I guess the only other question is for the inclusive gateway at the end.  If any one of the User tasks A-C gets Denied can I check that on the out and route back to Pic People. 

 

Essentially only move to Approved if all of the potential Users approve.  So where would the 'if A or C last action deny" check happen?  The only option I see is Last User Action and not 'if any last user action'

Edit:  I suppose this is where I could use a Signal Throw and Catch huh.  I'll start looking at that.

Thanks Jared

1 0
replied on October 24, 2018

You could have a checkbox field with each of the potential people to assign to. After the user task, you would have an inclusive gateway with an outflow for each person. Each path would have a conditional If user A is checked, go to a user task assigned to user A, if user B is checked, go to a user task assigned to user B... The checkbox works best because the variable is multi-value and the conditional statement can check for each checkbox individually. 

0 0
replied on October 26, 2018

Sorry, I don't quite follow.  So you would have to create a task for every possible combination?

 

Here is kind of what I am trying to d.  Trying to pass a parallel task to a dynamic number of people

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.