Open ESB Tip : BPEL Monitoring - Back In Black

Read the original article at The Crooked Stick

MonitorWith Look and Feel so important with any application I decided to take a look at the JQuery UI functionality and see if I could leverage this to enhance the overall presentation of the BPEL Monitor. To this end I copied the core Servlet functionality into a new project and decided to rebuild the monitor.jsp page to use JQuery UI and its associated Theme options.

I choose the darkness theme for the new layout simply because it matched the rest of my desktop bu the the pages can be simply modified to use any of the other JQuery Themes.

<script type="text/javascript"> $(document).ready(function(){ $("#traildiv").load("../resource/bpel-monitor/MonitorTrail.html"); $("#resourcediv").load("../resource/bpel-monitor/MonitorResources.html"); $("#traildiv").load("resource/bpel-monitor/MonitorTrail.html"); $("#resourcediv").load("resource/bpel-monitor/MonitorResources.html"); }); </script>


As you will be able to see from the screen images below I have removed the Menu from the left side of the screen and simple enhenced the Dashboard tab to provide the additional hyperlink functionality. The key areas within the Monitor are still provided by the 4 top level Tabs:

  1. Dashboard : Provides the summary of executed processes.
  2. Process Monitor : All the information about the selected process.
  3. Configuration : Configuration options.
  4. Getting Started : Link to the Getting Started Blog entry.

I will not goi into detail about the working of the monitor because this has been discussed elsewhere within the trail I simply intend to show an alternative layout.

Dashboard


The Dashboard now includes the hyperlinks that allow the user to select the BPEL Process of interest. This has replaced the left menu option and provides access to all BPEL Processes that have been execute at least once.

Monitor 1

 Process Monitor - Summary


Displays the summary information for the selected BPEL process. If the Show Management Icons has been selected the user will see three additional Management buttons allowing them the Pause / Resume / Terminate All Instances of this process.

Monitor 2

 Process Monitor - Instances


Lists the processing status and times for all, or the restricted based on the search criteria, instances for the selected BPEL process.

Monitor 3

 Process Monitor - Process


Displays an SVG Representation of the Business process. Depnding on the options selected within the Configuration tab the actual SVG will vary. The image below has Collapse Composite and Show Business Icon set and hence it display a business view of the process. If the user have selected a specific instance within the Instances Accordion then the processing status of the activities will be display, as coloured backgrounds, and this will be update on the specified Refresh interval. Hence is a running process has been selected then the user will see the status updated in near real time.

Monitor 4

 Process Monitor - Statistics


Displays either the overall processing stats for the entries displayed in the Instances Accordion or is an instance has been selected then the processing stats for the activities within that instance.

Monitor 5

 Process Monitor - Activities


Displays the status of the activities for the select process instance. If no instance is selected this tab will be empty.

Monitor 6

 Process Monitor - Variables


Simply displays the values of all the monitored variables for this process. This table will only appear if a specific instance is selected.

Monitor 7

 Configuration


Standard Configuration Tab:

  • Refresh Period : Frequency (interval in Second) with which the data is refreshed. Only the data for the displayed tab will be refreshed.
  • Process Layout : Orientation of the BPEL Process.
  • Icon Set :  Designated Icons to use for the process this can be overridden for collapsed composites using the Show Business Icons option.
  • Icon Size : Specify the size of the Icons displayed and control some of the layout. Will be overridden by the slider.
  • Layout : Controls how the SVG will be generated.
    • Show Sequence / Scope Names : Simply adds the names of the Sequence / Scope to the generated SVG.
    • Hide Assigns :  Removes Assigns from the SVG.
    • Collapse Composites :  Collapses the Sequence & Scopes within the SVG but also provides toggle options to expand a specific collapsed composite.
    • Show Management Buttons :  Adds Pause / Resume / Terminate buttons to each running BPEL Instance in the Instance Accordion and also Pause / Resume / Terminate All buttons to the Summary Accordion.
    • Show Business Icons : The requires collapse composites to be set and will display alternative, business, icons for the collapsed composite as defined in the MONITORBPELACTIVITYICONS table within the monitoring database (bpelseDB).
    • Bright Colours :Uses an alternative, projector friendly, set of colours for highlighting Activities.

Monitor 8

BPEL Monitor in Action




Comments:

Hi, very cool util, have found a weird issue though. I've noticed that after installing and using it I'm unable to re-deploy my solution. It always comes back with the "BPCOR-6025: Business processes with duplicate id(QName) are not allowed in an engine" error message. We are using OpenESB GlassFish v2.2. We have tried undeploying the solution as per http://openesb-users.794670.n2.nabble.com/A-problem-of-duplicate-id-QName-td5049156.html, but its not deployed anywhere anymore. We've been able to reproduce it, by uninstalling GlassFish, and then reinstalling it. Multiple deployments work fine until I install and try to use the BPEL monitor, after which it gives the error message.

Posted by Andries Martins on November 03, 2010 at 02:42 AM GMT #

Hi,

at first I must say that your work is really awesome and helps a lot
for my work with BPEL processes and their monitoring.

If I may ask you a question:
I didn't find the sources on your website, but I wonder if it would be possible to create export functions for the "Statistics" and the "Activities" view so the monitored data is stored in \*csv-file? That would be really really helpful!

Kind regards,
Benedikt

Posted by Benedikt Liegener on November 18, 2010 at 02:20 AM GMT #

Andries,

I have not seen this issue before and given that the code only uses the api / sql queries to access the information am a bit perplexed as to what the problem is. I'll take a look at this, when I can, and post and respone as comments.

Posted by Andrew on November 18, 2010 at 02:30 AM GMT #

Benedikt,

The source was not posted because some of the code I originally wrote was built into the official Sun GlassFish Monitor. I like your idea and will take a look when I can although at the moment my new roll means I'm focused on Oracle Exalogic and Fusion Middleware.

Posted by Andrew on November 18, 2010 at 02:33 AM GMT #

Andries,

One possible source of this issue may be that the war file appears to have the jbi-admin-common.jar & jbi.jar package within the WEB-INF/lib directory. Try removing these and redeploying the war. As mentioned I will look into it when I can.

Posted by Andrew on November 18, 2010 at 04:51 AM GMT #

Post a Comment:
Comments are closed for this entry.
About

As a member of the Oracle A-Team we specialise in enabling and supporting the Oracle Fusion Middleware communities.

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today