Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal

Related Topics: Weblogic

Weblogic: Article

A Real-World Business Process Model Part 1

Using the WebLogic Platform for order management

When processes are modeled well and don't change, existing IT systems work well. However, real business changes all the time and processes are becoming more complex especially as the Internet is able to easily link internal and external systems.

Business process management (BPM) can help in managing this complex and ever changing process. The concept of manipulating data, which IT systems do efficiently today, can be extended to business processes. Businesses can use BPM systems, using workflow-type techniques, to control existing applications, Web services, and human processes together, or to construct or deconstruct processes or sub-processes.

Using business process modeling, we can model and also measure the effectiveness of existing business processes. This helps us understand how the business currently operates and allows the business to identify the improvements needed. It also gives us the ability to test the suggested improvements before implementing them to see if they will provide the desired results. Figure 1 shows how you can implement BPM in your business. First you analyze and define the process model. These business processes can be built and deployed through a process engine. Then, you can monitor the business process.

In this series we will see how WebLogic Integration provides a BPM solution. We will go through a real world example involving order management to show how Integration can be used to model, execute, and monitor a business process

PD4J and WebLogic Integration
WebLogic Integration provides a robust and integrated BPM solution. Process modeling in WebLogic Workshop is based on Process Definition for Java (PD4J). Different organizations are working towards different specifications in BPM - the Java Community Process (JCP) is working on Process Definition for Java (PD4J), OASIS on Business Process Execution Language for Web Service (WSBPEL or BPEL). PD4J has been proposed in JSR 207 and builds on the Java Language Metadata technology in JSR 175. The latter standard provides an easy-to-use syntax for describing a business process at the source-code level for the J2EE platform. The intention of JSR 207 is to explore and standardize the relationship between process languages like BPEL and the Java language and J2EE platform.

As a major next step to defining this Java process standard, BEA and IBM have closely collaborated to create a new specification called BPELJ, which has also been submitted to the JSR 207 working group. BPELJ is a combination of BPEL and Java. It allows these two languages to be used together to build complete business process applications. By enabling BPEL and Java to work together, BPELJ leverages what each does best. BPELJ is implemented via extensions to the BPEL language; therefore any BPEL process can be executed through BPELJ. By standardizing these extensions, business processes will be truly portable and interoperable across the J2EE platform.

BEA is the lead for JSR 207 and a coauthor of both BPEL and BPELJ. In addition to BPEL capabilities, BEA will also provide full support for BPELJ in the next major release of WebLogic Integration. It will provide automatic and seamless migration experience from processes written in PD4J to BPELJ.

Key Components to Build BPM in WebLogic Integration
WebLogic Integration builds the BPM solution in three stages:

  1. Modeling of the process
  2. Execution or automation of the process, which is basically the build and deploy process
  3. Analysis of the process which includes monitoring of the process
For process modeling, WebLogic Integration uses WebLogic Workshop, which has graphical tools to build, view, and change business process models in both the design and source views in the WebLogic Workshop environment. Features of the modeling tool provide synchronous and asynchronous Web services, branching, nesting, looping, parallelism, grouping, and exception handling.

The business process also integrates with the WebLogic Control Framework, which supports database, file, messaging, service broker, and human interaction. The Control Framework, which WebLogic Workshop provides, is a way to encapsulate business logic and to access enterprise resources such as databases, message queues, and timers, and to expose them as Web services. Using the Control Framework you can combine data and business logic from different resources and use them in a business process.

For XML-to-Java transformation, you'll use XMLBeans. XMLBeans are technology used throughout WebLogic Workshop; it provides very easy translation between XML data and Java types. XMLBeans have many advantages,without losing access to original XML structure, they provide a Java object-based view of XML data. The XML's integrity as a document is not lost with XMLBeans. They handle the entire XML document instance as a whole instead of taking XML apart like other APIs. We will see in Workshop how when an xsd file is imported to a schemas folder, XMLBeans are created and are available to your business process.

