public function getCurrentAction()
    {
        $join = '"WorkflowAction"."ID" = "WorkflowActionInstance"."BaseActionID"';
        $action = WorkflowAction::get()
            /** @skipUpgrade */
            ->leftJoin('WorkflowActionInstance', $join)
            ->where('"WorkflowActionInstance"."ID" = '.$this->CurrentActionID)
            ->first();
        if (!$action) {
            return 'N/A';
        }
        return $action->getField('Title');
    }
public function getCurrentAction()
    {
        $join = '"WorkflowAction"."ID" = "WorkflowActionInstance"."BaseActionID"';
        $action = WorkflowAction::get()
            /** @skipUpgrade */
            ->leftJoin('WorkflowActionInstance', $join)
            ->where('"WorkflowActionInstance"."ID" = '.$this->CurrentActionID)
            ->first();
        if (!$action) {
            return 'N/A';
        }
        return $action->getField('Title');
    }
public function getCurrentAction ( ) { $ join = '"WorkflowAction"."ID" = "WorkflowActionInstance"."BaseActionID"' ; $ action = WorkflowAction :: get ( ) /** @skipUpgrade */ -> leftJoin ( 'WorkflowActionInstance' , $ join ) -> where ( '"WorkflowActionInstance"."ID" = ' . $ this -> CurrentActionID ) -> first ( ) ; if ( ! $ action ) { return 'N/A' ; } return $ action -> getField ( 'Title' ) ; }
Simple method to retrieve the current action, on the current WorkflowInstance
Simple method to retrieve the current action on the current WorkflowInstance