Helper class for working with SavedWorkflow objects
Definition at line 40 of file SavedWorkflowsUtil.php.
static resolveSearchAttributeDataByModuleClassNames |
( |
|
$searchAttributeData, |
|
|
|
$moduleClassNames |
|
) |
| |
|
static |
Given an array of moduleClassNames, construct the searchAttributeData
- Parameters
-
$searchAttributeData | |
$moduleClassNames | |
- Returns
- array
Definition at line 48 of file SavedWorkflowsUtil.php.
static resolveOrder |
( |
SavedWorkflow |
$savedWorkflow, |
|
|
|
$isBeingCopied = false |
|
) |
| |
|
static |
Resolve the correct order for a savedWorkflow. If it is a new savedWorkflow then set the order to max plus 1. 'Max' is a calculation of the existing workflows that are for the specific moduleClassName. If the workflow is an existing workflow, then if moduleClassName has changed, the 'max' plus 1 should be used. Otherwise if it is new and the moduleClassName has not changed, then leave it alone
- Parameters
-
- Exceptions
-
Definition at line 99 of file SavedWorkflowsUtil.php.
static resolveBeforeSaveByModel |
( |
Item |
$model, |
|
|
User |
$triggeredByUser |
|
) |
| |
|
static |
Given a RedBeanModel, query workflow rules and process any beforeSave triggers for either on-save or by-time workflows. Called from
- See Also
- WokflowsObserver->processWorkflowBeforeSave
- Parameters
-
- Exceptions
-
Definition at line 124 of file SavedWorkflowsUtil.php.
static resolveAfterSaveByModel |
( |
Item |
$model, |
|
|
User |
$triggeredByUser |
|
) |
| |
|
static |
Given a RedBeanModel, process afterSave actions such as update related, create, and create related. Also process any email messages. If the workflow is by-time, then we should process the ByTimeWorkflowInQueue model.
- Parameters
-
- Exceptions
-
Definition at line 158 of file SavedWorkflowsUtil.php.
The documentation for this class was generated from the following file: