LTSA-Eclipse Preview
Tutorial 2
Modeling BPEL4WS Compositions
The LTSA-Eclipse plug-in is an extension to core LTSA tool
that allows the creation of models of processes, driven by a formal behaviour
model.
The
home of the LTSA-Eclipse Preview plug-in is
here.
The
Tutorial 1 for the LTSA-Eclipse Preview is
here.
This tutorial contains:
Prerequisites
The following plug-in requirements are necessary to carry out this tutorial:
-
An installation of Eclipse
3.0.1+ (tested on build 200409161125)
-
The preview plug-in build - click
here
to download.
-
The samples from IBM BPWS4J 2.1
- click
here
to download.
Installing the plug-in
Locate the installation directory of Eclipse.
Unzip the plug-in to the \eclipse\plugins directory. After this has
completed, browse to the plugins directory and verify
that the directory now contains a ltsaeclipse_1.0.0 sub-directory.
Starting the environment
Start Eclipse using your normal start up routine.
- From the
Eclipse menu bar, select Window
-> Open Perspective -> Other -> LTSA Perspective. If
this menu item is not present, then the plug-in has not been successfully
installed.
- Notice the layout of views/windows will be similar to that
illustrated in Figure 1.

Figure 1. LTSA Perspective in Eclipse
- From the
Eclipse menu bar, select File
-> New -> Project.
- Select the Simple -> Project as the
type you wish to create and select Next.
- Enter the
name of the new project as LTSABPEL
and select Next.
-
Locate the installation
directory of IBM BPWS4J Engine.
-
From the
Eclipse menu bar, select File
-> Import -> File System and select Next.
- Select the
Samples folder in the IBM BPWS4J
Installation directory and ensure the "Into Folder" contains the value
LTSABPEL.
- Click Finish to import the samples
folder, which will display its content in the Navigator view of the
Eclipse workbench.
- Navigate to
the Marketplace example in the LTSABPEL4WS/marketplace folder
using the Navigator view.
-
Open the folder, and select
the marketplace.bpel file.
-
Right-click the marketplace.bpel file, and select
Open With -> LTSA-BPEL
Editor to open the bpel file.

Figure 2. BPEL LTSA Editor View for new LTS
-
The bpel file will be opened in the
LTSA-BPEL
editor. Also notice that the Outline view
contains some entries for the formal
process outline, including Constants, Sets, Ranges, Compositions, Processes
and Properties.
-
To initially populate the outline view,
select Build ->
Translate from the Eclipse
Workbench menu items.
-
The
Outline view
will now contain some entries for compositions of the BPEL4WS process.
-
The above features are illustrated in
Figure 3.

Figure Features illustrated in LTSA-BPEL Editor
-
Note that each of the compositions listed
in the Outline->Compositions children are parallel processes formed from
translation of the BPEL process.
- To compile a composition into
Finite State
Machine, right-click a composition (e.g.
MARKETPLACE_BPELModel).
-
Select the
compile sub-menu item.
- Notice that a compilation job is started, and compilation progress
listed in the
Output View
(Figure 4).
-
Scroll the Output
View to determine the result of compilation.

Figure 4
Compile action (left) and Output View of compiled processes (right)
-
Switch to the LTS Process view.
If this view is not visible, enable it by Window ->
Show View -> Other -> LTSA -> LTS Process.
- Select the
MARKETPLACE_SEQUENCE1 process (from the
left hand of the view pane listing the processes compiled).
- Use the Expand/Reduce Height/Width view
toolbar to expand or reduce the drawing canvas.

Figure Process view as Graphical LTS Draw
-
Select the
FSP Editor window for the
marketplace.bpel
file.
-
This editor lists the FSP representation for
the BPEL4WS process (as illustrated in Figure 5).

Figure 5Editor View for FSP source code of BPEL4WS parallel composition definitions
-
This editor can also
be used to specify any additional FSP properties or processes required.
END OF TUTORIAL
Author: Howard Foster - 14/03/2005