public function incomingTitle()
    {
        $req = Controller::curr()->getRequest();
        if (isset($req['_CsvFile']['name']) && !empty($req['_CsvFile']['name'])) {
            $import = ImportedWorkflowTemplate::get()->filter('Filename', $req['_CsvFile']['name'])->first();
            $incomingTitle = $import->Name;
        } elseif (isset($req['Template']) && !empty($req['Template'])) {
            $incomingTitle = $req['Template'];
        } elseif (isset($req['Title']) && !empty($req['Title'])) {
            $incomingTitle = $req['Title'];
        } else {
            $incomingTitle = self::$default_workflow_title_base;
        }
        return $incomingTitle;
    }
public function incomingTitle()
    {
        $req = Controller::curr()->getRequest();
        if (isset($req['_CsvFile']['name']) && !empty($req['_CsvFile']['name'])) {
            $import = ImportedWorkflowTemplate::get()->filter('Filename', $req['_CsvFile']['name'])->first();
            $incomingTitle = $import->Name;
        } elseif (isset($req['Template']) && !empty($req['Template'])) {
            $incomingTitle = $req['Template'];
        } elseif (isset($req['Title']) && !empty($req['Title'])) {
            $incomingTitle = $req['Title'];
        } else {
            $incomingTitle = self::$default_workflow_title_base;
        }
        return $incomingTitle;
    }
public function incomingTitle ( ) { $ req = Controller :: curr ( ) -> getRequest ( ) ; if ( isset ( $ req [ '_CsvFile' ] [ 'name' ] ) && ! empty ( $ req [ '_CsvFile' ] [ 'name' ] ) ) { $ import = ImportedWorkflowTemplate :: get ( ) -> filter ( 'Filename' , $ req [ '_CsvFile' ] [ 'name' ] ) -> first ( ) ; $ incomingTitle = $ import -> Name ; } elseif ( isset ( $ req [ 'Template' ] ) && ! empty ( $ req [ 'Template' ] ) ) { $ incomingTitle = $ req [ 'Template' ] ; } elseif ( isset ( $ req [ 'Title' ] ) && ! empty ( $ req [ 'Title' ] ) ) { $ incomingTitle = $ req [ 'Title' ] ; } else { $ incomingTitle = self :: $ default_workflow_title_base ; } return $ incomingTitle ; }
Return the workflow definition title according to the source

@return string
Return the workflow definition title according to the source