|
@@ -60,7 +60,7 @@ class MigrationData
|
|
|
public function SoapConnector(string $serverAddress)
|
|
public function SoapConnector(string $serverAddress)
|
|
|
{
|
|
{
|
|
|
global $frameworkUtils;
|
|
global $frameworkUtils;
|
|
|
- if($frameworkUtils->isServerAlive($serverAddress, 80, 2)>0)
|
|
|
|
|
|
|
+ if ($frameworkUtils->isServerAlive($serverAddress, 80, 2) > 0)
|
|
|
throw new \Exception('Magazzino Verticale non raggiungibile');
|
|
throw new \Exception('Magazzino Verticale non raggiungibile');
|
|
|
|
|
|
|
|
$this->soapClient = new \SoapClient("http://$serverAddress/servizi_xchange.asmx?wsdl", array(
|
|
$this->soapClient = new \SoapClient("http://$serverAddress/servizi_xchange.asmx?wsdl", array(
|
|
@@ -91,6 +91,21 @@ class MigrationData
|
|
|
$this->query("UPDATE SMEDAT_DIM.INTMAV0F SET MXSTAT=" . MigrationData::STATUS_PENDING . ", MXNOLS='$listaId' WHERE MXIDDM IN ($ids)");
|
|
$this->query("UPDATE SMEDAT_DIM.INTMAV0F SET MXSTAT=" . MigrationData::STATUS_PENDING . ", MXNOLS='$listaId' WHERE MXIDDM IN ($ids)");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Set all missions in STATUS_PENDING status as STATUS_DONE
|
|
|
|
|
+ */
|
|
|
|
|
+ public function RollbackPendingMissionsToNew()
|
|
|
|
|
+ {
|
|
|
|
|
+ $this->query(
|
|
|
|
|
+ "UPDATE SMEDAT_DIM.INTMAV0F SET MXSTAT=" . MigrationData::STATUS_NEW . " WHERE MXSTAT=" . MigrationData::STATUS_PENDING
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @param string $labelId
|
|
|
|
|
+ * @param string $articleCode
|
|
|
|
|
+ * @param string $commessa
|
|
|
|
|
+ */
|
|
|
public function MarkMissionDone(string $labelId, string $articleCode, string $commessa)
|
|
public function MarkMissionDone(string $labelId, string $articleCode, string $commessa)
|
|
|
{
|
|
{
|
|
|
$this->query(
|
|
$this->query(
|