Following on from my previous blog entry "Generating
SVG From BPEL 2 Files" I have updated the core code to include
those features that were originally missing. The new code samples can
be found in the original location but I decided to add this blog to
quickly sumarise the key features I added.
Related Articles
Resources
As mentioned the first version of the example code was missing a number of features based around the layout and general look and feel. Therefore this update provides those missing pieces of functionality. In addition to those discussed below I have generally cleaned up the underlying code.
By default the BPEL 2 editor displays the BPEL process in a Vertical grid like format and therefore by default I generated the SVG in a Vertical format. Although I personally like the new format a number of my colleagues who are used to the Java CAPS eInsight monitoring layout requested a horizontal format. The two example below show BPEL processes in both formats.
Simple BPEL



BPEL with Flow



As can be seen from the above example the Activities are simply switched from the vertical to the horizontal and the "Left to Right" layout is switched to "Top to Bottom".
To facilitate additional flexibility when using the NetBeans Plug-in I have extended the configurable functionality available within the plug-in and underlying code to provide the followig.

Related Articles
- Generating SVG From BPEL 2 Files
- BPEL 2 SVG Update
- BPEL 2 SVG Documentation
- Simple Web Based BPEL 2 SVG Monitor Implementation
Resources
- BPEL2SVGJavaLibrary
- Core conversion Java
- BPEL2SVGIcons
- Simple Web Application to serve icons
- BPEL2SVGBpelModule
- Test Bpel Module
- SVGGeneratorModule
- NetBeans Module to integrate Conversion
Library
- NetBeans Module
New Functionality
As mentioned the first version of the example code was missing a number of features based around the layout and general look and feel. Therefore this update provides those missing pieces of functionality. In addition to those discussed below I have generally cleaned up the underlying code.
Horizontal Layout
By default the BPEL 2 editor displays the BPEL process in a Vertical grid like format and therefore by default I generated the SVG in a Vertical format. Although I personally like the new format a number of my colleagues who are used to the Java CAPS eInsight monitoring layout requested a horizontal format. The two example below show BPEL processes in both formats.
Simple BPEL



BPEL with Flow



As can be seen from the above example the Activities are simply switched from the vertical to the horizontal and the "Left to Right" layout is switched to "Top to Bottom".
New NetBeans Plug-in Options
To facilitate additional flexibility when using the NetBeans Plug-in I have extended the configurable functionality available within the plug-in and underlying code to provide the followig.
- Start Icon Dimensions.
- End Icon Dimensions.
- X Spacing
- Y Spacing
- Icon Source
- Opacity Options (this allows the various sub component opacities to be modified and hence allow Adam to change them)
- Icon - Just does the icon opacity.
- Simple Activity - works with the simple activity wrapping the Icon and text
- Complex Activity - Work with the complex Activities wrapping it and all sub activities.








