31.01.2015 Views

SOA Magazine IV 01.2015

SOA Magazine IV 01.2015

SOA Magazine IV 01.2015

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BPM 12c Gateways<br />

Oracle BPM provides us with various components to control the flow of a process such as gateways,<br />

timer events, errors, message events, send and receive tasks, loop markers and multi-instance markers.<br />

In this article I will be elaborating the gateway control flow components and how we can use them to<br />

define the flow of our process. Gateways are very similar to a flowchart decision element. Using a<br />

gateway you can define the control points within your process by splitting and merging paths. At<br />

runtime a gateway will determine based on the control points defined at design time the path that a<br />

token will take through a process. There are five gateway types; Exclusive Gateway (XOR), Inclusive<br />

Gateway (OR), Parallel Gateway, Event Based Gateway and Complex Gateway.<br />

Exclusive Gateway<br />

Exclusive and Inclusive gateways consist of two outbound sequence flows; a default sequence flow<br />

representing the normal path between two objects and a conditional sequence flow to control the<br />

process flow based on the evaluation of an expression.<br />

The "Exclusive Gateway" is one of the most commonly used gateways where you can split your process<br />

into two or more paths. When a token reaches an exclusive gateway each of the conditional outbound<br />

sequence flows is evaluated in the order that you specified during design time when configuring the<br />

exclusive gateway and the first conditional flow that is evaluated to true is taken. If none of the<br />

conditional outbound sequence flows evaluates to true then the token moves down the default<br />

sequence flow. Please note that if you do not specify a default outbound sequence flow on an "Exclusive<br />

Gateway" you will get an error at design time and will not be able to compile and deploy your process.<br />

So let's see how you use an "Exclusive Gateway" to control the flow of a process. I have created a new<br />

BPM application using the "BPM Application" JDeveloper template and in the "Project <strong>SOA</strong> Settings"<br />

step i have selected "Composite with BPMN Process".<br />

Copyright © 2015 | All Rights Reserved <strong>SOA</strong> <strong>Magazine</strong> <strong>IV</strong> 79

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!