Summary
This block sets flags on a slot (hidden, readonly, metadata etc.)
Implementation
-
Drag and drop the block from the palette
-
Link the "execute" action from the "executed" topic of the previous block
Example
Add the flag "readonly" and "hidden" to the origin of the strategy on the "config" slot
Properties
-
Target: SFormat to define the component which contains the slot whose flags have to be changed. Ex: the origin of the event: a building
-
Note: The available artifacts
-
SlotName: SFormat to define the name of the slot whose flags need to be applied to. Ex: the config slot of the building
-
Flags: Selection of the flags to apply
Advanced Config
-
Set Only First: If set to true, the block will only do the operation at its first execution (If you rerun the strategy, the operation won't be done again). If set to false, the block will always try to do the operation.
-
Do Policy : Defines the policy to apply when adding flagsAdd value: the selected flags will be added to existing onesSet Value: the selected flags will be set in place of the existing ones
-
Undo Policy: Defines the policy to apply on UNDONo Value: nothing is changed. Flags are let as they areSet Value: A new value is applied (Undo Value)Remove Value: The selected flags are removed (others are kept)
-
Undo Value: The flags to apply when Undo Policy is set to "Set Value"
Behavior: DO
Flags are added or set depending on the Do Policy
Behavior: UNDO
Flags are removed or new flags are set, or nothing happens depending on the Undo Policy