jboss brms primer - looking at a business rules management system
DESCRIPTION
This was a guest lecture given at the Radboud University Nijmegen in the Netherlands on 17 Dec 2013 for students taking a business rules course for their Masters in Information Technology.TRANSCRIPT
![Page 1: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/1.jpg)
1
JBoss BRMS PrimerLooking at a Business Rules Mangement System
December 17, 2013
Eric D. SchabellJBoss Technology Evangelist
![Page 2: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/2.jpg)
2
Agenda
● The Basics– what is a BRMS, CEP,
BPMS?
● The Concepts– what is inference?
– what is a rule?– how does engine work?
● Demo● Questions
![Page 3: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/3.jpg)
3
What is a BRMS?
![Page 4: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/4.jpg)
4
The BRMS Solution
FINANCIAL SERVICES COMPANY
Product Request
![Page 5: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/5.jpg)
5
FINANCIAL SERVICES COMPANY
Product Request
Example
Problems:1. Business rules are hidden
in applications
![Page 6: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/6.jpg)
6
FINANCIAL SERVICES COMPANY
Product Request
Example
Problems:1. Business rules are hidden
in applications
2. It takes too long to change business rules
![Page 7: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/7.jpg)
7
FINANCIAL SERVICES COMPANY
Problems:1. Business rules are hidden
in applications
2. It takes too long to change business rules
3. People interpret rules inconsistently
Product Request
Example
![Page 8: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/8.jpg)
8
Rule Repository
The BRMS Solution
1. Separate the business rulesfrom the applications
![Page 9: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/9.jpg)
9
Rule Repository
AHA!
The BRMS Solution
1. Separate the business rulesfrom the applications
2. Express rules in terms that the business can readily understand - visibility
![Page 10: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/10.jpg)
10
Rule Repository
AHA!
The BRMS Solution
1. Separate the business rulesfrom the applications
2. Express rules in terms that the business can readily understand - visibility
3. Empower business and IT experts to collaborate - agility
![Page 11: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/11.jpg)
11
Rule Repository
1. Separate the business rulesfrom the applications
2. Express rules in terms that the business can readily understand - visibility
3. Empower business and IT experts to collaborate - agility
4. Support all the rules - consistency
AHA!
The BRMS Solution
![Page 12: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/12.jpg)
12
What is CEP?
![Page 13: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/13.jpg)
13
Problems:
Hard to derive business relevant data from available information
Important patterns go undetected
Business fails to respond to changes in its environment
Example: Multiple Customer Touch Points
![Page 14: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/14.jpg)
14
Complex Event Processing
Detect events of significance to a business by recognizing time-based patterns in one or more real-time data feeds...
“Weather delay in London”
Business Rules
![Page 15: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/15.jpg)
15
What is a BPMS?
![Page 16: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/16.jpg)
16
A Business Process
Catalog
Orders
Shipping
Financials
Inventory
Packaged Apps (e.g. SAP)
An activity or set of activities that will accomplish a specific organizational goal...
![Page 17: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/17.jpg)
17
The BPMS Solution
Catalog Shipping
1. Automate interactions with LoB Systems...
Packaged Apps
![Page 18: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/18.jpg)
18
Catalog Shipping
1. Automate interactions with LoB Systems...
2. Drive the business process from a model...
Packaged Apps
The BPMS Solution
![Page 19: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/19.jpg)
19
Catalog Shipping
1. Automate interactions with LoB Systems...
2. Drive the business process from a model...
3. Manage user participation...
Packaged Apps
The BPMS Solution
![Page 20: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/20.jpg)
20
Catalog Shipping
1. Automate interactions with LoB Systems...
2. Drive the business process from a model...
3. Manage user participation...
4. Provide visibilityinto process execution data
Packaged Apps
The BPMS Solution
![Page 21: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/21.jpg)
21
The Concepts
![Page 22: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/22.jpg)
22
JBoss BRMSWhat is inferencing?
● We want to take all of our data (facts) and combine it with our knowledge (rules) and come up with some conclusions (inferencing)
![Page 23: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/23.jpg)
23
JBoss BRMSWhat is inferencing?
● We want to take all of our data (facts) and combine it with our knowledge (rules) and come up with some conclusions (inferencing)
![Page 24: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/24.jpg)
24
JBoss BRMSWhat is inferencing?
● We want to take all of our data (facts) and combine it with our knowledge (rules) and come up with some conclusions (inferencing)
![Page 25: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/25.jpg)
25
JBoss BRMSWhat is inferencing?
● We want to take all of our data (facts) and combine it with our knowledge (rules) and come up with some conclusions (inferencing)
![Page 26: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/26.jpg)
26
JBoss BRMSWhat is inferencing?
● We want to take all of our data (facts) and combine it with our knowledge (rules) and come up with some conclusions (inferencing)
![Page 27: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/27.jpg)
27
JBoss BRMSWhat is a rule?
● In short, a rule is an premise and conclusion– If it is raining, then the ground must be wet
● A rule is made of conditions and actions. When all the conditions are met, a rule may “fire”.
● The conditions are collectively referred to as the LHS (left hand side) and the actions are referred to as the RHS (right hand side, or consequence).
● A rule operates on facts (data). In our case, these facts are instances of objects in our application.
![Page 28: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/28.jpg)
28
JBoss BRMSInference Engine
● The brain of a Production Rule System is an Inference Engine which matches facts against Production Rules.
● When matches are found, the rules actions are fired.● Actions most often change the state of the facts, or perform
some external action on the application.
![Page 29: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/29.jpg)
29
Conceptual example
KnowledgeBase
StatelessKnowledge
Session
Rule package(artifacts)
Agenda
![Page 30: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/30.jpg)
30
Example: real BPM
KnowledgeBase
StatefulKnowledge
Session
ProcessDefinition
ProcessInstance
![Page 31: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/31.jpg)
31
Agenda
RuleRule
RuleRule
Rule
FactFact
FactFact
Fact
WorkingMemory3. Assert Facts
RuleBase
FactFact
FactFact
Fact
RuleRule
RuleRule
Rule2. C
reate
4. F
ire A
ll Rule
s
(5) activation-> consequence
1.Parse DRLActivation
Rule Fact
Activation
RuleFact
Fact
JBoss BRMSHow it Works
![Page 32: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/32.jpg)
32
The Architecture
![Page 33: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/33.jpg)
33
JBoss BRMS Vs BPM Suite
JBoss BRMS 6.0JBoss BRMS 6.0
JBoss BPM Suite 6.0Target - Realtime Decision Management
Target:Process AutomationService Enabled OrchestrationIntelligent Business Operations
![Page 34: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/34.jpg)
34
JBoss BRMS - Components
![Page 35: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/35.jpg)
35
JBoss BPM Suite – Components
![Page 36: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/36.jpg)
36
![Page 37: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/37.jpg)
37
Repository
Businessrule definitions
Business data
Client applications
Business analysts
Developers
Rules engine
Event processor
Real-time data & event feedsAuthoring tools
for business users
Authoring tools for developers
Components
![Page 38: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/38.jpg)
38
Repository
Businessrule definitions
Business data
Client applications
Business analysts
Developers
Rules engine
Event processor
Real-time data & event feedsAuthoring tools
for business users
Authoring tools for developers
Drools 6.0
UberFire
New in 6.0
Technology Preview
![Page 39: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/39.jpg)
39
BRMS Components
Repository
BusinessRule Definitions
Business Data
Enterprise Applications
Developers
Business ProcessManager
Rule Engine
Event Processor
Business Users
Web Services
Java
Business Events
Authoring Tools for Business
Users
Authoring Tools for Developers
Operations
Business Central
Business Analysts
![Page 40: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/40.jpg)
40
BRMS Components
Repository
BusinessRule Definitions
Business Data
Enterprise Applications
Developers
Business ProcessManager
Rule Engine
Event Processor
Business Users
Web Services
Java
Business Events
Authoring Tools for Business
Users
Authoring Tools for Developers
Operations
Business Central
Business Analysts
![Page 41: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/41.jpg)
41
BRMS Components
Repository
BusinessRule Definitions
Business Data
Enterprise Applications
Business Analysts
Business ProcessManager
Rule Engine
Event Processor
Business Users
Web Services
Java
Business Events
Authoring Tools for Business
Users
Authoring Tools for Developers
Operations
Business Central
Developers
![Page 42: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/42.jpg)
42
![Page 43: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/43.jpg)
43
Repository
Businessrule definitions
Business data
Business analysts
Developers
Event processor
Rules engine
Business Events
Authoring tools for business
users
Authoring tools for developers
Components
Business users
BAM
Business ProcessManager
Enterprise Applications
Business users
Web Services
Java
![Page 44: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/44.jpg)
44
New in 6.0
Repository
BusinessLogicDefinitions
Business Data
Enterprise Applications
Business Analysts
Developers
Business ProcessManager
Rule Engine
Event Processor
Business Users
Web Services
Java
Business Events
Authoring Tools for Business
Users
Authoring Tools for Developers
Business Operations/Analysts
Business Central
Data ModelerForms Designer
jBPM 6.0
![Page 45: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/45.jpg)
45
Business Resource Optimizer
![Page 46: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/46.jpg)
46
Core Services: Business Resource Optimizer (TP)
![Page 47: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/47.jpg)
47
Core Services: Business Resource Optimizer (TP)
![Page 48: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/48.jpg)
48
Demo
![Page 49: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/49.jpg)
49
Eric D. SchabellJBoss Technology Evangelist (Integration & BPM)@ericschabell / [email protected]
Questions?
![Page 50: JBoss BRMS Primer - Looking at a Business Rules Management System](https://reader034.vdocuments.mx/reader034/viewer/2022051110/54b514c84a7959ed3f8b458c/html5/thumbnails/50.jpg)
50
`
JBoss BRMS & BPM Suite Articles:
http://schabell.org/search/label/BRMS
http://schabell.org/search/label/BPMS
JBoss BPM Suite Demos:
http://www.schabell.org/2013/10/jboss-bpm-suite-rocking-the-mortgage-demo.html
http://www.schabell.org/2013/11/jboss-bpm-suite-automated-lending-generic-loan-demo.html
http://www.schabell.org/2013/12/bpms-examining-migrated-customer-evaluation-demo.html
https://github.com/eschabell/business-resource-optimizer-demo
https://github.com/eschabell/bpms-customer-evaluation-demo (migration from BRMS 5.3)
JBoss xPaaS Demos:
https://github.com/eschabell/bpms-bam-dashboard
https://github.com/eschabell/openshift-bpm-bam-dashboard