Rule Hook
OnAssetCommands
Back to IndexThis hook runs after commands have been applied to an Asset Actor from the create
or applyCommands
message. Commands returned from rules does not trigger the hook again.
Type
{ hook: 'OnAssetCommands' before: Asset // The asset before the commands were applied asset: Asset // The asset after the commands were applied}
Effects
Sends a message to another actor after the asset has been saved. Responses from the target actor is ignored.effects.common.sendMessage
Schedules a jobeffects.common.scheduleJob
Aborts the creation/update of the asset and returns the error to the caller.effects.common.validationError
Applies a command to the actor. Replace effects.customer.command.*
*
with the type of command you want to apply.