Thursday, 22 September 2011

How Can I Get an Instance ID for Oracle ESB?

A new XPath function was added in to get instance IDs. This section provides
an example in which you invoke a BPEL process from an ESB process and pass the
ESB instance ID to the BPEL process, along with other data.
1. Define a simple ESB project: RS > Synch Routing Rule > File Adapter.

2. Perform a transformation in the routing service

The only unmapped element in the target XML file is the InstanceId field element.
3. Perform the following steps to get the instance ID:
a. Go to Design View.
b. Select Advanced Functions in the Component Palette.
c. Select xpath-expression and drag it to the middle column.
d. Double-click the function icon.
e. Enter ehdr:getInstanceID() in the XPath Expression field.
f. Click OK.
4. Click Yes when prompted with a warning.
5. Map the function to the InstanceID element and save the project.
6. Return to the routing service where the XSL transformation activity is defined.
7. Double-click the routing service.
8. Expand the Properties section and add the following property:
9. Save and deploy the project.
The instance ID function should now work.

1 comment:

  1. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Oracle JDeveloper 11g Fusion, kindly contact us
    MaxMunus Offer World Class Virtual Instructor led training on Oracle JDeveloper 11g Fusion. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Nitesh Kumar
    Skype id: nitesh_maxmunus
    Ph:(+91) 8553912023