WorkflowService::getWorkflowFor
Gets the workflow for the given item
The item can be a data object in which case the ActiveWorkflow will be returned, an action, in which case the Workflow will be returned an integer, in which case the workflow with that ID will be returned
Signature
public function getWorkflowFor(mixed
$item,
[boolean
$includeComplete = false] )
Parameters
$item
— mixed$includeComplete
— boolean
Returns
- WorkflowInstance