Professional Documents
Culture Documents
4.introduction To BPEL
4.introduction To BPEL
Lesson Objectives
Editor
Component Palette
Application Navigator
Property Inspector
Log Window
The Hello Process
Creating the Hello Process
Create connection to the application server
and to the BPEL and ESB Server
Create the workspace and add project
By selecting
Synchronous BPEL
Process, a skeleton is
created along with all of
the necessary source
files are created.
Anatomy of a BPEL Project
Workspace
Project file
Schema file
Types
Messages
Port types
Partner Links
BPEL Process Source Structure
<process>
<!-- Partner Links Section: services -->
<partnerLinks>
<partnerLink name="service-name" .../>
</partnerLinks>
<!-- Process Variables Section: message data -->
<variables>
<variable name="var-name" messageType="type"/>
</variables>
<!-- ORCHESTRATION LOGIC -->
<!-- Activity Flow Section: activities -->
<sequence name="main">
<receive .../>
<assign><copy><from...><to...></copy></assign>
<reply .../>
</sequence>
</process>
BPEL Process Source Structure
The <process> element
<process> is the top-level element
forSection:
<!-- Partner Links the BPEL source
services -->
<partnerLinks> code.
<partnerLink name="service-name" .../>
</partnerLinks>
<!-- Process Variables Section: message data -->
<variables>
<variable name="var-name" messageType="type"/>
</variables>
<!-- ORCHESTRATION LOGIC -->
<!-- Activity Flow Section: activities -->
<sequence name="main">
<receive .../>
<assign><copy><from...><to...></copy></assign>
<reply .../>
</sequence>
</process>
BPEL Process Source Structure
<process>
<!-- Partner Links Section: services -->
<partnerLinks>
<partnerLink name="service-name" .../>
</partnerLinks>
<!-- Process Variables Section: message data -->
<variables>
<variable name="var-name" messageType="type"/>
The <partnerLinks> element contains a list of
</variables>
<!-- ORCHESTRATION
<partnerLink> LOGIC
elements defining services that -->
<!-- Activity
participate in theFlow
BPELSection:
process. activities -->
<sequence name="main">
<receive .../>
<assign><copy><from...><to...></copy></assign>
<reply .../>
</sequence>
</process>
BPEL Process Source Structure
<process>
represent messages a
<!-- Partner Links Section: services -->
<partnerLinks> XML documents used
activities in process.
<partnerLink name="service-name" .../>
</partnerLinks>
<!-- Process Variables Section: message data -->
<variables>
<variable name="var-name" messageType="type"/>
</variables>
<!-- ORCHESTRATION LOGIC -->
<!-- Activity Flow Section: activities -->
<sequence name="main">
<receive .../>
<assign><copy><from...><to...></copy></assign>
<reply .../>
</sequence>
</process>
BPEL Process Source Structure
<process>
<!-- Partner Links Section: services -->
<partnerLinks>
<partnerLink
The name="service-name"
<sequence> element .../> logic, or
contains the orchestration
</partnerLinks>
process flow. The process flow is comprised of a sequence of
<!-- Process
activities Variables
that coordinate theSection: message
flow of messages datathe
across -->services
<variables>
integrated within the business process. For example:
<variable name="var-name" messageType="type"/>
</variables>
<!-- ORCHESTRATION LOGIC -->
<!-- Activity Flow Section: activities -->
<sequence name="main">
<receive .../>
<assign><copy><from...><to...></copy></assign>
<reply .../>
</sequence>
</process>
What next?
1
3
4
Create connection to BPEL Server
3
Building and Deploying the process
After creating the process, we need to compile and
build it.
When you build your process, all of the process
components are packaged into a ‘BPEL suitcase’ JAR
file.
The JAR file can be deployed to any Oracle BPEL
Process Manager server, simply by copying it into the
appropriate deployment directory.
JDeveloper uses ANT to build the BPEL process. It
generates a build.xml file that builds and deploys
the suitcase to your local server’s default domain, in
this case %ORACLE_HOME
%\bpel\domains\default\tmp
Deploying the process
To build and deploy the Hello BPEL process:
1. In the Applications Navigator, right-click the Hello project
and select Deploy > MyBpelServer > Deploy to default
domain.
2. Verify that the process compiled and deployed successfully by
reviewing the message text in the Messages tab in the Log
window of JDeveloper
Deploying a BPEL process makes it a service. This
is made possible by automatic addition of <service>
and <binding> tag to the WSDL during deployment.
Oracle BPEL Console
BPEL Console lists all the deployed processes
BPEL Console can be used for
Invoking a BPEL process with appropriate input
Viewing completed, in process and failed instances
Viewing the flow in an instance
Viewing messages exchanged in an instance
Deploying, undeploying a process
Purging instance and sensor data
BPEL Admin activities
BPEL Console Dashboard
The Dashboard shows all the deployed processes
Initiate a process
View the Response
See the Visual Flow of the process
Managing and Administering