Welcome!

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

Related Topics: Weblogic

Weblogic: Article

Rating WebLogic Integration 8.1 on Process Patterns

WLI and BPEL don't always fly in formation

Every aircraft can take off, fly straight, and land, but few are capable of the dazzling rolls and loops displayed at air shows. When judged on aerobatics, some airplanes are superior to others.

Every BPM process language, analogously, can implement basic sequential control flow, but most languages struggle to support the most advanced splits, joins, loops, and synchronizations. These process maneuvers are known as patterns; like an aerial maneuver through thin air, a process pattern is a kind of movement through a business process, modeled as a particular arrangement of activities.

The Web site www.workflowpatterns.com, created by computer scientists specializing in BPM, is the foremost source of material on process patterns. The two most distinctive features of this site are a catalog of 20 patterns and ratings of numerous standard and vendor-specific process languages on their support for the catalog. Business Process Execution Language (BPEL), the most popular process language, gets a very high score, supporting 14 of the 20 patterns according to the site's analysts. (If you look at the other scorecards, you will see that 70 percent is a comparatively good grade!)

BPEL's glowing scorecard bodes well for WebLogic Integration (WLI), which, starting with version 8.5, will adopt BPEL as its process language. However, what about the large installed base of processes deployed on WLI 8.1, whose process language, Process Definition for Java (PD4J), is not rated on the site? This article compares the pattern capabilities of BPEL and WLI 8.1. Four patterns are considered in detail:

  • Cancel Case, supported by both
  • Milestone, supported by neither
  • Discriminator, supported only by WLI 8.1
  • Interleaved Parallel Routing, supported only by BPEL
This article also presents a complete scorecard for WLI 8.1.

Cancel Case: Supported by Both
The intent of the Cancel Case pattern is to stop a running process, no matter where it is in its execution, on receipt of a cancellation event (e.g., rescind the processing of an insurance claim while it is under investigation). Most BPM vendor implementations offer a system-management function that allows administrators to abort errant processes, but this pattern requires that the cancellation logic, which may well have crucial business significance, be embedded into the process model itself.

For a process language to support Cancel Case, it must have the ability to listen for events in a path that is separate from the mainline path. WLI 8.1 supports this by allowing a message path to be associated with a process or activity. The process shown in Figure 1, for example, is always prepared to respond to a Cancel Event, regardless of how far (Step 1, Step 2, or Step 3) the main logic has progressed. When it receives the cancellation event, the process cleans up (Cleanup) and exits (Finish).

BPEL, which permits an event handler to be associated with a process or a child activity, has a similar implementation.

In Listing 1, the process registers an event handler (lines 2-6) that on receipt of cancelEvent stops the process by terminating it. The handler can interrupt with main logic (lines 7-9) at any time.

(Note: In this article, BPEL samples are shown as XML-based source code, whereas WLI 8.1 examples are shown in the graphical representation adopted by WebLogic Workshop. BPEL does not have a standard graphical representation. WLI 8.1's PD4J does have an XML encoding, but most readers are more familiar and comfortable with Workshop's graphical view.)

Milestone: Supported by Neither
In the Milestone pattern an activity can be performed only when a certain milestone is reached and cannot be performed after the milestone expires. Put differently, an activity can run any number of times between the occurrences of enabling and disabling events. For example, in an auction, a bidder can place a bid any number of times between the start and end of bidding. Few process languages support this distinctive pattern directly. In WLI 8.1, elaborate design is required, demonstrated by the bidding process shown in Figure 2. The process begins with the enabling event Open Bidding, after which it sets a Boolean flag to true (in the Perform node Set Bidding Open) to indicate that bidding is enabled. The heart of the process is a complicated while loop whose condition checks the Boolean flag to determine whether to continue; the loop runs for as long as the flag is set to true. The while loop contains an Event Choice with two event paths: one representing a bid (Bid), the other representing the disabling event Close Bidding. When Close Bidding occurs, the process calls a Perform node (Set Bidding Closed) to clear the flag, which will break the loop before its next iteration.

