setTitle for instances in SOA11g



Implement the below setTitle feature by following the detailed flow.

It is good practice to name composite instance. If you name your composite instance the you can uniquely identify the instance.
To give composite instance a name you simple need to add one java embedding activity inside BPEL and add one function inside that java embedding activity.
Here are the steps that you can follow to name a composite instance.

1) Create a sample Addition Synch BPEL which will add two numbers.
2) Create a string variable and name it "Title".
3) Add assign activity after receive activity and assign name to Title variable.
concat("Inputs: ",bpws:getVariableData('inputVariable','payload','/client:process/client:input1'),", ",bpws:getVariableData('inputVariable','payload','/client:process/client:input2'))





4) Add java embedding activity after assign activity. In that activity add below function.

     setCompositeInstanceTitle((String)getVariableData("Title"));


5) After implementation, the bpel looks like below.




6) Now deploy, test and see the instances created.

Comments

  1. I have the requirement to implement setTitle feature but i don't know how to perform this thank you for guiding with useful screen shots.
    Regards,
    best institute for soa in hyderabad.

    ReplyDelete

Post a Comment

Popular posts from this blog

Difference between Route, Service Callout, Publish

OSB actions in proxy service

XQuery functions that supported by OSB