« XSLT 2.0 | Main | Receiving Messages sent through HTTP POST »

Setting the title of the BPEL Instance

The default title of a BPEL Process Instance that you can see in the BPEL Console is "Instance <instanceId> of <processName>.

You can configure this to include key message data in the Title.

For this, you can use the bpelx:exec within your BPEL Process.

        <bpelx:exec name="setTitle" language="java" version="1.4">
          <![CDATA[
String orderNum = ((String)getVariableData("orderNumber"));  
String woId = ((String)getVariableData("workOrderId"));  
System.err.println("Title is " + (orderNum));  
setTitle("Order [" + orderNum + "][" + woId + "]");]]>
        </bpelx:exec>


When an instance of this BPEL Process is created, the BPEL Console shows the title of the instance in the Console as
Order[1-7654389][1-ABCDEF]

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on May 22, 2007 3:59 PM.

The previous post in this blog was XSLT 2.0.

The next post in this blog is Receiving Messages sent through HTTP POST.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle