Sunday, 10 July 2016

Pick Activity Demo and Usages Oracle 12C

Pick Activity in SOA Suite


We are going to explain pick activity today. This activity can used for the routing in the BPEL process based on the message. 

This activity can be used for the two purposes 

1.  Message based routing
2.  Running a service after a short interval.


There can be some confusion between mediator routing and pick activity. We need to keep in mind 

1. Mediator can do routing between the multiple bpel process 
2. Pick is only used for routing, in a single BPEL process. 
3. Pick can self initiate a process after a certain interval while mediator not.
4. Mediator can do dynamic routing, which pick not. 


Pick is very limited in-terms of dynamic routing for the BPEL process, we can say if a process can provide multiple operations then we can use pick activity, we see very usages of it in the normal integration process. But it can suite to utilities, if required to be build for a integration process.


Download the exmaple from the link, we have created three operations in the BPEL process and all are supporting same parameters, this is we have done to  make it simple. You can play with the example and try it to take 3 parameters for multiplication and also for exercise we have not added the division part to the process. I hope during the time of exercise, you can play with process and make this option available to the project.  Download and open the project and see.


Key Elements.

1. WSDL:-  Open the wsdl, we have created message of different type for all the three operations.
   


 Now in the port we have created multiple operations, which are for addition, multiplication and subtractions.



BPEL Process.

  1. BPEL process is quite simple, hope you have opened it, just see there is a pick activity and three message is been configured, which are picking the message, which are configured for each.



2. Just open any of the message and see how the message is been configured for operations. 

 3. This is an important point we should remember, without this an instance will not be created for the message.




Test Run

1. Now once you deployed this composite it will allow you to choose any of the three operations
    once you choose any of the operation, it will respect the message in the same way.

  2. You can flip the opration from the choice list displaying all the available operations.


3. This is nothing  but the result of the operations.







Now I hope you will try to add division as one more message driven activity and complete this process.

 We will try to add some more simple example to make your journey simpler.










References :-

https://manoharsr.wordpress.com/2013/05/09/bpel-process-with-multiple-operations-pick-activity-bpel-process-in-top-down-approach-2/




 About me :
https://www.linkedin.com/in/vipinckumar

No comments:

Post a Comment