The logic successfully satisfies the requirement that the Bid event can occur any number of times until the Close Bidding event occurs. However the implementation is far too complicated to get a passing grade on the scorecard; the language lacks features that would make the implementation easy.

BPEL's implementation of this example, described in the paper "Pattern Based Analysis of BPEL4WS" (Reference #5), is nearly identical, using a Boolean flag, a while loop, and a "pick" (BPEL's equivalent of an Event Choice) to model the milestone logic.

Discriminator: Supported by WLI 8.1
In the Discriminator pattern, when multiple parallel branches converge at a given join point, exactly one of the branches is allowed to continue on in the process, based on a condition evaluated at run time; the remaining branches are blocked. Discriminator is a special case of the N-of-M Join pattern, where M parallel branches meet at a point of convergence and only the first N are let through; in Discriminator, N=1.

The need for this pattern arises when only a subset of assigned work in required. For example:

  • In order to obtain a security clearance, an applicant must demonstrate two of the following three criteria: good credit, no criminal record, and natural citizenship (2-of-3)
  • A complicated Web search is submitted to two search engines; as soon as one engine completes, its results are collected and the other search is ignored (1-of-2, or Discriminator).
Interestingly, WLI 8.1 supports Discriminator out of the box, but has excessive difficulty with the more general N-of-M. The search engine example of Discriminator is shown in Figure 3. In separate branches in a parallel structure, a search is submitted to two engines (Search Engine 1 and Search Engine 2). The parallel structure is set with an OR join condition (shown as parallel bars in the circle at the bottom of the parallel structure), so that as soon as one engine completes, the parallel structure itself completes, and control is passed to the next activity, Present Search Results.

More Stories By Michael Havey

