Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Multiexcerpt include | ||||||||
---|---|---|---|---|---|---|---|---|
|
Differences of Operations
Operations in a library can be static or non-static operations.
| |||
| |||
| |||
You have two options to determine the target of a non-static operation:
|
Adding Operations
Select the operation you want to use from the service panel. Drag & d rop the operation to the operations flow in the execution pane.
| |||||||||||||
When the operation has been added to the operations flow, the displayed pins indicate needed object flows.
| |||||||||||||
Pins on the left of the action node indicate needed incoming object flow. | |||||||||||||
Pins on the right indicate outgoing object flow. | |||||||||||||
Target pins indicate the target of the operation which is the element to which the operation is to be applied. | |||||||||||||
Now you need to connect the pins with the corresponding variables. Depending on which data is required, you can use variables from the Persisted or Local section.
| |||||||||||||
| |||||||||||||
You can use the search to narrow down the content of the list. | |||||||||||||
When the persisted variable is displayed on the execution pane, draw the necessary object flow to the operation call. The color of the pins assists you during modeling, see Pin Highlighting for detailed information. | |||||||||||||
Object flows on the execution pane are routed automatically. You can use the execution pane context menu to change the algorithm of the relation path. | |||||||||||||
You can select an object flow to highlight it in blue - in larger models this helps to track the paths more easily. | |||||||||||||
You can also hover over an object flow to highlight it in black. |
Pin Highlighting
While dragging the object flow, the color of the pins assists you.
| When you start dragging an object flow, all pins of the same type and multiplicity are marked blue. Blue pins indicate that the relation will be valid. |
| White pins indicate that you are trying to connect pins that do not have the same type or multiplicity. The pins are marked in white only when you have reached them with the mouse pointer. |
| It will be possible to draw a connection to a white pin, but the relation will be invalid and displayed in red. |
| A pin turns red if a relation cannot be created at all. |
| For example, you cannot connect a local variable with another local variable, a persisted variable with another persisted variable, or draw a connection to a pin that is already connected. |
Special Case: Guard Expressions
Guard expressions (conditions) of exclusive gateways are implemented to the outgoing relations of the gateway. If you select the outgoing relation of an exclusive gateway on the diagram pane, section Return is displayed in the execution pane automatically. This section contains the unchangeable object return of type Boolean. | |
Operations that should be able to be used on a guard need to have a Boolean return value. This value should transport the following meaning:
Set the return value of the guard expression by connecting the output pin of the operation call to the return object. |