예제 #1
0
        //print_R($value['0']);
        //$sOutput = $oTask->remove($value['0']);
        $sOutput = $oProcessMap->addSubProcess($idProcess, $value['2'], $value['3']);
        /*$subProcess[$key]['ID_PROCESS']  = $idProcess;
          $subProcess[$key]['TAS_TITLE']   = $idProcess;
          $subProcess[$key]['ID_TASK']     = $value['0'];
          $subProcess[$key]['TAS_UID']     = $value['0'];
          $subProcess[$key]['TASK_PARENT'] = '';
          $subProcess[$key]['PROCESS_PARENT'] = '';
          $subProcess[$key]['TASK_TYPE']   = 'SUBPROCESS';
          $subProcess[$key]['DESCRIPTION'] = '';
          $subProcess[$key]['X']           = $value['2'];
          $subProcess[$key]['Y']           = $value['3'];    
          
          print_R($subProcess[$key]);
          $subProcesses[] = $oProcess->createSubProcess($subProcess);
          $oData->tasks[] = $oProcess->createTask($subProcess[$key]);*/
    }
    $numberTransitions = sizeof($routeTransitions);
    if ($numberTransitions > 0) {
        $routesArray = $oProcess->createGateways($routeTransitions, $endArray, $oData->routes, $numberRoutes, $idProcess, $taskHidden);
        $oData->routes = $routesArray;
    }
    $oProcess->updateProcessFromDataXpdl($oData, $oData->tasks);
    $result->success = true;
    $result->msg = G::LoadTranslation('ID_PROCESS_SAVE_SUCCESS');
} catch (Exception $e) {
    $result->success = false;
    $result->msg = $e->getMessage();
}
print G::json_encode($result);