Skip to content

OnTicketRejected

Back to Index

This hook runs after a Ticket Actor has been rejected. validationError can be used to block a rejection.

Type

{
hook: 'OnTicketRejected'
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 rejection 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