Drools Flow User Guide

5.0.1


Table of Contents

1. Introduction
2. Getting Started
Installation
Creating Your First Process
Executing your first process
3. Rule Flow
Creating a RuleFlow Process
Using the Graphical RuleFlow Editor
Defining Processes Using XML
Defining Processes Using the Process API
Using a Process in Your Application
Detailed Explanation of the Different Node Types
Data
Constraints
Actions
Events
Exceptions
Timers
Assigning Rules to a Ruleflow Group
A Simple Ruleflow
Using Drools 4.x RuleFlow Processes
4. Drools Flow API
Knowledge Base
Session
Events
5. Persistence
Runtime State
Binary Persistence
Safe Points
Configuring Persistence
Transactions
Process Definitions
History Log
Storing Process Events in a Database
6. Drools Flow Process Model
7. Rules and Processes
Why Use Rules in Processes?
Why Integrate Rules and Processes in a Single Engine?
Approach
Teaching a Rules Engine About Processes
Inversion of Control
Example
Evaluating a Set of Rules in Your Process
Using Rules for Evaluating Constraints
Assignment Rules
Describing Exceptional Situations Using Rules
Modularizing Concerns Using Rules
Rules for Altering Process Behavior Dynamically
Integrated Tooling
Domain-specific Rules and Processes
8. Domain-specific processes
Introduction
Example: Notifications
Creating the work definition
Registering the work definition
Using your new work item in your processes
Executing work items
Testing processes using work items
Future
9. Human Tasks
Human tasks inside processes
Swimlanes
Human task management component
Task life cycle
Linking the task component to the Drools Flow engine
Starting the Task Management Component
Interacting With the Task Management Component
Human Task Management Interface
Eclipse integration
Web-based Task View
10. Debugging processes
A simple example
Debugging the process
The Process Instances View
The Audit View
11. Drools Eclipse IDE Features
Drools Runtimes
Defining a Drools Runtime
Selecting a runtime for your Drools project
Process Skins
12. Business Activity Monitoring
Reporting
Direct Intervention
Index

List of Figures

3.1. Ruleflow
3.2. Creating a new RuleFlow file
3.3. New RuleFlow process
3.4. The different types of ruleflow nodes
3.5. A sample process using events
3.6. A sample process using exception handlers
3.7. Ruleflow
3.8. Complex ruleflow
3.9. Split types
3.10. Edit constraints
3.11. Constraint editor
7.1. RuleSet node and one of its rules
12.1. Creating a report using Eclipse BIRT
12.2. The eventing report