InstructionComposition
Type CDM 7.2.0Represents an Instruction Composition orchestration, holding data, shared history, and an ordered sequence of CompositionSteps. Each InstructionComposition will have one or more CompositionStps.
Attributes
All 6 declared on InstructionComposition. Cardinality in amber is required.
| Name | Type | Card. | Description |
|---|---|---|---|
| compositionStep | CompositionStep | 1..* | Ordered sequence of CompositionSteps that drive the Instruction Composition process (atomic actions, calculations, validations). |
| compositionState | CompositionState | 0..1 | Shared state accumulated across executed steps, capturing intermediate and final outputs of the Instruction Composition process. |
| instructionCompositionType | InstructionCompositionTypeEnum | 1..1 | Type of Instruction Composition being orchestrated (e.g. ResetInstruction). |
| identifier | string | 1..1 | Unique identifier of this InstructionComposition instance. |
| tradeId | TradeIdentifier | 0..1 | Identifier of the underlying trade to which this InstructionComposition relates. |
| instructionCompositionOutput | InstructionCompositionOutput | 0..1 | Outputs of each Instruction Composition process. The recording of this information will be done in a single step at the end of the process for each Instruction Composition. |
Conditions
Validation rules the model enforces on this type, in Rune. An instance that breaks one of these is invalid CDM, whatever produced it.
compositionStep -> compositionStepInstruction -> instructionCompositionType all = instructionCompositionType if instructionCompositionType = ResetInstruction
then (compositionState switch
ResetInstructionState then True) = True 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_InstructionComposition | returns | Creates a new InstructionComposition instance by appending a CompositionStep derived from the provided instruction, updating any previous compositionState, and producing the Instruction Composition Output if at the end of the Instruction Composition process. |
| Create_InstructionComposition | takes | Creates a new InstructionComposition instance by appending a CompositionStep derived from the provided instruction, updating any previous compositionState, and producing the Instruction Composition Output if at the end of the Instruction Composition process. |
| NextCompositionStepToExecute | takes | Determines the next logical execution step for a given Instruction Composition by evaluating its current execution history and process type. |
Open InstructionComposition 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.