Index: vhUnitTest/APPS/VisiDot/TestVHossXML.cls.xml =================================================================== diff -u -r1847 -r1861 --- vhUnitTest/APPS/VisiDot/TestVHossXML.cls.xml (.../TestVHossXML.cls.xml) (revision 1847) +++ vhUnitTest/APPS/VisiDot/TestVHossXML.cls.xml (.../TestVHossXML.cls.xml) (revision 1861) @@ -5,21 +5,9 @@ JBL - 2011-08-11 Do ##class(vhUnitTest.Manager).RunTest("/debug/display=all","APPS.VisiDot.TestVHossXML") 1 -vhUnitTest.TestCase +vhUnitTest.APPS.VisiDot.VHossTestCase 0 - -%String - - - -APPS.VisiDot.impl.VHossCaptureHelper - - - -WS.VisiDot.OperatorServer - - aTestName:%String %Status @@ -62,73 +50,27 @@ Set result=reader.Next(.CaptureInfo,.sc) - /* - - Om test data te krijgen met HTML entities - - Set XML = "" - Do CaptureInfo.XMLExportToString(.XML,,"literal") - - //Set FullXMLStream = ##class(%GlobalCharacterStream).%New() - Set FullXMLStream=##class(%FileCharacterStream).%New() - Set FullXMLStream.Filename="c:\myfile.txt" - - Set Buffer = 10000 - Set AantalChars = $Length(XML) - For i = 1 : 1 : ((AantalChars/Buffer)+1) { - Set XMLPart = $EXTRACT(XML,((i-1)*Buffer)+1,(i*Buffer)) - set ^XML = XMLPart - w !,i - Do FullXMLStream.Write($ZCVT(XMLPart,"O","HTML")) - //Do FullXMLStream.Write(XMLPart) - } - Do FullXMLStream.Flush() - Do FullXMLStream.SaveStream() - Do FullXMLStream.%Close() - - /* - Set FullXMLStream=##class(%FileCharacterStream).%New() - Set FullXMLStream.Filename="c:\myfile.txt" - Set LijnNr = 1 - While 'FullXMLStream.AtEnd { - Set line=FullXMLStream.ReadLine() - set ^Line = line - w "Lijn:",LijnNr,! - Set LijnNr = LijnNr + 1 - } - - Set reader = ##class(%XML.Reader).%New() - Set sc=reader.OpenStream(FullXMLStream) - If $$$ISERR(sc) w !,"ERROR : "_$$ParseStatus^vhLib(sc),! Quit - Do reader.Correlate("Capture_Info","APPS.VisiDot.dto.CaptureInfo") - While reader.Next(.CaptureInfo,.sc) { - //w !,"Yep",! - } - - If $$$ISERR(sc) Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.BaseException).%New(##class(TECH.enu.ExceptionCode).GeneralError(),"Kon XML bestand '"_FullName_"' niet lezen : "_$$ParseStatus^vhLib(sc))) - */ + Quit $G(CaptureInfo) ]]> - -ProcessedData -1 - - - - - + + -Method TestReadAgain() -{ + + + -Method TestEndOrder() -{ + + - +]]> + Index: APPS/VisiDot/dto/Detection.cls.xml =================================================================== diff -u -r1839 -r1861 --- APPS/VisiDot/dto/Detection.cls.xml (.../Detection.cls.xml) (revision 1839) +++ APPS/VisiDot/dto/Detection.cls.xml (.../Detection.cls.xml) (revision 1861) @@ -44,11 +44,11 @@ - + APPS.VisiDot.dto.ReadData list - + Index: WS/VisiDot/OperatorServer.cls.xml =================================================================== diff -u -r1847 -r1861 --- WS/VisiDot/OperatorServer.cls.xml (.../OperatorServer.cls.xml) (revision 1847) +++ WS/VisiDot/OperatorServer.cls.xml (.../OperatorServer.cls.xml) (revision 1861) @@ -49,14 +49,18 @@ - + +%Integer 1 "_CaptureInfo) + Set CaptureString = CaptureInfo.Read(32000) + Do CaptureInfo.Rewind() + Do ##class(vhLib.Logger).%New("WS.VisiDot").Info("CaptureInfo IN", "["_ComputerNaam_"] "_ActionType_" -> "_CaptureString) + /* Set String = CaptureInfo Set Prefix = "&" @@ -75,7 +79,7 @@ } */ Set XMLReader = ##class(%XML.Reader).%New() - Do XMLReader.OpenString(CaptureInfo) + Do XMLReader.OpenStream(CaptureInfo) Do XMLReader.Correlate("Capture_Info","APPS.VisiDot.dto.CaptureInfo") Set CorrelatedCaptureInfo = "" @@ -89,19 +93,27 @@ Do ..Controleur.UpdateData(.ResultDesc,.ProcessedDataObject) /// XML-object omzetten naar Stream - Set ProcessedDataStream = ##class(%GlobalCharacterStream).%New() - Set Status = ProcessedDataObject.XMLExportToStream(ProcessedDataStream,,"literal") + Set ProcessedData = ##class(%GlobalCharacterStream).%New() + Set Status = ProcessedDataObject.XMLExportToStream(ProcessedData,,"literal,indent") + /* /// In stream HTML Entities omzetten While (ProcessedDataStream.AtEnd = 0) { Set Data = ProcessedDataStream.Read(10000) Set Data = ##class(TECH.StringUtils).HTMLEntities(Data) Do ProcessedData.Write(Data) } - Do ProcessedData.Flush() + Do ProcessedData.Flush() + */ + + Set ProcesseDataString = ProcessedData.Read(32000) + Do ProcessedData.Rewind() + Do ##class(vhLib.Logger).%New("WS.VisiDot").Info("ProcessedData OUT", "["_ComputerNaam_"] "_ActionType_" -> "_ProcesseDataString) + Kill CorrelatedCaptureInfo + $$$TECHErrorTrapOff - Quit + Quit 0 ]]> Index: APPS/VisiDot/zTryout.cls.xml =================================================================== diff -u -r1808 -r1861 --- APPS/VisiDot/zTryout.cls.xml (.../zTryout.cls.xml) (revision 1808) +++ APPS/VisiDot/zTryout.cls.xml (.../zTryout.cls.xml) (revision 1861) @@ -125,13 +125,6 @@ d ##class(APPS.VisiDot.zTryout).%New().ShowVHoss(CaptureInfo) CaptureInfo:APPS.VisiDot.dto.CaptureInfo Index: APPS/VisiDot/impl/VHossCaptureHelper.cls.xml =================================================================== diff -u -r1839 -r1861 --- APPS/VisiDot/impl/VHossCaptureHelper.cls.xml (.../VHossCaptureHelper.cls.xml) (revision 1839) +++ APPS/VisiDot/impl/VHossCaptureHelper.cls.xml (.../VHossCaptureHelper.cls.xml) (revision 1861) @@ -94,21 +94,22 @@ + +The ReadData of BatchID you return to me is put in two nodes, one under the Director node, and the other under the ERP node. +Your system should add Read_Data only to the ERP node, and the Visidot system should add data only to the Director node.]]> %Integer BatchID - Index: vhUnitTest/APPS/VisiDot/TestDetectionHelper.cls.xml =================================================================== diff -u -r1839 -r1861 --- vhUnitTest/APPS/VisiDot/TestDetectionHelper.cls.xml (.../TestDetectionHelper.cls.xml) (revision 1839) +++ vhUnitTest/APPS/VisiDot/TestDetectionHelper.cls.xml (.../TestDetectionHelper.cls.xml) (revision 1861) @@ -76,9 +76,9 @@ Set Detection = DetectionHelper.GeefData() - Set ReadData = Detection.ReadData.GetAt(1) - Do $$$AssertEquals(ReadData.Name,Sleutel,"Sleutel is correct.") - Do $$$AssertEquals(ReadData.Value,Waarde,"Waarde is correct.") + Set AssetData = Detection.AssetData.GetAt(1) + Do $$$AssertEquals(AssetData.Name,Sleutel,"Sleutel is correct.") + Do $$$AssertEquals(AssetData.Value,Waarde,"Waarde is correct.") ]]> Index: PV VisiDot.prj.xml =================================================================== diff -u -r1839 -r1861 --- PV VisiDot.prj.xml (.../PV VisiDot.prj.xml) (revision 1839) +++ PV VisiDot.prj.xml (.../PV VisiDot.prj.xml) (revision 1861) @@ -1,6 +1,6 @@ - + @@ -56,6 +56,7 @@ + Index: vhUnitTest/APPS/VisiDot/TestVHoss.cls.xml =================================================================== diff -u -r1812 -r1861 --- vhUnitTest/APPS/VisiDot/TestVHoss.cls.xml (.../TestVHoss.cls.xml) (revision 1812) +++ vhUnitTest/APPS/VisiDot/TestVHoss.cls.xml (.../TestVHoss.cls.xml) (revision 1861) @@ -4,21 +4,13 @@ do ##class(vhUnitTest.Manager).RunTest("/debug/display=all","APPS.VisiDot") 1 -vhUnitTest.TestCase +vhUnitTest.APPS.VisiDot.VHossTestCase 0 vhUnitTest.APPS.VisiDot.impl.BuildVHossCapture - -APPS.VisiDot.impl.VHossCaptureHelper - - - -WS.VisiDot.OperatorServer - - Opzetten van de VHossBuilder @@ -43,20 +35,12 @@ ]]> - -ProcessedData -1 - - - Index: vhUnitTest/APPS/VisiDot/VHossTestCase.cls.xml =================================================================== diff -u --- vhUnitTest/APPS/VisiDot/VHossTestCase.cls.xml (revision 0) +++ vhUnitTest/APPS/VisiDot/VHossTestCase.cls.xml (revision 1861) @@ -0,0 +1,36 @@ + + + +1 +vhUnitTest.TestCase +0 + + +%String + + + +APPS.VisiDot.impl.VHossCaptureHelper + + + +WS.VisiDot.OperatorServer + + + +ProcessedData:%GlobalCharacterStream +1 + + + + Index: APPS/VisiDot/impl/DetectionHelper.cls.xml =================================================================== diff -u -r1839 -r1861 --- APPS/VisiDot/impl/DetectionHelper.cls.xml (.../DetectionHelper.cls.xml) (revision 1839) +++ APPS/VisiDot/impl/DetectionHelper.cls.xml (.../DetectionHelper.cls.xml) (revision 1861) @@ -39,21 +39,30 @@ -Kleur:APPS.VisiDot.enu.DetectionKleur,ToolTip:%String +Kleur:APPS.VisiDot.enu.DetectionKleur,ToolTip:%String="" Sleutel:%String,Waarde:%String + +ToolTip:%String +1 + + +