} //load the variables if ($processFileType == "pm") { G::LoadClass('processes'); $oProcess = new Processes(); } else { G::LoadClass('xpdl'); $oProcess = new Xpdl(); } $path = PATH_DOCUMENT . 'input' . PATH_SEP ; if ($processFileType == "pm"){ $oData = $oProcess->getProcessData ( $path . $filename ); } else { $oData = $oProcess->getProcessDataXpdl ( $path . $filename ); } $Fields['PRO_FILENAME'] = $filename; $sProUid = $oData->process['PRO_UID']; $oData->process['PRO_UID_OLD'] = $sProUid; $result->ExistGroupsInDatabase = 1; if ( !is_null($optionGroupExistInDatabase)) { if ($optionGroupExistInDatabase == 1){ $oData->groupwfs = $oProcess->renameExistingGroups($oData->groupwfs); }