cancel
Showing results for 
Search instead for 
Did you mean: 

Not Able To Design Process

ajaz
Champ in-the-making
Champ in-the-making
This Activiti treasure is indeed a treasure. Thank you all who have developed it. I have an issue that I am not able to design or address.

<strong>Process Description:</strong>

A process starts with a user task called <strong>Recipient</strong>. This user task (Recipient) can take the following actions (user tasks) in any combination or no combination:

1.   <strong>ResponseMeBack</strong> (user task): This user task, after doing its work, will respond back to the sender who sought response.

2.   <strong>Assignment</strong> (user task): This user task is assigned to a user who in return can take 3 actions (user tasks) – <strong>ResponseMeBack</strong>, <strong>Assignment</strong> and <strong>ForYourInfo</strong> in any combination or no combination.

3.   <strong>ForYourInfo</strong> (user task): This user task is just information informing the user. It does not do anything further.

I am not able to design the process with the available gateways. Would anyone assist?
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
Just have a form with 3 possible outcomes. Use an exclusive gateway that uses the otucome variable to route to the correct task (or route back to the original task)

ajaz
Champ in-the-making
Champ in-the-making
Thank you jbarrez. How sweet of you. I did what you said but that is not the case. The "Recipient" task can assign either/all of the three tasks (<strong>ResponseMeBack</strong>, <strong>Assignment</strong> and <strong>ForYourInfo</strong>) to different users. That is why I used <strong>inclusive gateway</strong> from "Recipient" to these 3 tasks. But where I am stuck let me explain:

Suppose first time a user, initiator, is at "Recipient" task. He/she assigns all of three tasks (ResponseMeBack, Assignment and ForYourInfo) to different users.
ResponseMeBack to user A,
Assignment to user B and
ForYourInfo to user C.

Suppose user B, at Assignment task,  executes all the three tasks again to 3 different users. User A's response will come back to the initiator who again can execute the three tasks.

That is where I am not able to come up with the proper use of gateways. I hope I am able to make you understand.

jbarrez
Star Contributor
Star Contributor
Why wouldn't a big joining inclusive gateway do the trick? If you put it all the way at the end, it will wait for all tasks to be finished.

ajaz
Champ in-the-making
Champ in-the-making
Thanks jbarrez again.

As I said above I have 4 user tasks:
1. Recipient.
2. ResponseMeBack
3. Assignment
4. ForYourInfo

Explanation:

1. Recipient can assign one/two/three of these tasks (ResponseMeBack, Assignment and ForYourInfo) to different users. 
2. Assignment Task in turn can assign one/two/three of these tasks (ResponseMeBack, Assignment and ForYourInfo) to different users.

I have tried many combinations but nothing seems to work.

Would throw some light what you described in your last comment? That will be grateful of you.
Thanks

jbarrez
Star Contributor
Star Contributor
Well, you would need to have a fork gateway before 2,3, 4. And a sequenceflow + gateway going out from 'assignment'.
All the outgoing sequence flow would need to go to a big inclusive gateway at the end. Effectively waiting for all tasks to be finished.