For XML2XML, Java2XML, and non-XML2non-XML mapping you'll use the XQuery Transformation Mapper. XQuery Maps provide a way for you to reshape the XML messages that Web services send or receive.

WebLogic Integration takes care of process automation for the process designed in WebLogic Workshop. Process building is accomplished through auto-generation of J2EE code. Source code is created automatically when you design business processes using the graphical tools in WebLogic Workshop, which stores the process definition in accordance with PD4J. It is called a JPD (Process Definition for Java) file. You can also edit Java code in the source view. WebLogic Server is used to build and deploy the business process. WebLogic Workshop has a test browser that helps to test the process. You can execute stateful processes, which are processes that maintain state information and stateless processes, which are processes without state information as well as synchronous and asynchronous processes. A WSDL can be generated for a business process and therefore enable it to be invoked as a Web service.

Process analysis provides ongoing monitoring and collects statistical data in real time. This is very important in BPM. Service-level agreement (SLA) status monitoring and generating reports of historical process information are provided by the BPM tool. You can use the WebLogic Integration console to monitor the process.

A Real World Example
WebLogic Workshop can be used to model a real-world business process. It has a design view that has process nodes and control palettes. Through these you can add Web services, client requests, decision nodes, and Java controls to mimic a real world process. As you add these components, Workshop generates, in a separate tab, the source code and annotations to reflect the process logic using the PD4J specification. After modeling this business process, you can test it by executing it within Workshop.

In this series of articles, we will look at a real business process - a Change Order Request within the Order Management business process for a vendor. We will see how we can build this "real world business process" in WebLogic Workshop using the graphical interface.

The scenario we are looking at here is a PC reseller selling configure-to-order PCs. A consumer who buys through this reseller wants to upgrade the disk drive in the PC he has ordered. This results in a change request made by the reseller on the manufacturer. The reseller places a request to change the product configuration information, which is to upgrade a disk drive for the PC of a previously placed order.

The order change process has many process steps and decision points. The first process step is the receipt of the order change request from the reseller in the form of an XML. This XML uses the RosettaNet Partner Interface Processes (PIPs), for an order change. The RosettaNet PIP is part of the RosettaNet Implementation Framework and is a standardized electronic business transaction between trading partners. Consistency in transaction formats is extremely important to decrease time to implement transactions between trading partners, therefore each PIP comes with a message guideline and XML document-type definition (DTD).

As the Change Order has a new configuration for an upgraded disk drive, we need to check whether this configuration is valid for the PC. The business process uses a Web service to check the validity of the configuration. If this upgraded disk drive cannot be ordered with this PC, the configuration is not valid and the process ends. If the configuration is valid, then the business process goes to the next step.

The next step is to check with the factory floor the status of the original order. This will help to track where the PC is in the assembly process. The status will let you know if it is at a point in the assembly where a disk drive can be added, which means the order is changeable, or it may be at the shipping dock, where the order is not changeable.The status is stored in a database. In the process step a database control needs to be invoked to check the Order Status. If this order cannot be "changed" the process ends. If the order can be "changed" the change is performed in the ERP-based "system" or it can be written out to a file that can be uploaded to an ERP system. Figure 2 shows the change order request process steps. We will use these steps in WebLogic Workshop to create the business process.

Steps to Create a Business Process
First, you need to create an application. We can call this application orderChange. In this application we need to create a new process called orderChange.jpd. To start the process we need to add a ClientRequest received. Next we will add the Web service validate. Then we need to decide whether or not the configuration is valid; therefore, we will add a decision node. To check the order status, add the order status database control. Again, we have to decide if the order status allows us to proceed, therefore, we will add another decision node. The last part of the process is to either write this change to a file control, which can then be uploaded to an SAP order fulfillment system, or written directly to SAP. The last step is to conclude the process.

