InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Unified Rules Engine and Processes

Posted by Gavin Terrill on Nov 19, 2007

Sections
Architecture & Design,
Development,
Enterprise Architecture
Topics
Rule Engines ,
Java ,
Architecture ,
Business Process Management
Tags
WS-BPEL ,
JBoss Rules

Workflow Business Process Management systems and rules engines go hand in hand. A process definition language (such as XPDL, Colored Petri Nets, Pi-Workflow or jPDL) is used to describe a process at a relatively coarse level of abstraction. Rules are then used to implement decisions based upon the context of the workflow, for example to determine who should work on an item, who should be notified when an activity completes, or what to do when an activity has stalled.

Today, Mark Proctor and Kris Verlaenen of the JBoss Drools team published information on their vision of declarative programming using workflow and rules. The article begins with Mark describing what the next major advances will be for rules engines:
The current "modus operandi" for the rule industry is a focus on stateless decision services, where the separate workflow engine at some point calls out to the separate stateless rule engine to assist in some decision making - after 30 years of research and development is that the best we have to offer, multi-million pound license deals that effectively boil down to glorified spreadsheets called via a stateless web services from some workflow engine. Not to mock this model, as it is actually quite useful, but this level of integration is superficial at most and we need to make sure that we unify these models and allow it to go to much greater depths.

The article builds on a previous paper published by the jBPM team on what was dubbed the "Process Virtual Machine" (PVM). In a nutshell, PVM is to workflow what bytecode is to Java - a process execution engine that is independent of the process definition language. Kris explains that PVM+ integrates rules engine constructs with the process execution environment offering several advantages:

  • Rules can be modeled in the process definition.
  • Data (including structure definitions) can be shared between rules and processes.
  • Unified auditing.
  • Simplified administrative functions.
  • The ability for rules and process instances operating in parallel to react to changes via shared contexts.

PVM+ serves as a substrate for process centric DSLs. Kris lists the existing jBPM language jPDL, as well as the recently introduced PageFlow (workflow language for specifying the control flow in web pages) and RuleFlow (a workflow language for specifying the order in which large rule sets should be evaluated), as example implementation languages.


Drools 4.0 ruleflow diagram

Kris discusses the role of "work items handlers", which are responsible for execution of process instances. Of particular interest is the idea of having different handlers depending on the context. This could be used to overcome one of the longer standing criticisms of rules and workflow based development - testing:

A workflow can behave differently depending on its stage in the life cycle. For example, for testing, handlers that do not actually do anything but simply test the execution of the workflow could be registered. For simulation, some visualization of the work items that should be executed, and the possibility for the person doing the simulation to complete/abort these work items is possible.

Pluggable Dialects for Drools Processes by Mark Proctor Posted
  1. Back to top

    Pluggable Dialects for Drools Processes

    by Mark Proctor

    I just did a new blog showing the process stuff leverage the pluggeable Dialects for actions that Drools already has, includes a nice screenshot too :)
    Pluggable Dialects for Drools Processes now work :)

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.