Skip to content

Rule Hook

OnOrderBeforeDeleted

Back to Index

This hook runs before an Order Actor is deleted. It can be used to perform tasks or even block deletion using a validationError effect.

Type

{
hook: 'OnOrderBeforeDeleted'
order: Order
}

Effects

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

validationError Aborts the deletion of the order and returns the error to the caller.

scheduleJob Schedules a job.

Back to Index