Source of file SimpleApprovalWorkflowAction.php
Size: 0,779 Bytes - Last Modified: 2021-12-23T10:11:37+00:00
/var/www/docs.ssmods.com/process/src/code/actions/SimpleApprovalWorkflowAction.php
12345678910111213141516171819202122232425 | <?php /** * A simple approval step that waits for any assigned user to trigger one of the relevant * transitions * * A more complicated workflow might use a majority, quorum or other type of * approval functionality * * @author marcus@silverstripe.com.au * @license BSD License (http://silverstripe.org/bsd-license/) * @package advancedworkflow * @subpackage actions */ class SimpleApprovalWorkflowAction extends WorkflowAction { private static $icon = 'advancedworkflow/images/approval.png'; public function execute(WorkflowInstance $workflow) { // we don't need to do anything for this execution, // as we're relying on the fact that there's at least 2 outbound transitions // which will cause the workflow to block and wait. return true; } } |