//load the variables
 G::LoadClass('xpdl');
 $oProcess = new Xpdl();
 if (!isset($_POST['form']['IMPORT_OPTION'])) {
     throw new Exception('Please select an option before to continue');
 }
 if (!isset($_POST['form']['GROUP_IMPORT_OPTION'])) {
     $action = "none";
 } else {
     $action = $_POST['form']['GROUP_IMPORT_OPTION'];
 }
 $option = $_POST['form']['IMPORT_OPTION'];
 $filename = $_POST['form']['PRO_FILENAME'];
 $ObjUid = $_POST['form']['OBJ_UID'];
 $path = PATH_DOCUMENT . 'input' . PATH_SEP;
 $oData = $oProcess->getProcessDataXpdl($path . $filename);
 $Fields['PRO_FILENAME'] = $filename;
 $sProUid = $oData->process['PRO_UID'];
 $oData->process['PRO_UID_OLD'] = $sProUid;
 if (!isset($oData->tasks)) {
     $oData->tasks = array();
 }
 $tasks = $oData->tasks;
 // code added by gustavo cruz gustavo-at-colosa-dot-com
 // evaluate actions or import options
 switch ($action) {
     case "none":
         $groupsDuplicated = $oProcess->checkExistingGroups($oData->groupwfs);
         break;
     case "rename":
         $oData->groupwfs = $oProcess->renameExistingGroups($oData->groupwfs);