예제 #1
0
                 $oData->type = 'EVALUATE';
                 break;
             case 3:
                 $oData->type = 'PARALLEL';
                 break;
             case 4:
                 $oData->type = 'PARALLEL-BY-EVALUATION';
                 break;
             case 5:
                 $oData->type = 'SEC-JOIN';
                 break;
             case 8:
                 $oData->type = 'DISCRIMINATOR';
                 break;
         }
         $oProcessMap->newPattern($oData->pro_uid, $oData->tas_uid, $oData->next_task, $oData->type);
     }
     break;
 case 'saveNewPattern':
     switch ($oData->type) {
         case 0:
             $sType = 'SEQUENTIAL';
             $oProcessNewPattern = new Process();
             $taskProcess=$oProcessNewPattern->load($oData->pro_uid);
             $titleProcess=$taskProcess['PRO_TITLE'];
             $oTaskNewPattern = new Task();
             $taskInfo=$oTaskNewPattern->load($oData->tas_uid);
             $titleTask=$taskInfo['TAS_TITLE'];
             if ($oData->next_task != "-1") {
                 $oTaskNextNewPattern = new Task();
                 $taskNextInfo=$oTaskNextNewPattern->load($oData->next_task);