Escolar Documentos
Profissional Documentos
Cultura Documentos
www.hilcoe.com.et
www.hilcoe.com.et
www.hilcoe.com.et
In these circumstances new process instances will be created and the instantiate flag of the process is set to true. [a runtime b/r] For a Process instance to become completed, all tokens in that instance MUST reach an end node, =>
(1) There is no token remaining within the Process instance, (2) No Activity of the Process is still active.
* Note also that if a token reaches a Terminate End Event, the entire Process is abnormally terminated
www.hilcoe.com.et
10
Flow nodes:
Event Activity ChoreographyActvity Gateway
SequenceFlow
www.hilcoe.com.et
11
www.hilcoe.com.et
12
Activity
Is an abstract super class for all Concrete Activity types
It inherits the attributes and model associations of FlowElement Some more attributes of Activity element:
www.hilcoe.com.et
13
Attribute Name
isForCompensation: boolean = false
Description
A flag that identifies whether this Activity is intended for the purposes of compensation. If false, then this Activity executes as a result of normal execution flow. If true, this Activity is only activated when a Compensation Event is detected and initiated under Compensation Event visibility scope (see page 281 for more information on scopes). An Activity MAY be performed once or MAY be repeated. If repeated, the Activity MUST have loopCharacteristics that define the repe-tition criteria (if the isExecutable attribute of the Process is set to true). The Sequence Flow that will receive a token when none of the conditionExpressions on other outgoing Sequence Flows evaluate to true. The default Sequence Flow should not have a conditionExpression; any such Expression SHALL be ignored. This references the Intermediate Events that are attached to the boundary of the Activity The default value is 1. The value MUST NOT be less than 1. This attribute defines the number of tokens that MUST arrive before the Activity can begin. Note that any value for the attribute that is greater than 1 is an advanced type of modeling and should be used with caution.
www.hilcoe.com.et 14
The Start Quantity attribute of an activity defines the number of token required for the activity to be Ready for execution The first InputSet where all data inputs are available (by means of data associations) is used to start the execution of the Activity. If no InputSet is available, then the execution will wait until this condition is met this InputSet is based on data associations For tasks that are attached after Event-Based Exclusive Gateways, the first element (Task or Event) that completes causes all other Tasks to be withdrawn The diagram shows complete conditions faced by an activity from start to end
www.hilcoe.com.et 16
If the Activity has no outgoing Sequence Flows, the Activity will terminate without producing any tokens and termination semantics for the container is then applied Automated activities are executed by a system, while manual activities are executed by humans (or a system of that capability) All Activities share common attributes and behavior such as states and state transitions.
CS752, November 2012 www.hilcoe.com.et 17
A task has no more attributes than it inherits from the Activity super class; while the variations have
CS752, November 2012 www.hilcoe.com.et 18
www.hilcoe.com.et
20
Tasks
www.hilcoe.com.et
21
Read on the execution semantics of Sub Process, Call Activity, Ad-Hoc SubProcess, Loop Activity and Multiple Instance Activity
www.hilcoe.com.et
22
Send task
A task specifically designed to send a Message to an external Participant
www.hilcoe.com.et
23
www.hilcoe.com.et
24
Intermediate Events
The handling consists of waiting for the Event to occur. Waiting starts when the Intermediate Event is reached Once the Event occurs, it is consumed
End Event
The behavior associated with the Event type is performed
BPMN to WS-BPEL
Here a mapping of a BPMN model to WS-BPEL that is derived by analyzing the BPMN objects and the relationships between the objects is considered Not all BPMN orchestration Processes can be mapped to WS-BPEL in a straight-forward way.
One reason being BPMN allows the modeler to draw almost arbitrary graphs to model control flow
Only sound and well synchronized BPMN Orchestration processes can be directly mapped to WS-BPEL
CS752, November 2012 www.hilcoe.com.et 27
Directed graphs
The Gateways and the Sequence Flows of the BPMN orchestration Process form a directed graph A block of a diagram is a connected sub-graph that is connected to the rest of the graph only through exactly two Sequence Flows:
exactly one Sequence Flow entering the block and exactly one Sequence Flow leaving the block
A block hierarchy for a Process model is a set of blocks of the Process model in which each pair of blocks is either nested or disjoint and which contains the whole process model
CS752, November 2012 www.hilcoe.com.et 29
www.hilcoe.com.et
30
www.hilcoe.com.et
31
www.hilcoe.com.et
32
Continues