25 Integrating Business Processes and Rules

So far, we have discussed how to integrate the Drools rules engine (Chapters 22 and 23) and the jBPM business process engine (Chapter 24) as separate services into Seam applications. Business processes and rules are naturally complementary to each other. At each node of the process, we can fire a set of rules to decide what to do next, based on the current state of the application. This way, we can express a large chunk of our business logic in a declarative manner and avoid much of the business logic coding in Java.

In this chapter, we will reimplement the number guess game from Section 24.5, but using declarative rules, instead of hardcoded business logic in Java, to manage the flow ...

Get Seam Framework: Experience the Evolution of Java™ EE, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.