if (!\
in_array($transitionType, self::TRANSITION_TYPES, true
)) { throw new \
InvalidArgumentException("Transition type '
$transitionType' does not exist."
);
} $this->transitionType =
$transitionType;
} public function dump(Definition
$definition, Marking
$marking = null, array
$options =
[]): string
{ $options =
array_replace_recursive(self::DEFAULT_OPTIONS,
$options);
$workflowMetadata =
$definition->
getMetadataStore();
$code =
$this->
initialize($options,
$definition);
foreach ($definition->
getPlaces() as $place) { $code[] =
$this->
getState($place,
$definition,
$marking);
} if ($this->
isWorkflowTransitionType()) { foreach ($definition->
getTransitions() as $transition) { $transitionEscaped =
$this->
escape($transition->
getName());
$code[] = "agent
$transitionEscaped";
} }