Skip to content

OnTicketCommands

Back to Index

This hook runs after commands have been applied to a Ticket Actor from the create or applyCommands message. Commands returned from rules does not trigger the hook again.

Type

{
hook: 'OnTicketCommands'
before: Ticket // The ticket before the commands were applied
ticket: Ticket // The ticket after the commands were applied
}

Effects

effects.common.sendMessage Sends a message to another actor after the ticket has been saved. Responses from the target actor is ignored.

effects.common.validationError Aborts the creation/update of the ticket and returns the error to the caller.

effects.ticket.command.* Applies a command to the actor. Replace * with the type of command you want to apply.

Back to Index