OnTicketComplete
This hook runs during the completion of a Ticket Actor. sendMessage effects can be returned to cause side-effects in other actors. validationError may be used to block completion of the ticket.
Type
filtrera
{
hook: 'OnTicketComplete'
ticket: Ticket
}Effects
sendMessage Behavior
In most hooks, sendMessage effects are optimistically applied, meaning errors and responses are ignored. In the case of OnTicketComplete messages are sent and checked for returned errors before any message is applied.
This is done by the system previewing all messages before actually sending them. If any message results in an error, the ticket completion is aborted and the error is returned.