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

Question

Question

Force a task to start over if completed and do nothing if not started

asked on January 25, 2018 Show version history

Good afternoon,

I have a case in which 2 user tasks are used to make a decision. A parallel gateway is used to join the tasks and then...etc.

I'm looking for a way to be able to reset the task for any of the users if the other user wants to start over.

 

Example 1.

User 1 submits "Go"

User 2 submits "Go"

Process continues, nothing to see here

 

Example 2.

User 1 submits "Go"

User 2 submits "Stay"

Process should make User 1 submit the task again, even though it was already submitted

 

Example 3.

User 1 has not submitted

User 2 submits "Stay"

Process should just leave User 1 task alone, as nothing has been submitted anyways.

 

Below is my preliminary chart in which I'm barely brainstorming on how to tackle this.

 

Any ideas or suggestions?

 

Thank you,

 

Raul Gonzalez

StartOverProcess.png
0 0

Answer

SELECTED ANSWER
replied on January 25, 2018

Hi Raul,

I came up with a solution that required Workflow to reset field values.

Let's say we have two fields, one is "User1_Desicion" for keeping user 1 desicion, the other is User2_Desicion.

The process is like this:

The Exclusive Gateway (2) is used for checking field values:

The Workflow service task simply uses "Set Business Process Variables" and sets values of User1_Desicion and User2_Desicion to empty. It is used to reset the user decisions so when the value would be fresh new when running into the gateways.

0 0

Replies

replied on March 9, 2018

This is an old post but I just wanted to share that as I'm learning more about the product I managed to create what I needed in the original question without the use of a workflow.

 

Reset.PNG
Reset.PNG (21.33 KB)
1 0
replied on January 26, 2018

Thanks Rui,

I was afraid that we were going to need a workflow for this. Your logic looks really neat and would tackle the task if we decide to make use of a workflow.

Thanks again,

Raul Gonzalez

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

Sign in to reply to this post.