Skip to content
← Back to Index

OnSkuCommands

This 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

filtrera
{
  hook: 'OnSkuCommands'
  before: Sku // The sku before the commands were applied
  sku: Sku // The sku after the commands were applied
}

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.
sendEmail Queues an email for delivery through the Sendings system.
skuCommand Applies a command to the actor.

© 2024 Hantera AB. All rights reserved.