Welcome!

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.

Summary
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.

References

  • 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.


    @ThingsExpo Stories
    To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. In his session at @BigDataExpo, Jack Norris, Senior Vice President, Data and Applications at MapR Technologies, reviewed best practices to ...
    With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, examined the regulations and provided insight on how it affects technology, challenges the established rules and will usher in new levels of diligence arou...
    Recently, WebRTC has a lot of eyes from market. The use cases of WebRTC are expanding - video chat, online education, online health care etc. Not only for human-to-human communication, but also IoT use cases such as machine to human use cases can be seen recently. One of the typical use-case is remote camera monitoring. With WebRTC, people can have interoperability and flexibility for deploying monitoring service. However, the benefit of WebRTC for IoT is not only its convenience and interopera...
    The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding busin...
    SYS-CON Events announced today that Synametrics Technologies will exhibit at SYS-CON's 22nd International Cloud Expo®, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Synametrics Technologies is a privately held company based in Plainsboro, New Jersey that has been providing solutions for the developer community since 1997. Based on the success of its initial product offerings such as WinSQL, Xeams, SynaMan and Syncrify, Synametrics continues to create and hone inn...
    Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
    No hype cycles or predictions of a gazillion things here. IoT is here. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, an Associate Partner of Analytics, IoT & Cybersecurity at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He also discussed the evaluation of communication standards and IoT messaging protocols, data...
    Product connectivity goes hand and hand these days with increased use of personal data. New IoT devices are becoming more personalized than ever before. In his session at 22nd Cloud Expo | DXWorld Expo, Nicolas Fierro, CEO of MIMIR Blockchain Solutions, will discuss how in order to protect your data and privacy, IoT applications need to embrace Blockchain technology for a new level of product security never before seen - or needed.
    In his session at 21st Cloud Expo, Raju Shreewastava, founder of Big Data Trunk, provided a fun and simple way to introduce Machine Leaning to anyone and everyone. He solved a machine learning problem and demonstrated an easy way to be able to do machine learning without even coding. Raju Shreewastava is the founder of Big Data Trunk (www.BigDataTrunk.com), a Big Data Training and consulting firm with offices in the United States. He previously led the data warehouse/business intelligence and B...
    Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive ov...
    A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, whic...
    "Evatronix provides design services to companies that need to integrate the IoT technology in their products but they don't necessarily have the expertise, knowledge and design team to do so," explained Adam Morawiec, VP of Business Development at Evatronix, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
    Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, discussed how they built...
    Digital Transformation (DX) is not a "one-size-fits all" strategy. Each organization needs to develop its own unique, long-term DX plan. It must do so by realizing that we now live in a data-driven age, and that technologies such as Cloud Computing, Big Data, the IoT, Cognitive Computing, and Blockchain are only tools. In her general session at 21st Cloud Expo, Rebecca Wanta explained how the strategy must focus on DX and include a commitment from top management to create great IT jobs, monitor ...
    "Digital transformation - what we knew about it in the past has been redefined. Automation is going to play such a huge role in that because the culture, the technology, and the business operations are being shifted now," stated Brian Boeggeman, VP of Alliances & Partnerships at Ayehu, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
    In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
    SYS-CON Events announced today that Evatronix will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Evatronix SA offers comprehensive solutions in the design and implementation of electronic systems, in CAD / CAM deployment, and also is a designer and manufacturer of advanced 3D scanners for professional applications.
    Nordstrom is transforming the way that they do business and the cloud is the key to enabling speed and hyper personalized customer experiences. In his session at 21st Cloud Expo, Ken Schow, VP of Engineering at Nordstrom, discussed some of the key learnings and common pitfalls of large enterprises moving to the cloud. This includes strategies around choosing a cloud provider(s), architecture, and lessons learned. In addition, he covered some of the best practices for structured team migration an...
    22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
    22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...