0 votes
4.3k views
in Interview Questions by (21.5k points)

2 Answers

+1 vote
by
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.3k points)

Related questions

0 votes
1 answer 1.0k views
0 votes
1 answer 506 views
0 votes
0 answers 262 views
+1 vote
2 answers 4.4k views
+1 vote
2 answers 4.5k views
0 votes
1 answer 706 views
0 votes
0 answers 267 views
0 votes
1 answer 1.2k views
0 votes
1 answer 1.1k views

634 questions

495 answers

97 comments

2.7k users

Join BPM Community Discord Channel

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
...