Using an operation or sub-process
In a process diagram, a process can be represented either by:
• an operation (atomic task)
The operation can only be owned by the described process.
• a process (sub-process)
The process can only be owned by the described process, of which it becomes a sub-process.
For data consistency, you cannot use the toolbar to add an existing sub-process to the described process.
To support bottom-up modeling, you can add an existing process to the diagram by drag and drop from the process inventory (tree of the browse area) or the search results.
When you drag and drop a process, you are prompted to choose whether it should be used as a sub-process, within an external participant, or as an operation calling a process. (see Creating an operation that calls a process).
• a called process (a process called by an operation)
The called process may be owned by a library or by a process other than the one described. A process can thus be called in different contexts.
Creating an operation that calls a process
You can create an operation that calls a process. This functionality enables, for example, replacement of the process called by another process without disturbing description of the main process.
To create an operation that calls a process:
1. In the object inserting bar, click the drop down menu of Operation
and select Process.
and select Process.2. Move the object to the appropriate area within the diagram.
The add dialog box appears.
3. Select the called process.
In our example, "Process Purchase Request" could be replaced by "Process Urgent Purchase Request".
4. Click the Create button.
The operation appears in the diagram with the name of the process.
Calling a Process from an Operation
From an operation, you can call an existing process or create a new one.
To call an existing process from a operation:
1. Click the drop down menu of the operation and select Connect Called Process.
The search dialog box opens.
2. Select the process that interests you.
3. Click the Connect button.
To create a process from an operation:
The new process appears in the operation icone.
Transforming an operation into a sub-process
To transform an operation into a sub-process:
The operation is replaced by a process having the same name.
Transforming a sub-process into an operation
It is possible to transform a process into an operation. Two possibilities are proposed:
• the process is replaced by a new operation whose name is that of the process,
• the process becomes a process called by a new operation
To transform a process into an operation
An operation with the process name appears in the diagram.
To transform a process in a called process:
An operation with the process name appears in the diagram.