Rule Hook
OnSkuCommands
Back to IndexThis hook runs after commands have been applied to a Sku Actor from the create
or applyCommands
message. Commands returned from rules does not trigger the hook again.
Type
{ hook: 'OnSkuCommands' before: Sku // The sku before the commands were applied sku: Sku // The sku after the commands were applied}
Effects
Sends a message to another actor after the sku has been saved. Responses from the target actor is ignored.messageActor
Aborts the creation of the sku and returns the error to the caller.validationError
Schedules a job.scheduleJob
Applies a command to the actor.skuCommand