Thursday, May 17, 2012

Setting the Composite Instance Name (Title) in Oracle Mediator - Oracle SOA Suite

Setting the Composite Instance Name (Title) in Oracle Mediator - Oracle SOA Suite:

 The composite instance name (Title) will help us to track the composite instances at runtime, the below two approaches can be used to set the instance Name (Title) for the composite with the Mediator instances.

Oracle SOA Suite 11g:

Assign Activity:

1.       Click on the Assign Values in the Routing Rule section and create new Assign value


 
2.       Select the Type as expression in the From (Left) side and insert the Mediator Extension Function setCompositeInstanceTitle and pass the input based on which variable the title should be set.
 
 



3.       In the To(Right) side select the type as property and enter the property value as tracking.compositeInstanceTitle(Enter manually, the property might not be available in the list)


 4.       Deploy the composite and verify the title(Name)

 

 Transform Activity:    


Use the Mediator Extension Function setCompositeInstanceTitle (input) method in the XSL file to  set the Name (Title) for the instances.


Oracle SOA Suite 12c:

Assign Activity:

1.       Click on the Assign Values in the Routing Rule section and create new Assign value

mediator_assign


2.       Click on the expression builder and insert the Advance Function oraext:setFlowInstanceTitle and pass the input based on which variable the title should be set or hard coded value and Click Ok

mediator_flow_title



3.       Link the expression builder with tracking.compositeInstanceTitle in the right side
mediator_tracking_title

 4.       Deploy the composite and verify the title(Name)

mediator_flow_title_em_console

Transform Activity:    


Use the Mediator Extension Function setFlowInstanceTitle(input) method in the XSL file to  set the Name (Title) for the instances.

Create new mapping file or edit the exiting one

mediator_transformation

Select the advance function setFlowInstanceTitle

mediator_advance_XSL_functions

Set the XPATH for tile and map the output to target node - setFlowInstanceTitle method set the title and send the same value as response.

mediator_advance_XSL_functions

Now the title will be set to the composite instance based on the Input

mediator_composite_instance_title

No comments:

Post a Comment