computer class demo
To get familiar with
. In this demo we will work with Eclipse BPEL Designer and
Apache ODE as BPEL engine.
Prepare the environment
You have two options in the
You take a single ZIP file that contains everything (Apache ODE+ Eclipse +BPEL designer )
go to step 2 and then to step 4
You configure everything yourself from scratch (if you want to learn something more)
go to step 3 and then to step 4
Simple environment preparation
to any folder you want.
Unzip its content to c:
This is very important!!!
It must be unzipped into this folder.
Now you should see
Under bpel folder there should be two
folders (eclipse and
Run eclipse from eclipse folder. Apache ODE is in
Environment preparation from scratch
You should start by installing
lipse BPEL Designer and Apache ODE
. There is fairly clear tutorial
. Read chapters 1
and 2, but
. The document itself it not completely fresh, therefore it
refers to older versions of Apache ODE and other components. When following these instructions,
install these versions of the software that is mentioned in the tuto
Apache Tomcat 5.5.
, just to be sure
Apache ODE 1.3.5
Eclipse IDE for Java EE Developers (206 MB) (
pse BPEL Designer plug
After successful installation of Apache ODE and Eclip
se BPEL Designer, call the teacher and he
check if ODE is configured prop
Create a simple
Read chapter 3 from
the tutorial mentioned in step 3
Try to create a simple Hello world process and
When it works as it should, proceed to the next step.
: In step 3 of chapter 3 you will be
asked to configure the binding. The path to
your service must look like http://localhost:8080/ode/processes/<
Create a new project BPEL project. Do not use the same project as in step 2.1. Within this new
project, create a new BPEL process fi
This will also create files
process will have the following
parameters as input and output:
The idea of the process is that the user enters his name (e.g. “John”) and age (e.g. 20) and the system
answers by returning a string in resultMessage parameter. In case user’s age is higher than 18, the
resultMessage is equal to “Good <name>, you
are old enough.”. Otherwise resultMessage is equal to
“Sorry <name>, you are too young.” Examples of input
case 1: input=”John”, 20 => output=”Good John, you are old enough.”
case 2: input=”Mary”, 17 => output=”
Sorry Mary, you are not too
In order to keep this demo simple, we don’t call any partner services. We just utilize building blocks
like <bpel:if>, <bpel:assign> and XPath features to complete this demo.
Submission of demo results:
In order to submit the demo result, please,
use the online submission system at
The system expects
these files to be uploaded:
as always, one week later
Always initialize variables when you declare them
It might make sense to have one big assign block
in the beginning of the process where all the variables are assigned.
When building a BPEL process, input and output message definition should be the first step in the
. Do not do it later in the process, because you may need to change other elements
Don’t forget that you can always edit the source c
ode of a BPEL process in XML view (some things
might be easier/faster with it)
. However, be sure that the changes are properly reflected in the
graphical model. If not, perform what is described in the next tip.
Sometimes when things go wrong with the visu
al BPEL editor, closing and opening your *.bpel file
will help the editor to “refresh”/”restart”
When you deploy a new version of your process
and you want to test it
, always reload the Web
(reload = right
click on the wsdl file and call
Web Service Explorer).
After every successful test
of your code (e.g. using Web Service Explorer)
, save the BPEL XML
code into a separate
. This way
you can “roll back” any time to a working solution
. It is
reasonable to keep a history of these
XML source codes.
Another way is to use an Eclipse feature. Eclipse remembers the history of every file and it can show
you how the file looked like at certain time in the past. Just right click on the file and from the menu
>Show Local History
click on the date you want to see. You can also
compare files between each other.