Set the field of the i-th document in the DocumentList to String

Platform: SoftwareAG WebMethods 8.2 Problem: I have 2 DocumentList. One of them contains XOPObjects other lines. I need to convert XOPObject to String and copy it to another DocList string field. What's happening? Nothing. String fields remain in the record, and base64string XOPObject is beautifully generated.

The steps taken with this DocList: A (source with XOP) DocList: B (target field with string)

 1. Loop over A
 2. Create Base64String from XOPObject using pub.soap.utils:getXOPObjectContent
 3. Call pub.flow:debugLog to check if the base64String is generated
 4. Generate index variable from $iteration with pub.math:subtractInts as index:=$iteration-1
 5. Perform map step from base64String to B String field with index set to %index%
 6. After loop
 7. pub.xml:documentToXmlString to generate xml representation of the B document
 8. pub.flow:debugLog
 9. Nothing is in the String field...

Any idea what is going wrong here?

+3
source share
3 answers

In the webMethods Integration server thread service, the loop has two properties for identifying lists for iteration: an input array, which is required, and an output array, which is optional.

, , ; , . , .

198 webMethods:

LOOP , , LOOP. LOOP . , LOOP , , LOOP.

LOOP . : * * * *

LOOP , .

, , , array, , .

Loop step properties

, LOOP , LineItems, Item, Qty UnitPrice, LineItems LOOP, LineItems (, Item, Qty, UnitPrice ..) .

LOOP

LOOP , .

Output array, , , . , String, InventoryStatus, , , InventoryStatus Output array. , InventoryStatus , .

, , .

, :

  • . , .

  • ( XOPObject) , .

  • pub.list:appendToDocumentList pub.list:appendToStringList . , , , , , (.. ).

+1

, . , . - . , , , base64String .

, doc .

0

Perhaps you can generate a list of strings as the output array of the loop, and then, outside the loop, display a list of strings of strings in field B?

0
source

All Articles