Skip to main content

Tips and techniques for optimizing WebSphere Business Process Choreographer Explorer

Anil Ambati (aambatti@us.ibm.com), Certified Senior IT Specialist, R2C, ISSW, IBM
Photo of Anil Ambati
Anil Ambati is an IBM Certified Senior IT Specialist at IBM RTP Software Lab, Durham, North Carolina. He is currently a developer on the Request To Contract team. Anil received a Masters degree in Computer Science from the University of Texas at Arlington. You can reach Anil at: aambati@us.ibm.com
Rojan Jose (rojan@us.ibm.com), Senior IT Specialist, ISSW, IBM
Photo of Rojan Jose
Rojan Jose is a Senior IT Specialist with IBM Software Services for WebSphere. Rojan is currently focused on engagements involving Business Integration and Business Process Management using IBM SOA product stack for WebSphere. You can reach Rojan at: rojan@us.ibm.com

Summary: 

Business Process Choreographer Explorer is a very useful tool that is packaged with the IBM WebSphere Process Server V6.0.2. You can use Business Process Choreographer Explorer to manage business process and human task instances. In a production scenario, when the number of business process or human task instances is high, the tool might appear slow. This article describes a few tips and techniques to overcome the problems related to querying and filtering data and also shows how to minimize performance related impacts.

Date:  22 Oct 2008
Level:  Intermediate

Activity:  1117 views
Comments:  

Introduction

IBM® WebSphere® Process Server’s Business Process Choreographer (hereafter known as BPC Explorer) is a Web-based user interface used to manage and view business process instances and human tasks. The BPC Explorer provides default views for both process instances and human tasks. In certain instances, some of the default views can potentially return a large number of process instances or human tasks and create unwanted load on the server and cause performance degradation.

With BPC Explorer, you can create custom views. In this article, you will learn how to create custom views to return specific process instances or human tasks, there by reducing load on the server.


Important: The techniques described in this paper were tested on WebSphere Process Server V6.0.2.

This article is primarily intended for WebSphere Process Server administrators and architects.


Defining a custom process instance view

A custom view is a user-defined view. Think of it as a custom query that you want to build to return specific process instances that you are interested in. In this section, we will show how to define a custom view.

  1. Login to the BPC Explorer.
  2. Click Define Views link at the top of the page and then click Search And Define Views For Process Instances link in the resulting page. You should see the following page:


    Figure 1. Define a custom view
    Sample figure containing an image


  3. As you can see in the above picture, you can specify name for the custom view and other properties (in different tabs). As you might have already observed, this is similar to specifying WHERE clause of a SQL query. We are not going to describe each and every option available as these are self explanatory. Please note that Started After Date and Started Before Date fields do not allow you to specify time. So, the limitation is that custom views cannot be used to retrieve process instances that were created in a time frame less than a day (24 hours).
  4. Check the Administrative View box to view the process instances created by other users. Otherwise, the custom view will only return process instances created by you.

Query properties

Business Process Execution Language (BPEL) allows you to expose various attributes of a variable. The exposed attributes called query properties can be used to further narrow down the process instances returned by a custom view. The query properties allow you to identify process instances based on data present in the business variable. Following is a snippet of a BPEL that shows how attributes of the EmpVariable business object are exposed as query properties.

Listing 1: Sample query properties defined in the BPEL

		  <?xml version="1.0" encoding="UTF-8"?>
<bpws:process xmlns:bpws=http://schemas.xmlsoap.org/ws/2004/03/business-process/ xmlns:ns=
     http://com/foo/employee/process
…
…
<bpws:variables>
    <bpws:variable name="EmpVariable" type="ns:EMPBO" wpc:id="1001">
      <wpc:queryProperties>
        <wpc:queryProperty name="empNumber" type="xsd:string">
          <wpc:query><![CDATA[employeeNum]]></wpc:query>
        </wpc:queryProperty>
        <wpc:queryProperty name="empSSN" type="xsd:string">
          <wpc:query><![CDATA[employeeSSN]]></wpc:query>
        </wpc:queryProperty>
        <wpc:queryProperty name="empZipCode" type="xsd:string">
          <wpc:query><![CDATA[addressBO/employeeZip]]></wpc:query>
