0 votes
in Interview Questions by (21.5k points)

2 Answers

+1 vote
selected by anonymous
Best answer

There are four type of gateways

Decision Gateway Patterns

Basic information about the different kinds of gateways are given below:

Exclusive Gateway

  • This kind of gateway sends tokens along only one of several possible paths based on a specific condition.
  • There must be at least 2 outgoing paths, but there is no upper limit.
  • This kind of gateway allows one token in and one token out; the gateway evaluates one condition at a time and once one of them is met, the token is passed onto the corresponding path and the rest of the conditions are not evaluated.
  • If no conditions are met, the token is sent along the "default" flow line.
  • It is good practice to ensure that only one condition can be met.

Inclusive Gateway

  • This kind of gateway can function as a split (i.e. multiple tokens can be generated from one and sent along diverging flow lines) and a join (multiple tokens can be consolidated into one).
  • For inclusive split gateways, a token enters and is evaluated according to one or more conditions.
  • Unlike exclusive gateways, ALL conditions are evaluated. If more than one condition is met, multiple tokens are generated and sent along the corresponding flow lines. If none of the conditions are met, a token is sent along the default flow line.
  • For inclusive join gateways, the gateway "looks" upstream and waits for ALL tokens to arrive, then CONSOLIDATES them into a single token and sends them along the path.
  • An inclusive gateway can also have multiple lines in and multiple lines out, in which case, all tokens are consolidated into one, which then undergoes evaluation as if it entered a normal inclusive split.

Parallel Gateway

  • These gateways can also act as splits and joins.
  • Unlike exclusive and inclusive gateways, parallel splits have NO conditions at all.
  • They direct a token along each and every possible flow line; there is no default flow line, since ALL flow lines are utilized.
  • Parallel joins wait for a token from every INCOMING flow line before consolidating the tokens and passing them onto the outgoing flow.
  • Only use a parallel join if you are certain that a token will flow along each incoming flow line every time.

Event Gateway

  • These gateways wait for one (or more) message events or timer events to determine the flow through the gateway.
  • These events are boxed together with the gateway to show that they function together.
  • Although many paths can originate from the gateway, only one path will be taken. This path is based solely on the event that occurs within the gateway. Tokens from multiple instances can be allowed into the gateway at once, but these instances will be evaluated separately from one another.

0 votes
by (16.2k points)

Related questions

0 votes
1 answer 669 views
0 votes
1 answer 296 views
0 votes
0 answers 104 views
+1 vote
2 answers 2.1k views
+1 vote
2 answers 2.7k views
0 votes
1 answer 466 views
0 votes
0 answers 140 views
0 votes
1 answer 500 views
0 votes
1 answer 778 views

609 questions

493 answers


1.9k users

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel