Skip to content

OnTicketCreated

Back to Index

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

Type

{
hook: 'OnTicketCreated'
ticket: Ticket
}

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.callReactor Calls a reactor method after the ticket has been saved. Responses from the reactor is ignored.

effects.common.validationError Aborts the creation 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