function loadTest($aTestData, $aFields)
 {
     $oSwimlanesElements = new SwimlanesElements();
     try {
         return $oSwimlanesElements->load($aFields['SWI_UID']);
     } catch (Exception $oError) {
         return $oError;
     }
 }
Exemplo n.º 2
0
                    $proUid = $oDataAux['pro_uid'];
                } else {
                    $proUid = $oDataAux['PRO_UID'];
                }
            } else {
                $proUid = $oDataAux['uid'];
                $uidAux = $proUid;
            }

            G::LoadClass('processes');
            $infoProcess = new Processes();

            if(!$infoProcess->processExists($proUid)) {
                $oSL = new SwimlanesElements();
                if($oSL->swimlanesElementsExists($proUid)) {
                    $aFields = $oSL->load($proUid);
                    $proUid = $aFields['PRO_UID'];
                } else {
                    $k = new Criteria('workflow');
                    $k->clearSelectColumns();
                    $k->addSelectColumn(TaskPeer::PRO_UID);
                    $k->add(TaskPeer::TAS_UID, $uidAux );
                    $rs = TaskPeer::doSelectRS($k);
                    $rs->setFetchmode(ResultSet::FETCHMODE_ASSOC);
                    $rs->next();
                    $row = $rs->getRow();
                    $proUid = $row['PRO_UID'];
                }
            }
            $resultProcess = $infoProcess->getProcessRow($proUid);
        } else {
Exemplo n.º 3
0
 public function saveAnnotationCordinates($sSwimLaneUID = '', $iX = 110, $iY = 60)
 {
     try {
         $oSL = new SwimlanesElements();
         $aFields = $oSL->load($sSwimLaneUID);
         $aFields['SWI_UID'] = $sSwimLaneUID;
         $aFields['SWI_WIDTH'] = $iX;
         $aFields['SWI_HEIGHT'] = $iY;
         return $oSL->update($aFields);
     } catch (Exception $oError) {
         throw $oError;
     }
 }