Michael Havey is a Chordiant consultant with 10 years of industry experience, mostly with application integration. Michael's book Essential Business Process Modeling was published by O'Reilly in August 2005.

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
Rodrigo Coutinho is part of OutSystems' founders' team and currently the Head of Product Design. He provides a cross-functional role where he supports Product Management in defining the positioning and direction of the Agile Platform, while at the same time promoting model-based development and new techniques to deliver applications in the cloud.
Business professionals no longer wonder if they'll migrate to the cloud; it's now a matter of when. The cloud environment has proved to be a major force in transitioning to an agile business model that enables quick decisions and fast implementation that solidify customer relationships. And when the cloud is combined with the power of cognitive computing, it drives innovation and transformation that achieves astounding competitive advantage.
In his session at Cloud Expo, Alan Winters, U.S. Head of Business Development at MobiDev, presented a success story of an entrepreneur who has both suffered through and benefited from offshore development across multiple businesses: The smart choice, or how to select the right offshore development partner Warning signs, or how to minimize chances of making the wrong choice Collaboration, or how to establish the most effective work processes Budget control, or how to maximize project result...
IoT is rapidly becoming mainstream as more and more investments are made into the platforms and technology. As this movement continues to expand and gain momentum it creates a massive wall of noise that can be difficult to sift through. Unfortunately, this inevitably makes IoT less approachable for people to get started with and can hamper efforts to integrate this key technology into your own portfolio. There are so many connected products already in place today with many hundreds more on the h...
Personalization has long been the holy grail of marketing. Simply stated, communicate the most relevant offer to the right person and you will increase sales. To achieve this, you must understand the individual. Consequently, digital marketers developed many ways to gather and leverage customer information to deliver targeted experiences. In his session at @ThingsExpo, Lou Casal, Founder and Principal Consultant at Practicala, discussed how the Internet of Things (IoT) has accelerated our abilit...
In his keynote at 19th Cloud Expo, Sheng Liang, co-founder and CEO of Rancher Labs, discussed the technological advances and new business opportunities created by the rapid adoption of containers. With the success of Amazon Web Services (AWS) and various open source technologies used to build private clouds, cloud computing has become an essential component of IT strategy. However, users continue to face challenges in implementing clouds, as older technologies evolve and newer ones like Docker c...
Data is the fuel that drives the machine learning algorithmic engines and ultimately provides the business value. In his session at Cloud Expo, Ed Featherston, a director and senior enterprise architect at Collaborative Consulting, discussed the key considerations around quality, volume, timeliness, and pedigree that must be dealt with in order to properly fuel that engine.
No hype cycles or predictions of zillions of things here. IoT is big. 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, Associate Partner at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He discussed the evaluation of communication standards and IoT messaging protocols, data analytics considerations, edge-to-cloud tec...
In his keynote at 18th Cloud Expo, Andrew Keys, Co-Founder of ConsenSys Enterprise, provided an overview of the evolution of the Internet and the Database and the future of their combination – the Blockchain. Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settl...
In his session at @ThingsExpo, Dr. Robert Cohen, an economist and senior fellow at the Economic Strategy Institute, presented the findings of a series of six detailed case studies of how large corporations are implementing IoT. The session explored how IoT has improved their economic performance, had major impacts on business models and resulted in impressive ROIs. The companies covered span manufacturing and services firms. He also explored servicification, how manufacturing firms shift from se...
IoT is at the core or many Digital Transformation initiatives with the goal of re-inventing a company's business model. We all agree that collecting relevant IoT data will result in massive amounts of data needing to be stored. However, with the rapid development of IoT devices and ongoing business model transformation, we are not able to predict the volume and growth of IoT data. And with the lack of IoT history, traditional methods of IT and infrastructure planning based on the past do not app...
Organizations planning enterprise data center consolidation and modernization projects are faced with a challenging, costly reality. Requirements to deploy modern, cloud-native applications simultaneously with traditional client/server applications are almost impossible to achieve with hardware-centric enterprise infrastructure. Compute and network infrastructure are fast moving down a software-defined path, but storage has been a laggard. Until now.
Digital Transformation is much more than a buzzword. The radical shift to digital mechanisms for almost every process is evident across all industries and verticals. This is often especially true in financial services, where the legacy environment is many times unable to keep up with the rapidly shifting demands of the consumer. The constant pressure to provide complete, omnichannel delivery of customer-facing solutions to meet both regulatory and customer demands is putting enormous pressure on...
The best way to leverage your CloudEXPO | DXWorldEXPO presence as a sponsor and exhibitor is to plan your news announcements around our events. The press covering CloudEXPO | DXWorldEXPO will have access to these releases and will amplify your news announcements. More than two dozen Cloud companies either set deals at our shows or have announced their mergers and acquisitions at CloudEXPO. Product announcements during our show provide your company with the most reach through our targeted audienc...
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.
"Akvelon is a software development company and we also provide consultancy services to folks who are looking to scale or accelerate their engineering roadmaps," explained Jeremiah Mothersell, Marketing Manager at Akvelon, 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.
JETRO showcased Japan Digital Transformation Pavilion at SYS-CON's 21st International Cloud Expo® at the Santa Clara Convention Center in Santa Clara, CA. The Japan External Trade Organization (JETRO) is a non-profit organization that provides business support services to companies expanding to Japan. With the support of JETRO's dedicated staff, clients can incorporate their business; receive visa, immigration, and HR support; find dedicated office space; identify local government subsidies; get...
The current age of digital transformation means that IT organizations must adapt their toolset to cover all digital experiences, beyond just the end users’. Today’s businesses can no longer focus solely on the digital interactions they manage with employees or customers; they must now contend with non-traditional factors. Whether it's the power of brand to make or break a company, the need to monitor across all locations 24/7, or the ability to proactively resolve issues, companies must adapt to...
"We view the cloud not as a specific technology but as a way of doing business and that way of doing business is transforming the way software, infrastructure and services are being delivered to business," explained Matthew Rosen, CEO and Director at Fusion, in this SYS-CON.tv interview at 18th Cloud Expo (http://www.CloudComputingExpo.com), held June 7-9 at the Javits Center in New York City, NY.
DXWorldEXPO LLC announced today that the upcoming DXWorldEXPO | CloudEXPO New York event will feature 10 companies from Poland to participate at the "Poland Digital Transformation Pavilion" on November 12-13, 2018.