Sunday, October 26, 2014

Oracle SOA 12c: How to create Inline Bpel Subprocess

As from my previous blog post on Getting started with resuable bpel subprocesses, you get some basic idea of resuable subprocesses in Oracle SOA 12c. Here in this blog post I am going to show you how to create a Inline bpel subprocess in your soa composite application.

Scenario:

I am creating a Error handler service in which there two scope in the Error Bpel Process. 
  • Notification scope: In this process email notification is send to the user using the notificaiton service.
  • Logs scope: In this process logs is written in the external file system using the file adapter
Note: Only the scope activity can be converted into subprocess.

Create inline bpel subprocess
  1. Create a soa project in soa application i.e. CommonComponents and in that create a bpel 2.0 process i.e. "ErrorProcess"
  2. In the bpel process, create two scope logs and Alert (notification scope). Now in the log scope call the file adapter to write the logs on to the file system and in Alert scope call the notification service to send email.
  3. Now right click on the scope and select convert to subprocess
  4. After creating subprocess, you can see the subprocess in the components tab.
  5. Drag n drop the inline subprocess where ever you required.
  6. Save, deploy and test the process.


No comments:

Post a Comment