diff --git a/workflow/engine/methods/bpmn/openProcess.php b/workflow/engine/methods/bpmn/openProcess.php index 64ef18bb3..43b845750 100755 --- a/workflow/engine/methods/bpmn/openProcess.php +++ b/workflow/engine/methods/bpmn/openProcess.php @@ -214,6 +214,38 @@ $countGateway+=1; $countTransitions += 1; } + else if($value['GAT_NEXT_TASK'] != '' && $value['TAS_UID'] != ''){ + $fields['GATEWAYS'][$countGateway]['0'] = $value['GAT_UID']; + $fields['GATEWAYS'][$countGateway]['1'] = $value['GAT_TYPE']; + $fields['GATEWAYS'][$countGateway]['2'] = $value['GAT_X']; + $fields['GATEWAYS'][$countGateway]['3'] = $value['GAT_Y']; + $fields['GATEWAYS'][$countGateway]['4'] = $value['TAS_UID']; + $fields['GATEWAYS'][$countGateway]['5'] = $value['TAS_UID']; + $countGateway+=1; + + $fields['GATEWAYS'][$countGateway]['0'] = $value['GAT_UID']; + $fields['GATEWAYS'][$countGateway]['1'] = $value['GAT_TYPE']; + $fields['GATEWAYS'][$countGateway]['2'] = $value['GAT_X']; + $fields['GATEWAYS'][$countGateway]['3'] = $value['GAT_Y']; + $fields['GATEWAYS'][$countGateway]['4'] = $value['TAS_UID']; + $fields['GATEWAYS'][$countGateway]['5'] = $value['GAT_NEXT_TASK']; + $countGateway+=1; + + $fields['TRANSITION'][$countTransitions]['0'] = G::generateUniqueID(); + $fields['TRANSITION'][$countTransitions]['1'] = $value['TAS_UID']; + $fields['TRANSITION'][$countTransitions]['2'] = $value['GAT_UID']; + $fields['TRANSITION'][$countTransitions]['3'] = '1'; + $fields['TRANSITION'][$countTransitions]['4'] = '2'; + $countTransitions += 1; + + + $fields['TRANSITION'][$countTransitions]['0'] = G::generateUniqueID(); + $fields['TRANSITION'][$countTransitions]['1'] = $value['GAT_UID']; + $fields['TRANSITION'][$countTransitions]['2'] = $value['GAT_NEXT_TASK']; + $fields['TRANSITION'][$countTransitions]['3'] = '2'; + $fields['TRANSITION'][$countTransitions]['4'] = '1'; + $countTransitions += 1; + } } //$subProcess = $oProcess->createSubProcessesPM($oData->subProcess); $arrayEvents = $fields['EVENTS'];