PaaS Partner Community

  • August 20, 2015

BPEL – Performance optimization of payload transformations within loops by Alexander Daeubler

Juergen Kress
PaaS Partner Adoption

clip_image002In 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:template match=”/”>
        <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.

SOA & BPM Partner Community

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.

Blog Twitter LinkedIn image[7][2][2][2] Facebook clip_image002[8][4][2][2][2] Wiki

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.