In a recent project (developed using SOA Suite 11g) one of the requirements was to filter out certain lines of an order as these lines should not be forwarded to the business partners. In a first version we looped over all lines of the order and used a transformation activity within the loop to add each line to the response element. In case the line should not be added to the response we just ignored it.
The loop looked like this:
The actual process contained more logic but for reasons of simplification I removed all activities that are not related to the topic of this blog post.
The XSL transformation logic was as follows:
<xsl:param name=”CurrentlyProcessedLine” />
<xsl:copy-of select=”/ns1:Order/ns1:OrderHeader/*” />
<xsl:copy-of select=”/ns1:Order/ns1:OrderLine” />
<xsl:copy-of select=”$CurrentlyProcessedLine/ns1:OrderLine/*” />
Basically, for each iteration of the loop the old order was cloned and the current line was attached to that order (except for ignored orders, of course). Read the complete article here.
For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.