Top Banner
1 JBoss BRMS Primer Looking at a Business Rules Mangement System December 17, 2013 Eric D. Schabell JBoss Technology Evangelist
50

JBoss BRMS Primer - Looking at a Business Rules Management System

Jan 13, 2015

Download

Education

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.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: JBoss BRMS Primer - Looking at a Business Rules Management System

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

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

3

What is a BRMS?

Page 4: JBoss BRMS Primer - Looking at a Business Rules Management System

4

The BRMS Solution

FINANCIAL SERVICES COMPANY

Product Request

Page 5: JBoss BRMS Primer - Looking at a Business Rules Management System

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

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

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

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

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

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

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

12

What is CEP?

Page 13: JBoss BRMS Primer - Looking at a Business Rules Management System

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

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

15

What is a BPMS?

Page 16: JBoss BRMS Primer - Looking at a Business Rules Management System

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

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

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

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

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

21

The Concepts

Page 22: JBoss BRMS Primer - Looking at a Business Rules Management System

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

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

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

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

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

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

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

29

Conceptual example

KnowledgeBase

StatelessKnowledge

Session

Rule package(artifacts)

Agenda

Page 30: JBoss BRMS Primer - Looking at a Business Rules Management System

30

Example: real BPM

KnowledgeBase

StatefulKnowledge

Session

ProcessDefinition

ProcessInstance

Page 31: JBoss BRMS Primer - Looking at a Business Rules Management System

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

32

The Architecture

Page 33: JBoss BRMS Primer - Looking at a Business Rules Management System

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

34

JBoss BRMS - Components

Page 35: JBoss BRMS Primer - Looking at a Business Rules Management System

35

JBoss BPM Suite – Components

Page 36: JBoss BRMS Primer - Looking at a Business Rules Management System

36

Page 37: JBoss BRMS Primer - Looking at a Business Rules Management System

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

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

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

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

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

42

Page 43: JBoss BRMS Primer - Looking at a Business Rules Management System

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

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

45

Business Resource Optimizer

Page 46: JBoss BRMS Primer - Looking at a Business Rules Management System

46

Core Services: Business Resource Optimizer (TP)

Page 47: JBoss BRMS Primer - Looking at a Business Rules Management System

47

Core Services: Business Resource Optimizer (TP)

Page 48: JBoss BRMS Primer - Looking at a Business Rules Management System

48

Demo

Page 49: JBoss BRMS Primer - Looking at a Business Rules Management System

49

Eric D. SchabellJBoss Technology Evangelist (Integration & BPM)@ericschabell / [email protected]

Questions?

Page 50: JBoss BRMS Primer - Looking at a Business Rules Management System

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