bpel activities

Upload: anirudh-pandey

Post on 13-Jan-2016

18 views

Category:

Documents


0 download

DESCRIPTION

bpel

TRANSCRIPT

Oracle SOA Training

BPEL An Introduction to BPEL

1SOA Solutions1What Is BPEL?Business Process Execution Language (BPEL) is an XML-based language for creating a process, which is a set of logical steps (called activities) that guide a workflow A BPEL process fulfills a workflow primarily by accessing one service after another. Each of those services is called a partner service.

2SOA SolutionsThe Oracle BPEL Process Manager3SOA Solutions3The Oracle BPEL Process ManagerOracle BPEL Process Manager is an engine for designing, deploying, and managing BPEL business processes.

4SOA Solutions4HCL Proprietary & Confidential. Not for Distribution.

The Oracle BPEL Process ManagerThe BPEL Designer provides a graphical and user-friendly way to build BPEL processesThe core BPEL engine provides the most mature, scalable and robust implementation of a BPEL. It also provide dehydration future.The built-in integration services enable developers to easily leverage advanced connectivity and transformation capabilities from standard BPEL processes.The extensible WSDL binding framework enables connectivity to protocols The BPEL Console provides a mature web-based interface for management, administration and debugging of processes deployed to the BPEL serverOracle BPEL Process Manager Components

5SOA Solutions5HCL Proprietary & Confidential. Not for Distribution.

The design environment (Oracle JDeveloper) enables you to design and deploy BPEL processes. You design BPEL processes by dragging and dropping elements (known as activities) into the process and editing their property pages. You integrate BPEL processes with external services that you also design and edit (known as partner links). You also integrate technology adapters and services such as workflows, worklists, transformations, notifications, sensors, and business rules with the process.When design is complete, you deploy the process from the design environment to Oracle BPEL Server.

If deployment is successful, you can run and manage the BPEL process from Oracle BPEL Control.

Initial State of the BPEL Process

SOA Solutions66HCL Proprietary & Confidential. Not for Distribution.

JDeveloper creates the following 3 files under the BPEL Project in the Application Navigator bpel.xml : The deployment descriptor for the process. The file contains the metadata for the BPEL process and defines the location of the WSDL files for services called by this flow, along with other project-specific parameters.projectname.bpel : The BPEL source for the process. projectname.wsdl : The WSDL interface for the process. The WSDL defines:The input and output messages for this flow.The client interface and operations supportedThe message types specified as values for partnerLinkType attributes in partner Link elemens in the BPEL process.Overview of Activities Activities are the building blocks of a BPEL process. Oracle JDeveloper includes a set of activities that you drag and drop into a BPEL process and double-click an activity to define its attributes (property values).

SOA [email protected].

Assign ActivityProvides a way to copy data between variables in a BPEL ProcessOne of the ways you can copy data from source to target in a BPEL Process.

9SOA Solutions9Assign ActivityWhen you Double Click the Activity Icon. Assign popup window will appear you can perform following operation Copy , Append, insert and Remove

10SOA Solutions10Assign ActivityCopy operation

11SOA Solutions11.Empty Activity This activity enables you to insert a no-operation instruction into a process. This activity is useful when you need to use an activity that does nothing (for example, when a fault needs to be caught and suppressed).

12SOA Solutions12Flow and FlowN ActivityOne or more activity performed concurrently FlowN activity allow the user to create an activities and specify the number of branches of these activity to create. Process activities in parallel dynamically

12

Invoke ActivityThis activity enables the user to specify an operation you want to invoke for the service (identified by its partner link).The operation can be One way Operation Two way operation ( Request Response or Response-Request)You can also automatically create variables in an invoke activity.An invoke activity invokes a synchronous service or initiates an asynchronous Web service13SOA Solutions

SOA SOlutions1414Invoke ActivityWhen user double click on Invoke Icon, a pop window will appear and user can perform following tasks.Provide the activity with a meaningful name.Select the partner link for which to specify an operationSelect the operation to be performedAutomatically create a variable or select an existing variable in which to transport the data (payload)

15SOA Solutions15Invoke Activity

16SOA Solutions16

Java embedding ActivitiesThis activity enables you to add custom Java code to a BPEL process using the Java BPEL exec extension . When user double click on the Java embedding icon, popup window will appear and user can enter the java code on it.

Notification ActivitiesThis activity enables you to send notification about an event to a user, group, or destination address. You can send a notification by e-mail, voice mail, fax, pager, or short message service (SMS).

SOA Solutions17SOA Solutions1818Partner Links Partner Links are a reference to an external service that can be called by the BPEL process or call into the BPEL process. Partner Links are BPEL components that are used to define the communication between the BPEL engine and external components.External components :-Web ServicesJ2EE applicationsDatabase ApplicationsAdapters

SOA Solutions1919PartnerLink Window

19SOA Solutions2020Partner Link Window Fields Name : A unique and recognizable name you provide for the partner link.WSDL File:The name and location of the Web Services Description Language (WSDL) file that you select for the partner link. Partner Link Type:The partner link defined in the WSDL file.Partner Type:The role performed by the partner link (in this example, the CreditRatingService service). My Role:The role performed by the BPEL process.SOA Solutions2121Pick ActivityThis activity waits for the occurrence of one event in a set of events and performs the activity associated with that eventThis activity provide two branches OnMessage (on left)onTimeOut (on Right)onMessage contains code for Receive MessageonTimeOut contains the code for Time Out Whichever branch completes first is executed; the other branch is notSOA Solutions2222Pick Activity