public function getValidTransitions()
    {
        $available = $this->BaseAction()->Transitions();
        $valid     = new ArrayList();

        // iterate through the transitions and see if they're valid for the current state of the item being
        // workflowed
        if ($available) {
            foreach ($available as $transition) {
                if ($transition->isValid($this->Workflow())) {
                    $valid->push($transition);
                }
            }
        }

        $this->extend('updateValidTransitions', $valid);

        return $valid;
    }
public function getValidTransitions()
    {
        $available = $this->BaseAction()->Transitions();
        $valid     = new ArrayList();

        // iterate through the transitions and see if they're valid for the current state of the item being
        // workflowed
        if ($available) {
            foreach ($available as $transition) {
                if ($transition->isValid($this->Workflow())) {
                    $valid->push($transition);
                }
            }
        }

        $this->extend('updateValidTransitions', $valid);

        return $valid;
    }
public function getValidTransitions ( ) { $ available = $ this -> BaseAction ( ) -> Transitions ( ) ; $ valid = new ArrayList ( ) ; // iterate through the transitions and see if they're valid for the current state of the item being // workflowed if ( $ available ) { foreach ( $ available as $ transition ) { if ( $ transition -> isValid ( $ this -> Workflow ( ) ) ) { $ valid -> push ( $ transition ) ; } } } $ this -> extend ( 'updateValidTransitions' , $ valid ) ; return $ valid ; }
Returns all the valid transitions that lead out from this action.

This is called if this action has finished, and the workflow engine wants
to run the next action.

If this action returns only one valid transition it will be immediately
followed; otherwise the user will decide which transition to follow.

@return ArrayList
Returns all the valid transitions that lead out from this action .