Instruction
Type CDM 7.2.0Instruction to a function that will be used to perform a business event
Attributes
All 2 declared on Instruction. Cardinality in amber is required.
| Name | Type | Card. | Description |
|---|---|---|---|
| primitiveInstruction | PrimitiveInstruction | 0..1 | Specifies the primitive instructions that will be used to call primitive event functions. |
| before | TradeState | 0..1 | Specifies the trade state that will be acted on by the primitive event functions. |
Conditions
Validation rules the model enforces on this type, in Rune. An instance that breaks one of these is invalid CDM, whatever produced it.
if primitiveInstruction -> split exists
then primitiveInstruction -> split only exists (if primitiveInstruction -> execution exists then before is absent else True)
and (if before is absent then primitiveInstruction -> execution exists else True) Referenced by
1 type holds an Instruction as an attribute.
Functions
Model functions that produce or consume this type. These are the CDM's own behaviour — the logic a correct implementation has to match.
| Function | Role | Description |
|---|---|---|
| Create_PairOffInstruction | returns | Creates a set of instructions to pair-off a set of trades based on a pair reference. A package component is created based on that pair reference and the list of identifiers for the underlying trades. That package component is then added onto the execution details of every underlying trade. The existing trades are not terminated. |
| Create_BusinessEvent | takes | Creates a business event from instructions containing primitive instructions and optionally a trade state. |
Open Instruction in the Model Browser
Walk the tree and the reference graph interactively, and switch releases to see how the type has changed. Free, no signup.