HelloWorld Example using BPEL process in SOA Suite 12c

Today I am going to discuss BPEL, Business Process Execution Language. It’s basically a programming language for Oracle SOA. So we will see What BPEL is and How to use different activities in BPEL followed by a HelloWorld Example.

BPEL Definition:

Business Process Execution Language is a XML based language that allows SOA to interconnect and share data between different web services. BPEL helps inA�orchestrating multiple web services, manage events and exceptions based on business logic. In BPEL editor,A�One Activity and couple of partner links are there. Activities Lane include different BPEL activities, basically logic A�in the process, such as invoke, assign, receive, flow, pick etc.
Partner links are the entry point of BPEL process. All web services will be invoked through partner links.BPEL_Componenets

In the example below, we will create a BPEL Process which takes any input, leta��s say a�?Leenaa�? and returns a�?Hello Leenaa�? as output. Here we go:

  1. CreateA�a new SOA project and enter project name as HelloWorldBPELPrj in the next window. helloworld_bpel_1
    helloworld_bpel_2helloworld_bpel_3
  2. Click on NEXT button and select Composite With BPEL Process option.helloworld_bpel_4
  3. Enter BPEL process name in the BPEL Process creation wizard and select Synchronous BPEL Process as template type
    helloworld_bpel_5helloworld_bpel_6
  4. Let the input and output be default and select checkbox Exposed as a SOAP Service. Click on OK button and the component will look like below screenshot.
    helloworld_bpel_7
  5. Double click on BPEL component and BPEL editorA�will open as shown below. As it is a synchronous BPEL process, receiveInput and replyOutput activities will be created automatically. Apart from these activities, BPEL editor has partner links on both the sides where external Web Services or Adapter Services are used in order to communicate with other services or file or Database.
    helloworld_bpel_8
  6. Select an Assign activity from component palate and drag and drop it in the middle swim lane. Double click on the Assign activity to open the editor wizard of Assign activity.helloworld_bpel_9
  7. Click on Expression icon helloworld_bpel_10A�at the right hand side upper corner to open expression builder wizard.
  8. Select concat function under String Functions and click on Insert Into Expression. Write the expression as shown in the screenshot.helloworld_bpel_11
  9. Click on OK buttonhelloworld_bpel_12
  10. BPEL process will look like the screenshot given below.helloworld_bpel_13
  11. Now deploy the project. Right click on project and select the Deploy option.helloworld_bpel_14
  12. Select Deploy to Application Server as Deployment actionhelloworld_bpel_15
  13. Click on NEXT button and enterA�version of the project.helloworld_bpel_16
  14. You can select standalone application sever that needs to be configured, but here I am selecting Integrated Weblogic Server.
    helloworld_bpel_17
  15. Select SOA server and then click on Finish.helloworld_bpel_18
    1. Test the project from jdeveloper itself. Go to Application Server tab -> IntegratedWeblogicServer -> SOA -> HelloWorldBPELPrj

    helloworld_bpel_19

  16. Right click on project and select Test Web servicehelloworld_bpel_20
  17. Enter input string in the SOAP header part and click on Send request.helloworld_bpel_21
  18. Response will look like thishelloworld_bpel_22

This is a simple Hello World example usingA�BPEL. We will learn more about different activities of BPEL process in my consequent blogs.

Leave a Reply

Your email address will not be published. Required fields are marked *

Show my latest post here