1
votes

So I understand that if I want to notify about something to another pool, I can have a task named "notify client about succesful purchase". My question is, what happens when I want to send a notification among lanes?

For example if in the same pool I have a seller and an supervisor, and the seller has to notify the administrator that there is an order on the way. Can this be a task? or in a pool you don't have to notify anything and just draw the flow of the process's entity (in this case the order)?

2

2 Answers

1
votes

A Message Flow MUST connect two separate Pools. They connect either to the Pool boundary or to Flow Objects within the Pool boundary. They MUST NOT connect two objects within the same Pool.

A Send Task is a simple Task that is designed to send a Message to an external Participant (relative to the Process).

Based on the above excerpts taken from the BPMN 2.0 specification by Object Management Group, we cannot use either message flows or Send Task to represent the message communication within the process pool. Hence, my recommendation would be to use a simple System task "Notify Administrator"

Also, I would use a task than a "throw intermediate message event" because I understand from your requirement that notifying the administrator has to be done always, hence this becomes a task in the process than an event that may or may not happen.

0
votes

Whatever happens within one pool (even cross-lane) is your flow. You do not use notifications there.

Now if the seller has to notify the administrator and at the same time keep working on the order, you have to flows happening in parallel. So add your parallel gateway (diamond with a plus inside) and continue with two flows, one for the main process and second going to the administrator tasks. If you need to notify in some formalised way you may add a task Notify administrator but it's then moving on to administrator's task with a normal flow of the process and not a message (like when going to other pool).

If you don't have to process anything more or you pass the information to the administration and wait with further steps until they finishes their job, you just have a simple flow without gateway here and once the administrator finishes go back with your flow to your lane and continue as needed.

Simple rule of thumb:

Message and only message goes from one pool to another. Flow and only flow stays within the pool (it can cross lanes).

Data is auxiliary and not considered here.