Answered

Complex Gateway Behavior

What is the behavior of the Complex Gateway?It was configured 4 routes and the system show to us a check box to choice wich route I wanna, but even was select 2 ou more, just one route is done. If I select two route and one of this is a Complete case, the default route that the case use is Complete Case. I didn't see any additional configurations for this type of gateway.

Comments (5)

photo
1

Dear Cibele,

You may use a Complex Gateway and an expression to filter each token and decide whether or not to continue with the process. For example, if you want to keep only the last token that reaches a point you can use the following configuration:

1. Add a Gateway to the model.

synchronization_each_token_1

2. Add a Boolean attribute in your database where you can control when an instance of the multiple sub-process has finished.

synchronization_each_token_2

3. Evaluate the following expression every time a token reaches the gateways, leaving only the last active. This way only the last token will be able to go through the flow, all other tokens will be discarded:

synchronization_each_token_3

<count(MyCollection)> = <count(MyCollection[Attrib=true])>;

You can customize your filter according to your business needs.

For further information:

Regards

photo
1

Thank you Juan.

But I didn't understand how configure this in my case. How I can handle the activities that the complex gateway will be directed if is true(Image), the options are a event after the gateway.

Will be like this: <count(Comunicação)> = <count(Comunicacao[Event Name=true])> ?

ea9c4412d5f5000c42b17a0a918cdd40

08db73a860ecfc256f2538a12b33a96a

193e1e5d6e9c78c9bf6b1f440e12b82a

photo
1

Any suggestion?

photo
1

Dear Cibele,

We are analysing this question, as soon as possible, we will write back.

Regards

photo
1

Dear Cibele,

After our analysis, we guess that you do not need a complex gateway in this part because it is created to synchronise some ways after to join complex conditions. Instead of it, we believe that you need an exclusive gateway which activates the requirement tokens according your to business needs.

Consideration:

  • When two or more transitions exit this shape at least one should be “Else”. The other outgoing sequence flows must have business conditions for Bizagi to evaluate. Only one can be met.
  • This figure is also used to synchronize paths. The first token to reach the shape will continue the flow.

For further information:

Regards