$transitionEscaped =
$this->
escape($transition->
getName());
$code[] = "agent
$transitionEscaped";
} } foreach ($definition->
getTransitions() as $transition) { $transitionEscaped =
$this->
escape($transition->
getName());
foreach ($transition->
getFroms() as $from) { $fromEscaped =
$this->
escape($from);
foreach ($transition->
getTos() as $to) { $toEscaped =
$this->
escape($to);
$transitionEscapedWithStyle =
$this->
getTransitionEscapedWithStyle($workflowMetadata,
$transition,
$transitionEscaped);
$arrowColor =
$workflowMetadata->
getMetadata('arrow_color',
$transition);
$transitionColor = '';
if (null !==
$arrowColor) { $transitionColor =
$this->
getTransitionColor($arrowColor) ?? '';
} if ($this->
isWorkflowTransitionType()) { $transitionLabel = '';
// Add label only if it has a style