YOUR FEEDBACK
Adobe Flex 2 - Answering Tough Questions About Enterprise Development
A Correct Person wrote: Denis Roebrt commented on the 21 Aug 2006 "Tough Que...
SOA World Conference
Virtualization Conference
$50 Savings Expire May 23, 2008... – Register Today!

2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts

SYS-CON.TV
TOP THREE LINKS YOU MUST CLICK ON


Using the WebLogic Platform to Create a Real-World Business Process Model for Order Management Part 5
Process monitoring and management

Digg This!

Page 1 of 2   next page »

In the first article I gave an overview of BPM and covered the specifications in this area. I described the order change example and the steps needed to create the business process in WLI. In the second article we saw how to create a process application, specifically how to create the application orderChange. In this application I created a new process called orderChange.jpd. To start the process I added a ClientRequest received. Next we added the Web service validate config.

In the third article I added a decision point to handle the result from validate config Web service. The decision point helps in handling both the positive and negative outcome of the result from the process. Then I added to the process a database control to check the order status of the order to be changed, and last I added another decision node to handle the result from the database Control. In the last article we saw how the change order is written out to a file, and we also saw how this change order was added to an ERP-based system specifically for SAP. We also examined the code for the process.

In this article we will see how the JPD file created can be exported to a BPEL file. We will also see how the process is executed and you can see the end result on WebLogic's Test Browser. We will also see how the process in monitored in WLI and also how HP's OpenView can be used to monitor the process.

Exporting to BPEL
In the earlier article we saw how to create a business process in WLI. It creates a JPD file based on PD4J specification. WLI gives you the facility to export this file to a WS-BPEL file through the BPEL exporter.

Below is the aforementioned JPD file now exported to BPEL:

<process name="orderchange"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:jpd="http://www.bea.com/wli/jpd"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:wli="http://www.bea.com/workshop/bpel/wli"
xmlns:ctrl="http://www.bea.com/workshop/bpel/ctrl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.openuri.org/"
expressionLanguage="http://www.w3.org/TR/2003/WD-xquery-20031112/" >

This shows the partner information:

<partnerLinks>
<partnerLink name="client" partnerLinkType="generated" myRole="provider"
partnerRole="client" />
<partnerLink name="validateConfignew" partnerLinkType="unresolved-type" />
<partnerLink name="orderstatus1" partnerLinkType="unresolved-type" />
<partnerLink name="ChangeorderFile" partnerLinkType="unresolved-type" />
</partnerLinks>

This is the start of the process:

<variables>
<variable name="orderChangexsd" type="unresolved-type" />
<variable name="fileproperties"
type="com.bea.wli.control.dynamicProperties.FileControlPropertiesDocument" />
</variables>

OrderChangeRequest as ClientRequest:

<sequence>
<receive jpd:name="orderChangeRequest" partnerLink="client" portType="clientPT"
operation="orderChangeRequest" variable="orderChangexsd" createInstance="yes" >
</receive>

JPD code is included as comments:

<jpd:javacode code="{
//#START: CODE GENERATED - PROTECTED SECTION - you can safely add code above this
comment in this method. #//
// input transform
// parameter assignment
this.orderChangexsd = orderChangexsd;
//#END : CODE GENERATED - PROTECTED SECTION - you can safely add code below this
comment in this method. #//
}
">
</jpd:javacode>

The process calling the validateConfig Web service:

<invoke jpd:name="validateConfig" partnerLink="validateConfignew"
portType="unresolved-type" operation="validateConfig" >
</invoke>

The first decision point to see if the configuration is valid:

<switch jpd:name="Is configuration Valid?">
<case jpd:name="Yes" condition="data($outValidateConfig/ns:Status) =
"true"">


Page 1 of 2   next page »

About Anjali Anagol-Subbarao
Anjali Anagol-Subbarao works in HP's IT organization as an IT architect. She has 12 years of IT experience, the last five in Web services. Her book on J2EE Web services on BEA WebLogic was published in October 2004.

BEA WEBLOGIC LATEST STORIES
3rd International Virtualization Conference & Expo: Themes & Topics
From Application Virtualization to Xen, a round-up of the virtualization themes & topics being discussed in NYC June 23-24, 2008 by the world-class speaker faculty at the 3rd International Virtualization Conference & Expo being held by SYS-CON Events in The Roosevelt Hotel, in midtown
Microsoft To Keynote 4th International Virtualization Conference & Expo
Mike Neil is general manager for virtualization strategy in the Windows Server Division at Microsoft. Mike is focused on the delivery of the Windows virtualization technology, including Windows Server 2008 Hyper-V, Microsoft Hyper-V Server and Virtual PC 2007. Mike also directs the tec
Virtualization Meets DaaS - Desktop-as-a-Service
After a $1.5 million angel round, Desktone, which was started in 2006 by Eric Pulier, who also started SOA Software, US Interactive and IVT, picked up $17 million in first-round funding about a year ago from Highland Capital Partners, SoftBank Capital, Citrix Systems and the China-base
Engelbart's Usability Dilemma: Efficiency vs Ease-of-Use
The mouse was the original idea of Doug Engelbart who was the head of the Augmentation Research Center (ARC) at Stanford Research Institute. Engelbart's philosophy is best embodied, in my opinion, in the design of another device that he invented, the five-finger keyboard - with keys li
Web 2.0 Is Fundamentally About Empowering People
'Unlocking content to be remixed into new business value' is the driver of Web 2.0 in the enterprise, says Rod Smith, IBM VP of Emerging Internet Technologies, in this Exclusive Q&A with Jeremy Geelan on the occasion of IBM's release of a new technology created by IBM researchers, code
Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
Here is a question that I have been pondering on and off for quite a while: Why do 'cool kids' choose Ruby or PHP to build websites instead of Java? I have to admit that I do not have an answer. Why do I even care? Because I am a Java developer. Like many Java developers, I get along w
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS

MOST READ THIS WEEK
ADS BY GOOGLE
BREAKING NEWS FROM THE WIRES
AmberPoint Extends SOA Governance to Apache ServiceMix, BEA AquaLogic Service Bus 3.0, BEA WebLogic Integration, Cisco ACE XML Gateway, JBoss Enterprise Application Platform and Oracle Fusion
AmberPoint announced today that it has extended the reach of its runtime SOA governance