當前位置: 首頁>>代碼示例>>PHP>>正文


PHP processMap::getNumberOfRoutes方法代碼示例

本文整理匯總了PHP中processMap::getNumberOfRoutes方法的典型用法代碼示例。如果您正苦於以下問題:PHP processMap::getNumberOfRoutes方法的具體用法?PHP processMap::getNumberOfRoutes怎麽用?PHP processMap::getNumberOfRoutes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在processMap的用法示例。


在下文中一共展示了processMap::getNumberOfRoutes方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: unset

             break;
         case 3:
             $sType = 'PARALLEL';
             break;
         case 4:
             $sType = 'PARALLEL-BY-EVALUATION';
             break;
         case 5:
             $sType = 'SEC-JOIN';
             break;
         case 8:
             $sType = 'DISCRIMINATOR';
             break;
     }
     if ($oData->type != 0 && $oData->type != 5 && $oData->type != 8) {
         if ($oProcessMap->getNumberOfRoutes($oData->pro_uid, $oData->tas_uid, $oData->next_task, $sType) > 0) {
             die;
         }
         unset($aRow);
     }
     if ($oData->delete || $oData->type == 0 || $oData->type == 5 || $oData->type == 8) {
         G::LoadClass('tasks');
         $oTasks = new Tasks();
         $oTasks->deleteAllRoutesOfTask($oData->pro_uid, $oData->tas_uid);
         $oTasks->deleteAllGatewayOfTask($oData->pro_uid, $oData->tas_uid);
     }
     $oProcessMap->saveNewPattern($oData->pro_uid, $oData->tas_uid, $oData->next_task, $sType, $oData->delete);
     break;
 case 'deleteAllRoutes':
     G::LoadClass('tasks');
     $oTasks = new Tasks();
開發者ID:rodriquelca,項目名稱:processmaker,代碼行數:31,代碼來源:processes_Ajax.php

示例2: defineRoute

    /**
     * Create Route
     *
     * @param string $processUid
     * @param string $taskUid
     * @param string $nextTaskUid
     * @param string $type
     * @param bool   $delete
     *
     * return string Return UID of new Route
     *
     * @access public
     */
    public function defineRoute($processUid, $taskUid, $nextTaskUid, $type, $delete = false)
    {
        //Copy of processmaker/workflow/engine/methods/processes/processes_Ajax.php //case 'saveNewPattern':

        $processMap = new \processMap();

        if ($type != "SEQUENTIAL" && $type != "SEC-JOIN" && $type != "DISCRIMINATOR") {
            if ($processMap->getNumberOfRoutes($processUid, $taskUid, $nextTaskUid, $type) > 0) {
                //die();
                throw (new \Exception());
            }

            //unset($aRow);
        }

        if ($delete || $type == "SEQUENTIAL" || $type == "SEC-JOIN" || $type == "DISCRIMINATOR") {
            //\G::LoadClass("tasks");

            $tasks = new \Tasks();

            $tasks->deleteAllRoutesOfTask($processUid, $taskUid);
            $tasks->deleteAllGatewayOfTask($processUid, $taskUid);
        }

        return $processMap->saveNewPattern($processUid, $taskUid, $nextTaskUid, $type, $delete);
    }
開發者ID:rrsc,項目名稱:processmaker,代碼行數:39,代碼來源:Process.php


注:本文中的processMap::getNumberOfRoutes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。