Showing posts with label Transformation. Show all posts
Showing posts with label Transformation. Show all posts

Friday, April 3, 2015

Adding Multiple Sources in XSLT Transformation in BPEL

Hi Friends,

Many Times we need to point input from multiple source variables to one target in xslt mapper file.

There are two ways to deal with :

  • Add Multiple source variables while creating Transformation activity in bpel.
  • Create xsl file based on two xsd's and right click on source panel in xslt mapper in design view and select add source.
1) Adding multiple variables in Transformation Activity.
  • Drag and drop Transformation Activity
  • Go to Transformation tab and click + sign in Source and select required source variables
  • Select Target variables as per requirement.
See Below Snippet :



2) Adding Source to Already Created xsl mapper file.

Please follow below steps:



Thanks.

Saturday, March 28, 2015

XSLT Transformation file Design View not opening in Jdeveloper

Problem :
                 Design View XSLT transformation file(.xsl) not showing/opening.

Cause :
              Probably,It happens when you export Project from em console and import it in Jdeveloper.
               which removes oracle-xsl-mapper tag which contains mapSources and mapTargets.

Solution :
             Try to add manually  <?oracle-xsl-mapper>  tag after xml start tag and above stylshhet tag with                                   corresponding mapSources and mapTargets.

Sample Oracle-xsl-mapper :  which generates in xsl file when you create first time in jdev.

<?oracle-xsl-mapper
   <mapSources>
    <source type="WSDL">
      <schema location="../sourceWsdlName.wsdl"/>
      <rootElement name="sourceRootElement" namespace="sourceWsdlNamespace"/>
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="targetWsdlLocation"/>
      <rootElement name="targetRootElement" namespace="targetNamespace/"/>
    </target>
  </mapTargets>
 ?>
               

Add the above code to your xsl file above stylesheet tag and do changes accordingly to your source and target as mentioned in Bold.

Please refer below screens shots  :