Notification Rules can be configured with conditions. For example.
Order Confirmation
=> Rule Type: order
=> Condition: Order Transition
=> State Change to: [create, confirm, cancel, complete]
This state are provided by the CoreShop\Bundle\OrderBundle\Controller\OrderController::getStatesAction
=> route: /admin/coreshop/order/get-states
There is an if condition which check for an instance of Symfony\Component\Workflow\StateMachine. But since Symfony 6.4 there is a new Class Symfony\Component\Workflow\Debug\TraceableWorkflow which is used in the debug mode.
We have to check that the class is an instance of Symfony\Component\Workflow\WorkflowInterface instead of Symfony\Component\Workflow\StateMachine
Notification Rules can be configured with conditions. For example. Order Confirmation => Rule Type: order => Condition: Order Transition => State Change to: [create, confirm, cancel, complete]
This state are provided by the
CoreShop\Bundle\OrderBundle\Controller\OrderController::getStatesAction
=> route: /admin/coreshop/order/get-statesThere is an if condition which check for an instance of
Symfony\Component\Workflow\StateMachine
. But since Symfony 6.4 there is a new ClassSymfony\Component\Workflow\Debug\TraceableWorkflow
which is used in the debug mode.We have to check that the class is an instance of
Symfony\Component\Workflow\WorkflowInterface
instead ofSymfony\Component\Workflow\StateMachine
PR is on the way...