1 Reply Latest reply: Jul 17, 2013 1:04 AM by Richa Juneja RSS

    BPEL Assign activityafter copying data, loosing namespace

    996510

      Hello Guys,

      in BPEL, using assign activity to copyList data from one payload to another payload, when i look the audit trail, namespace are missing, take an example.

      input:

       

      <inputVariable>

      <part  name="payload">

      <ns1:personsElement  manager="Manager Name">

           <ns1:person  ssn="SSN-123">

                <ns1:firstName>First Name - A</ns1:firstName>

                <ns1:lastName>LastName-B</ns1:lastName>

           </ns1:person>

           <ns1:person  ssn="SSN-2222">

                <ns1:firstName>First Name - BBB</ns1:firstName>

                 <ns1:lastName>LastName-CCCC</ns1:lastName>

           </ns1:person>

      </ns1:personsElement>

      </part>

      </inputVariable>

      I'm getting out when i user assign

      <assign name="Assign1">

            <bpelx:copyList bpelx:ignoreMissingFromData="yes">

              <bpelx:from variable="inputVariable" part="payload"

                          query="/ns1:personsElement/ns1:person"/>

              <bpelx:to variable="outputVariable" part="payload"

                        query="/ns1:personsElement/ns1:person"/>

            </bpelx:copyList>

            <copy>

              <from variable="inputVariable" part="payload"

                    query="/ns1:personsElement/@manager"/>

              <to variable="outputVariable" part="payload"

                  query="/ns1:personsElement/@manager"/>

            </copy>

          </assign>

       

      Output data:

      <outputVariable>

      <part  name="payload">

          <personsElement  manager="Manager Name">

              <ns1:person  ssn="SSN-123">

                  <ns1:firstName>First Name - A</ns1:firstName>

                  <ns1:lastName>LastName-B</ns1:lastName>

              </ns1:person>

              <ns1:person  ssn="SSN-2222">

                  <ns1:firstName>First Name - BBB</ns1:firstName>

                  <ns1:lastName>LastName-CCCC</ns1:lastName>

              </ns1:person>

          </personsElement>

      </part>

      </outputVariable>

       

      the namespace ns1: missing in personsElement node, please help me how to add namespace