PM-1330 "No se guardan el orden establecido de condiciones de enrutamiento en los gateways" SOLVED
This commit is contained in:
@@ -1278,13 +1278,12 @@ class Bpmn extends Handler
|
|||||||
$oDataset = \BpmnFlowPeer::doSelectRS( $oCriteria );
|
$oDataset = \BpmnFlowPeer::doSelectRS( $oCriteria );
|
||||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
while ($aRow = $oDataset->getRow()) {
|
$aRow = $oDataset->getRow();
|
||||||
$newPosition = $aRow['FLO_POSITION'] - 1;
|
$oCriteria2 = new Criteria('workflow');
|
||||||
$oCriteria2 = new Criteria('workflow');
|
$oCriteria2->add( \BpmnFlowPeer::FLO_POSITION, $aRow['FLO_POSITION'] - 1);
|
||||||
$oCriteria2->add(\BpmnFlowPeer::FLO_POSITION, $newPosition);
|
BasePeer::doUpdate($oCriteria, $oCriteria2, $con);
|
||||||
BasePeer::doUpdate($oCriteria, $oCriteria2, $con);
|
$oDataset->next();
|
||||||
$oDataset->next();
|
|
||||||
}
|
|
||||||
} catch (Exception $oException) {
|
} catch (Exception $oException) {
|
||||||
throw $oException;
|
throw $oException;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user