Symbiote\AdvancedWorkflow\Services\WorkflowService::executeTransition
Given a transition ID, figure out what should happen to the given $subject.
In the normal case, this will load the current workflow instance for the object and then transition as expected. However, in some cases (eg to start the workflow) it is necessary to instead create a new instance.
Signature
public function executeTransition(DataObject
$target,
int
$transitionId )
Parameters
$target
— SilverStripe\ORM\DataObject
$transitionId
— int