I know that
Kernel/System/Ticket/Event/TicketProcessTransitions.pm triggers for every master ticket event (that is, all of Ticket/Event/*) is triggered or at least parsed for events that occur to the master ticket.
I'm seeking that elusive action that sets a flag. From what I'm seeing right now, the TicketProcessTransitions.pm is triggered once per ticket event, and all the TransitionActions I'm doing right now don't appear to trigger additional Ticket Events. (I set a title and a service by default. That should theoretically trigger it twice anyway). However, I'm looking at overloading TicketProcessTransitions to kludge/trudge through this:
Envelope the endpoint of:
my $TransitionApplied = $ProcessObject->ProcessTransition(
ProcessEntityID => $ProcessEntityID,
ActivityEntityID => $ActivityEntityID,
TicketID => $Param{Data}->{TicketID},
UserID => $Param{UserID},
);
if ( $Self->{Debug} ) {
$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'error',
Message =>
"Transition for to TicketID: $Param{Data}->{TicketID}"
. " ProcessEntityID: $ProcessEntityID OldActivityEntityID: $ActivityEntityID "
. ( $TransitionApplied ? "was applied." : "was not applied." ),
);
}
With some sort of "while (ActivityEntityID (and get the current one after transition) doesn't have an ActivityDialog AND it does have a transition)" { the above stuff }.