introduction aux brms

29
INTRODUCTION AUX BRMS Business Rules Management System

Upload: akram-gargouri

Post on 13-Dec-2014

1.043 views

Category:

Documents


3 download

DESCRIPTION

Une introduction aux BRMS. Un Workshop réalisé à IPTECH (Offshore Tunisie) *Inspiré des slides d'emmanuel bonnet

TRANSCRIPT

Page 1: Introduction aux BRMS

INTRODUCTIONAUX BRMS

Business Rules Management System

Page 2: Introduction aux BRMS

2

PLAN DE TRAVAIL

o INTRODUCTIONo Quand?

o BRMS du marchéo WODM

• Infrastructure• Règle métier (Mapping/écriture)• L’exécution (Moteur d’inférence, Modes)

o Conclusiono Défiso Impacts

Page 3: Introduction aux BRMS

3

BRMS: QUAND?

o Une logique métier qui change fréquemment« Encore des requierements »

o Les experts fonctionnels doivent modifier les règles« SVP pas d’informaticiens »

Externaliser

Expliciter

Gérer

Page 4: Introduction aux BRMS

4

EXTERNALISERLogique technique

Décisions métier

Page 5: Introduction aux BRMS

5

EXTERNALISER: LIFE CYCLE

Sans BRMS

Avec BRMS

Application

Règles

Page 6: Introduction aux BRMS

6

EXPLICITER

o CompréhensibleMétier lisible / visible

o Modifiable« SVP pas d’informaticiens »

o TraçablesOn peut « relire » la séquence d’une décision

Page 7: Introduction aux BRMS

7

EXPLICITER

SiL’abonné effectue une recharge de plus de 5 dinarsEtL’abonné est inscrit dans l’offre prépayé

Alorsoffrir à l’abonné un bonus égal au montant de sa recharge

Page 8: Introduction aux BRMS

8

UN BRMSo Un ensemble d’outils facilitant le travail des

utilisateurs métiers, des analystes et des développeurs.o Repositoryo Validation, Test

Page 9: Introduction aux BRMS

BRMS DU MARCHÉ

Page 10: Introduction aux BRMS

10

LES BRMS DU MARCHÉo WODM

o Jboss Drools

o Java Rules Engine

Page 11: Introduction aux BRMS

11

PUB

Page 12: Introduction aux BRMS

12

INFRASTRUCURE WODM

Page 13: Introduction aux BRMS

13

UN PROJET DE RÈGLES WODM

Page 14: Introduction aux BRMS

14

LA RÈGLE MÉTIER

if the credit score of 'the borrower' is less than 200

then add "Credit score below 200" to the messages of 'the loan' ; reject 'the loan';

CONCEPTATTRIBUT TEST

TRAITEMENT

Page 15: Introduction aux BRMS

15

MAPPING

Grammaire / Langage usuel+

Concept / Attributs / Traitements=

Mapping entre langages naturel

orienté objet

Page 16: Introduction aux BRMS

16

MAPPING

Page 17: Introduction aux BRMS

17

DIFFÉRENT TYPES DE RÈGLES (WODM)

Page 18: Introduction aux BRMS

18

UN WORKFLOW POUR RÈGLES: RULEFLOW

Page 19: Introduction aux BRMS

L’EXÉCUTION

Page 20: Introduction aux BRMS

20

L’ALGORITHME RETE

o L'algorithme de Rete (Charles Forgy –1980)

o Gèreo Chaînage avanto Un grand nombre de règleso Un gros volume de données

Page 21: Introduction aux BRMS

21

L’ALGORITHME RETE

Page 22: Introduction aux BRMS

22

Un moteur d’inférence

FACT DB

RULES DB

INFERENCE ENGINE

IF THENIF THEN

IF THEN

IF THEN

IF THEN

Page 23: Introduction aux BRMS

23

OPTIMISATIONSo Filtrage de règles (Ruleflows/Selection)o Surcharge de règles.

Page 24: Introduction aux BRMS

24

WODM

o AVANTAGESo Matureo Langage naturelo Beaucoup d’outils

pour tout gérero Intégration

(J2EE/.NET)

o INCONVÉNIENTSo Le coûto Phase

d’apprentissage longue

o Mémoire

Page 25: Introduction aux BRMS

CONCLUSION

Page 26: Introduction aux BRMS

26

LES DÉFIS

o Identifier les décisions à externaliser

o Extraire / Organiser le métier

o Trouver le bon processo Qui fait quoi ? BA, ITo Comment on déploie ?

Page 27: Introduction aux BRMS

27

IMPACT SUR LE PROJET

o Ajout d’un nouvel axe de développement

o Méthodologie liée aux règleso Analyse (Concepts du contexte)o Travail main dans la main IT/BAo Délégation progressive de responsabilité de IT

vers BA

Page 28: Introduction aux BRMS

28

RÉFÉRENCES

o http://fr.slideshare.net/emmanuelbonnet/introductoin-20101109

o http://blog.xebia.fr/2010/01/08/drools-et-les-moteurs-de-regles/ 

o http://logic.stanford.edu/poem/externalpapers/iRules/WP-JRules50Strengths.pdf

o http://www-prima.imag.fr/jlc/Courses/2001/ENSI2.SE/ENSI2.SE.S7.pdf

Page 29: Introduction aux BRMS

Tani

t C

ente

r B

2.4

2 L

ot. J

inèn

e Eddon

ya S

idi D

aoued

– 2

070 L

a M

arsa

- T

unis

ie

Tél. : +216 70 93 77 73Fax : +216 70 93 77 [email protected]

MERCI POUR VOTRE ATTENTION