$criteria->
getAssociation('states'
) ->
addSorting(new FieldSorting('state_machine_state.technicalName'
));
$results =
$this->stateMachineRepository->
search($criteria,
$context);
if ($stateMachine =
$results->
first()) { /** @var StateMachineEntity $stateMachine */
return $this->stateMachines
[$name] =
$stateMachine;
} throw StateMachineException::
stateMachineNotFound($name);
} /**
* @throws DefinitionNotFoundException
* @throws InconsistentCriteriaIdsException
* @throws StateMachineException
*
* @return array<StateMachineTransitionEntity>
*/
public function getAvailableTransitions( string
$entityName,