Symbiote\AdvancedWorkflow\DataObjects\WorkflowTransition
A workflow transition.
When used within the context of a workflow, the transition will have its
"isValid()" method call. This must return true or false to indicate whether
this transition is valid for the state of the workflow that it a part of.
Therefore, any logic around whether the workflow can proceed should be
managed within this method.
- Author: marcus@symbiote.com.au
- License: BSD License (http://silverstripe.org/bsd-license/)
Synopsis
class WorkflowTransition
extends DataObject
{
- // members
- private static array $db = ;
- private static string $default_sort = 'Sort';
- private static array $has_one = ;
- private static array $many_many = ;
- private static string $icon = 'symbiote/silverstripe-advancedworkflow:images/transition.png';
- private static string $table_name = 'WorkflowTransition';
- public static array $extendedMethodReturn = ;
- // methods
- public bool isValid()
- public void onBeforeWrite()
- public void getCMSFields()
- public void fieldLabels()
- public void getValidator()
- public void numChildren()
- public void summaryFields()
- public bool canExecute()
- public bool canCreate()
- public bool canEdit()
- public bool canDelete()
- public ArrayList getAssignedMembers()
- public void extendedRequiredFieldsNotSame()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $default_sort
- $has_one
- $icon
- $many_many
- $table_name
public
- $extendedMethodReturn — array
Methods
public
- canCreate() — Allows users who have permission to create a WorkflowDefinition, to create actions on it too.
- canDelete()
- canEdit()
- canExecute() — Check if the current user can execute this transition
- extendedRequiredFieldsNotSame()
- fieldLabels()
- getAssignedMembers() — Returns a set of all Members that are assigned to this transition, either directly or via a group.
- getCMSFields()
- getValidator()
- isValid() — Returns true if it is valid for this transition to be followed given the current state of a workflow.
- numChildren()
- onBeforeWrite() — Before saving, make sure we're not in an infinite loop
- summaryFields()