Frage

Here is the logic I used in the while loop, the value of i is 1 $i<=ora:countNodes(bpws:getVariableData('inputVariable','payload','/ns1:Input/ns1:Add')).

Here is the xsd I created for reference

        <xsd:element name="Add" type="xsd:int" maxOccurs="unbounded"/>

When I used countNodes it's throwing an error. Can anyone please explain me where am I going wrong and what function should I use to find total number of elements in the array.Thanks in advance.

War es hilfreich?

Lösung 2

$i<=ora:countNodes(bpws:getVariableData('inputVariable','payload','/ns1:Input/ns1:Add'))

here instead of countNodes, using count works.Thanks.

Andere Tipps

If you are doing it in the BPEL process. Please do it step by step as follow:

  1. Use Assign Component for initialize Increment, NodeCount Variables. a.Increment Variable initialize it to '1' b.Find out the node count of the Array variable using ora:countNodes('InputVariable','Payload','element')
  2. Use the While-Loop Component with condition Increment Variable< NodeCount Variable
  3. At the end of the Loop increment the Increment Variable by '1'

Let me know if you need any thing else..

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top