Skip to content

Rule Hook

OnSkuCreated

Back to Index

This hook runs after commands have been applied to a Sku Actor from the create message, but before the OnSkuCommands hook. Commands returned will be applied to the sku and changes are available to the the OnSkuCommands hook.

Type

{
hook: 'OnSkuCreated'
sku: Sku
}

Effects

messageActor Sends a message to another actor after the sku has been saved. Responses from the target actor is ignored.

validationError Aborts the creation of the sku and returns the error to the caller.

scheduleJob Schedules a job.

skuCommand Applies a command to the actor.

Back to Index