saving and loading connected gateway from output port
This commit is contained in:
@@ -126,6 +126,8 @@
|
||||
|
||||
//Get all the standalone Gateway
|
||||
$countGateway = count($fields['GATEWAYS']);
|
||||
$countTransitions = count($fields['TRANSITION']);
|
||||
|
||||
foreach($oData->gateways as $id => $value)
|
||||
{
|
||||
if($value['GAT_NEXT_TASK'] == '' && $value['TAS_UID'] == ''){
|
||||
@@ -135,6 +137,40 @@
|
||||
$fields['GATEWAYS'][$countGateway]['3'] = $value['GAT_Y'];
|
||||
$countGateway += 1;
|
||||
}
|
||||
//creating gateway and route from gateway to task i.e if target task is not NULL
|
||||
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['GAT_NEXT_TASK'];
|
||||
|
||||
$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';
|
||||
$countGateway+=1;
|
||||
$countTransitions += 1;
|
||||
}
|
||||
//creating gateway and route from task to gateway i.e if source task is not NULL
|
||||
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['GAT_NEXT_TASK'];
|
||||
|
||||
$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';
|
||||
$countGateway+=1;
|
||||
$countTransitions += 1;
|
||||
}
|
||||
}
|
||||
//$subProcess = $oProcess->createSubProcessesPM($oData->subProcess);
|
||||
$arrayEvents = $fields['EVENTS'];
|
||||
|
||||
Reference in New Issue
Block a user