We will go through the details of each step in the next articles in this series. The second article will cover the creation of the process, the client request and addition of the Web service. The third article will look at the addition of the decision points and database control. The fourth article will cover writing to a file control and the ending of process. We will see how we can test the business process in the test browser and how the process can be monitored in the last article.


  • BPEL and BPELJ: dev2dev.bea.com
  • Keen, Peter. "Business Process Management". www.infoconomy.com
  • More Stories By 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.

    Comments (0)

    Share your thoughts on this story.

    Add your comment
    You must be signed in to add a comment. Sign-in | Register

    In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.

    IoT & Smart Cities Stories
    SYS-CON Events announced today that DatacenterDynamics has been named “Media Sponsor” of SYS-CON's 18th International Cloud Expo, which will take place on June 7–9, 2016, at the Javits Center in New York City, NY. DatacenterDynamics is a brand of DCD Group, a global B2B media and publishing company that develops products to help senior professionals in the world's most ICT dependent organizations make risk-based infrastructure and capacity decisions.
    DXWorldEXPO LLC announced today that All in Mobile, a mobile app development company from Poland, will exhibit at the 22nd International CloudEXPO | DXWorldEXPO. All In Mobile is a mobile app development company from Poland. Since 2014, they maintain passion for developing mobile applications for enterprises and startups worldwide.
    Nicolas Fierro is CEO of MIMIR Blockchain Solutions. He is a programmer, technologist, and operations dev who has worked with Ethereum and blockchain since 2014. His knowledge in blockchain dates to when he performed dev ops services to the Ethereum Foundation as one the privileged few developers to work with the original core team in Switzerland.
    Cloud-enabled transformation has evolved from cost saving measure to business innovation strategy -- one that combines the cloud with cognitive capabilities to drive market disruption. Learn how you can achieve the insight and agility you need to gain a competitive advantage. Industry-acclaimed CTO and cloud expert, Shankar Kalyana presents. Only the most exceptional IBMers are appointed with the rare distinction of IBM Fellow, the highest technical honor in the company. Shankar has also receive...
    DXWorldEXPO LLC announced today that ICOHOLDER named "Media Sponsor" of Miami Blockchain Event by FinTechEXPO. ICOHOLDER gives detailed information and help the community to invest in the trusty projects. Miami Blockchain Event by FinTechEXPO has opened its Call for Papers. The two-day event will present 20 top Blockchain experts. All speaking inquiries which covers the following information can be submitted by email to [email protected] Miami Blockchain Event by FinTechEXPOalso offers sp...
    Headquartered in Plainsboro, NJ, Synametrics Technologies has provided IT professionals and computer systems developers since 1997. Based on the success of their initial product offerings (WinSQL and DeltaCopy), the company continues to create and hone innovative products that help its customers get more from their computer applications, databases and infrastructure. To date, over one million users around the world have chosen Synametrics solutions to help power their accelerated business or per...
    DXWordEXPO New York 2018, colocated with CloudEXPO New York 2018 will be held November 11-13, 2018, in New York City and will bring together Cloud Computing, FinTech and Blockchain, Digital Transformation, Big Data, Internet of Things, DevOps, AI, Machine Learning and WebRTC to one location.
    @DevOpsSummit at Cloud Expo, taking place November 12-13 in New York City, NY, is co-located with 22nd international CloudEXPO | first international DXWorldEXPO and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time t...
    When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things'). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing. IoT is not about the devices, its about the data consumed and generated. The devices are tools, mechanisms, conduits. This paper discusses the considerations when dealing with the...
    Charles Araujo is an industry analyst, internationally recognized authority on the Digital Enterprise and author of The Quantum Age of IT: Why Everything You Know About IT is About to Change. As Principal Analyst with Intellyx, he writes, speaks and advises organizations on how to navigate through this time of disruption. He is also the founder of The Institute for Digital Transformation and a sought after keynote speaker. He has been a regular contributor to both InformationWeek and CIO Insight...