« Return to Thread: How to assign From one NS to another NS in a BPEL?

Re: How to assign From one NS to another NS in a BPEL?

by Murali Pottlapelli :: Rate this Message:

Reply to Author | View in Thread

Here you are asking multiple questions. I will enumerate the questions and provide response.

Q - How do I copy document fragment of one name space to other?

A - You need to do it by copying leaf nodes.

Q - How do I copy optional nodes?

A - set "Ignore Missing From Data" to "yes". hope this screen shot helps you to navigate.




Q - How do I copy optional repeating nodes.

A - Here we go beyond the spec, as per spec "from" evaluation should result in only one node, implementation relaxes this rule and copies all the nodes. If the node is optional, make sure that "Ignore Missing From Data"  on "copy" to "yes". You could do this at process level too.

Q - How do I copy the selected nodes in a repeating node.

A - You need to use looping construct (while or repeat or for), and "if" to filter the nodes. predicate to access specific node. To find count of a given node use node function count.


Hope this helps.

Regards
Murali

jsexton0 wrote:
Hi -

My BPEL calls an EJB, and I want to assign part of the EJB's result into the
returned value of the BPEL.  The fragment I'm interested in occurs one or
more times and is a complex type with optional elements.  The problem comes
in because the EJB's result in in a different namespace from the BPEL's
result that I want to copy into.  Just assigning the fragment leads to a
selection failure at runtime.  But I can't assign the pieces individually,
even in a loop, because of several optional elements that may not be there.

How can I assign this fragment in a way that changes it's namespace to that
of the output value?

What I need is some sort of cast?

Thanks!


  

 « Return to Thread: How to assign From one NS to another NS in a BPEL?