</bpws:variable>
…
…
</bpws:process>

To use query properties in a custom view:

  1. Click Query Properties in the Search And Define Views For Process Instances page.
  2. Specify “Property Name, “Variable Name”, “Namespace”, “Property Value” and click Add. For example, in Figure 2 we used empNumber property that is defined in the Listing 1. The following values are used:
    1. Property Name: empNumber
    2. Variable Name: EmpVariable
    3. Namespace: http://com/foo/employee/process
    4. Property Value: ‘555555’

Please note that “Property Name”, “Variable Name” and “Namespace” values match the values specified in the BPEL (highlighted in Listing 1). Also, note that we used single quotes around the “Property Value” value. Using single quotes is not required, but we have observed that the custom view did not return expected process instances when we did not specify quotes for some values.


Figure 2: Specifying a query property in a custom query
Sample figure containing an image

Customizing the number of results displayed in a view

You can control the number of results returned in a view by the BPC Explorer by editing faces-config.xml of the BPC Explorer application. The faces-config.xml is located in the <WPS profile directory>/installedApps/<Node>/BPCExplorer_<nodename>_<servername>.ear/bpcexplorer.war/WEB-INF/ directory. Listing 2 shows the snippet of the BPC Explorer faces-config.xml. To specify a threshold or a limit on number of results for process instance and human task views:

  1. Remove the comment markers (above the first managed property and below the last managed property.
  2. Specify the appropriate value for ProcessInstanceListsThreshold and TaskInstanceListsThreshold.
  3. Save the changes and restart the BPC Explorer.

Listing 2: BPC Explorer faces-config.xml

<faces-config>
…
…
    <managed-bean>
        <managed-bean-name>ApplicationConfiguration</managed-bean-name>
        <managed-bean-class>com.ibm.bpc.explorer.ApplicationConfiguration
             </managed-bean-class>
        <managed-bean-scope>application</managed-bean-scope>
        <!-- Enable the following managed properties to set thresholds as required
        <managed-property>
                            <property-name>ProcessTemplateListsThreshold</property-name>
                            <value>2</value>
                    </managed-property> 
        <managed-property>
                            <property-name>ProcessInstanceListsThreshold</property-name>
                            <value>2</value>
                    </managed-property> 
        <managed-property>
                           <property-name>TaskTemplateListsThreshold</property-name>
                           <value>2</value>
                    </managed-property> 
        <managed-property>
                          <property-name>TaskInstanceListsThreshold</property-name>
                          <value>2</value>
                    </managed-property> 
                    -->
    </managed-bean>
...
…
</faces-config>


Conclusion

The simple techniques described in this paper improve the effectiveness of using the BPC Explorer tool and can serve as a simple and useful tool to quickly trouble shoot Process Server applications in a production environment.


Resources

Learn

Get products and technologies

  • Download IBM product evaluation versions and get your hands on application development tools and middleware products from DB2®, Lotus®, Rational®, Tivoli®, and WebSphere®.

Discuss

About the authors

Photo of Anil Ambati

Anil Ambati is an IBM Certified Senior IT Specialist at IBM RTP Software Lab, Durham, North Carolina. He is currently a developer on the Request To Contract team. Anil received a Masters degree in Computer Science from the University of Texas at Arlington. You can reach Anil at: aambati@us.ibm.com

Photo of Rojan Jose

Rojan Jose is a Senior IT Specialist with IBM Software Services for WebSphere. Rojan is currently focused on engagements involving Business Integration and Business Process Management using IBM SOA product stack for WebSphere. You can reach Rojan at: rojan@us.ibm.com

Comments



Trademarks  |  My developerWorks terms and conditions

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=345585
ArticleTitle=Tips and techniques for optimizing WebSphere Business Process Choreographer Explorer
publish-date=10222008
author1-email=aambatti@us.ibm.com
author1-email-cc=cserna@us.ibm.com
author2-email=rojan@us.ibm.com
author2-email-cc=cserna@us.ibm.com

My developerWorks community

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Special offers