'operator' => RuleConstraints::
uuidOperators(false
),
'stateIds' => RuleConstraints::
uuids(),
];
} public function match(RuleScope
$scope): bool
{ if (!
$scope instanceof FlowRuleScope ||
$this->stateIds === null
) { return false;
} return RuleComparison::
stringArray($scope->
getOrder()->
getStateId(),
$this->stateIds,
$this->operator
);
} public function getConfig(): RuleConfig
{ return (new RuleConfig()) ->
operatorSet(RuleConfig::OPERATOR_SET_STRING, false, true
) ->
entitySelectField( 'stateIds',
StateMachineStateDefinition::ENTITY_NAME,
true,
[