IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Anybody can explain %loop% tag with -struct option in DSP ?

  • 1.  Anybody can explain %loop% tag with -struct option in DSP ?

    Posted Fri April 13, 2007 01:16 PM

    Hi, while going thru the DSP documentation, I came across the %loop% tag with the -struct option , but could not understand its implication. Can anybody explain its purpose with a lucid example ?
    text.doc (45 KB)


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 2.  RE: Anybody can explain %loop% tag with -struct option in DSP ?

    Posted Fri April 13, 2007 02:24 PM

    You can think of a document as a list of variable names (keys) and value pairs. Keys are always strings, but values can be null or can contain objects including other documents. The IData interface allows you to get the first key in the document with the IDataCursor.first() methods and then traverse the document using the IDataCursor.next() method.

    This form of the %LOOP% tag starts with the root node of the document and returns each name-value (key-value) pair in order.

    Without testing, I don’t know whether this tag will traverse values containing other documents recursively in the same way that the pub.flow:tracePipeline built-in service does for the “pipeline” document.

    The WmSamples package (available after IS 6.5 only from Advantage) contains an example called WalkAnIData that should be helpful.

    Mark


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS