Perforce Chronicle 2012.2/486814
API Documentation
|
Provide a common interface for workflow actions. More...
Public Member Functions | |
getOptions () | |
Get options attached to the action. | |
invoke (Workflow_Model_Transition $transition, P4Cms_Record $record) | |
Invoke this action for the given transition and record. | |
setOptions (array $options) | |
Set options for this action. |
Provide a common interface for workflow actions.
Workflow actions allow for automated tasks when a record under workflow changes state (for example, sending email notifications).
Workflow_ActionInterface::getOptions | ( | ) |
Get options attached to the action.
Workflow_ActionInterface::invoke | ( | Workflow_Model_Transition $ | transition, |
P4Cms_Record $ | record | ||
) |
Invoke this action for the given transition and record.
Workflow_Model_Transition | $transition | transition to invoke this action for. |
P4Cms_Record | $record | record to invoke this action for. |
Implemented in Workflow_Workflow_Action_Noop, and Workflow_Workflow_Action_SendEmail.
Workflow_ActionInterface::setOptions | ( | array $ | options | ) |
Set options for this action.
array | $options | action options to set. |