This article shows how to create, deploy and test a simple BPEL process on Oracle SOA suite 10g using JDeveloper.
1. Right click on the Applications on Application Navigation and enter the Application name in this case 'MyFirstBPELApplication'.
2. In Step 2 right click on the MyFirstBPELApplication and create a new Project. Enter the project name using proper naming conventions.
3. Once your project is ready, now create a BPEL project through BPEL Project Creation Wizard and name it as 'AddBPELProcess'.
Select the Asynchronous BPEL Process in the template select box.
4. Now our BPEL Service is ready, in our business logic we will add a variable with a constant value. Drag and drop the Assign activity onto the design area.
5. Double click on the Assign activity to configure our add operation. Select the Copy Operation option in Create select box to incorporate our business logic.
6. Now in operation wizard choose Expression as a Type at input variable side.
7. For our simplicity JDeveloper provided wide range of functions, now select Mathematical Functions option so that we can use the add operation in our process. In our bpel process we add a constant value (120) with the input value, so pass the constant value and input variable to the add function.
8. Once you done with the business logic now assign the output to the output variable and click on OK.
9. Your BPEL process is ready to deploy on the Oracle SOA Suite 10g. Make sure that your server is running and you are able to see the server instance under the ServerConnection.
10. If every thing is OK then you are able to see successful Build on the Ant console.
11. Now lets test our BPEL process in the Oracle BPEL Process Manager. Open the BPM and login using default login authentication. Find our BPEL instance under BPEL Process tab here it is AddBPELProcess.
12. Click on the AddBPELProcess instance to initiate the testing process. Pass the input value in the text box here it is 120 and click on the Post XML Message button.
13. Finally, lets check for the result under flow tab which shows the visual representation of the bpel process. Double click on the assign activity to check the output variable value.
See, it is 240 (120 (Constant) + 120 (input value))that means our first bpel process worked well!!!.
Hope, this article useful for the developers who just started learning Oracle SOA Suite. Do not hesitate to reach me for any queries on this workout.
No comments:
Post a Comment