WCP‐1: Sequence Pattern - MatthesElstermann/PASS-Workflow-Control-Pattern-Library GitHub Wiki
The Sequence Pattern consists of a series of activities connected in a linear sequence. The output of one activity serves as the input for the subsequent activity, ensuring a sequential flow of execution.
Petri-Net Representation
To have a look at the petri net representation, visit the workflowpatterns website.
PASS Representation
In PASS, each activity within the sequence is represented as a State (Do State, Send State, Receive State) and the order of execution is defined using Transitions. In PASS there are two simple ways to represent the Sequence Pattern:
PASS Variation 1: Simple Sequence with one Subject
This image represents a basic workflow control pattern in PASS, showcasing a simple sequence with one subject. The Subject Interaction Diagram (SID) consists of a single subject, representing an actor or participant.
In the Subject Behavior Diagram (SBD), there is a sequential flow of activities represented by three consecutive Do States. The naming convention used in the Petri net model shown at workflowpatterns has been incorporated into the PASS model.
This pattern demonstrates a straightforward sequential execution of activities within a single subject, providing a clear representation of the process flow.
PASS Variation 2: Sequence Across Two Subjects with Message Exchange
This variation consists of two subjects connected by a sequential flow. The sequence starts in Subject 1 and continues to Subject 2 through a Send and a Receive State.
The Subject Behavior Diagrams (SBD's) illustrates the sequential execution of activities in both subjects. This variation demonstrates a simple sequential flow of activities between two subjects.