1

Having an assign step in the BPEL process we map some elements from the variable to a service request (another message type variable)

The element (xml element) according to the schema is optional (may be missing). So when mapping, I assume the attribute ignoreMissingFromData="yes" should ignore the missing source element. But apparently when the element is missing, the engine throws a fault.

<bpel:copy ignoreMissingFromData="yes">
  <bpel:from variable="item">
  <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
    <![CDATA[wi:clientRequestData/wi:equipmentID]]>
  </bpel:query>
  </bpel:from>
     <bpel:to part="parameters" variable="esbReq">
     <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[ns1:equipmentId]]></bpel:query>
  </bpel:to>
 </bpel:copy>

Is really the "ignoreMissingFromData" attribute ignored or shall I look for the problem somewhere else?

Thanks for any hints

gusto2
  • 11,210
  • 2
  • 17
  • 36
  • Can you add the exception stack trace. Apache ODE has a testcase which might help you (https://github.com/apache/ode/tree/ode-1.3.x/bpel-test/src/test/resources/bpel/2.0/TestAssignMissingData). – Sathwik Dec 23 '16 at 09:35
  • Thank you. Hmm - it looks it should work.I will try to provide a stacktrace and prepare a testcase as well – gusto2 Dec 26 '16 at 08:00

0 Answers0