1 Reply Latest reply on May 16, 2007 10:45 AM by Asiye AYDIN

    BPEL: adding an element to an array?

    Frank Zartmann Newbie

      Hi,

      is there a way to add an element to an array in a BPEL-program?
      In the bpel-engine from oracle there exists a function

      addChildNode

      for this purpose.

      Best regards,

      Frank

        • 1. Re: BPEL: adding an element to an array?
          Asiye AYDIN Newbie

          I have same problem. I am writing an extension function to get a variable(string array type) and add a string value to the end of the array.
          add2Set(arrVar, 'testStr')
          I get a List from call function's first argument but it is always empty. When I add an element to list and return, no set occurs in list.

          <from expression="add2Set(arrVar, 'testStr')"/>



          Another problem is I can not use query="/part/items[0]" type queries, [] are not accepted and predicate can not be used exception is given by jbpm.
          If anyone find a way to set a value to array, please mail me also.
          Asiye AYDIN
          asiye.aydin@gmail.com