Skip to content
← Back to Index

OnAssetBeforeCreated

This hook runs before any command have been applied to an Asset Actor from the create message. Commands returned will be applied to the order before the create message's commands.

Type

filtrera
{
  hook: 'OnAssetBeforeCreated'
  asset: Asset
}

Effects

`effects.common.sendMessage` Sends a message to another actor after the customer has been saved. Responses from the target actor is ignored.
`effects.common.validationError` Aborts the creation of the customer and returns the error to the caller.
`effects.customer.command.*` Applies a command to the actor. Replace `*` with the type of [command](/resources/actors/custom/asset/commands/) you want to apply.

© 2024 Hantera AB. All rights reserved.