Programming Language PHP

Namespace Oro\Bundle\WorkflowBundle\Entity

Class WorkflowItem

Method/Function setCurrentStep

Total Examples 1

1 code examples of PHP Oro\Bundle\WorkflowBundle\Entity\WorkflowItem::setCurrentStep extracted from open source projects

Was this example useful?
0
                                                    /**
     * Makes transition without checking for preconditions and conditions.
     */
    public function transitUnconditionally(WorkflowItem $workflowItem): void
    {
        $stepTo = $this->getStepTo();
        $workflowItem->setCurrentStep($workflowItem->getDefinition()->getStepByName($stepTo->getName()));

        if ($this->action) {
            $this->action->execute($workflowItem);
        }
    }