SlideShare a Scribd company logo
Mule with Drools
Drools : Drools is a Business Rules Management System (BRMS) solution. It provides a core Business Rules
Engine (BRE).
Drools supports the JSR-94 standard for its business rule engine and enterprise framework for the
construction, maintenance, and enforcement of business policies in an organization, application, or service.
Mule with drools
Mule have Drools component to execute business rules in it’s application
Now, let us create a simple application in our Anypoint studio. This application we will be
deploying and running in our Mule Standalone Server and will be using Business rules in our
Mule application using Drools
We need to keep a .drl files in our application where all the business rules will be
defined .. In our case all the business rules are in this routingRules.drl file:-
Rules in the routingRules.drl are defined as follows:-
You can see the rules that if weight variable value is less than or equal to 50 then WAREHOUSE_B will b
as printed as destination or else WAREHOUSE_A will be printed
You can see Mule code that the variable weight is generated randomly and the value of the weight is
been checked by the Drools component which is referring routingRules.drl where all the rules are set :-
You can see the value in weight variable is generated randomly and the destination
value is set to WAREHOUSE_B as defined in .drl file
Now we test our application by hitting http://localhost:8082/example and we will get
the following:-
You can see the value in weight variable is again generated randomly and the
destination value is set to WAREHOUSE_A as the weight value is greater than 50 and
the rules are defined in .drl file
Now we hit the url http://localhost:8082/example again and we will get the
following:-
In my next slide I will bring some other techniques in Mule implementation .
Hope you have enjoyed this simpler version.
Keep sharing your knowledge and let our Mule community grow 
Mule with drools

More Related Content

PPTX
Drools in Mule
Mohammed246
 
PPTX
Running mule standalone
Son Nguyen
 
PPTX
Mule with drools
F K
 
PPTX
Scatter and gather in mule
Rajkattamuri
 
PPTX
Cloudhub fabric
Shanky Gupta
 
PPTX
Mule with velocity
Anirban Sen Chowdhary
 
PPTX
Mule integration-application
Naresh Naidu
 
PPTX
Mulesoft Calling Flow of Other Applications
kumar gaurav
 
Drools in Mule
Mohammed246
 
Running mule standalone
Son Nguyen
 
Mule with drools
F K
 
Scatter and gather in mule
Rajkattamuri
 
Cloudhub fabric
Shanky Gupta
 
Mule with velocity
Anirban Sen Chowdhary
 
Mule integration-application
Naresh Naidu
 
Mulesoft Calling Flow of Other Applications
kumar gaurav
 

What's hot (13)

PPTX
Deploy apps in standalone with maven
Anirban Sen Chowdhary
 
PPTX
Deploying and Running in Mule
Khasim Saheb
 
PPTX
Webservice vm in mule
Praneethchampion
 
PPTX
Quartz in Mule
Mohammed246
 
PPTX
Idempotent filter in Mule
F K
 
PPTX
Sharing Resources - Mule
Anil Kumar V
 
PPTX
Using maven with mule
Sindhu VL
 
PPTX
Mule velocity
Praneethchampion
 
PPTX
Maven tools & archetypes
Son Nguyen
 
PPTX
Mule quartz
Praneethchampion
 
PPTX
Mulesoft idempotent Message Filter
kumar gaurav
 
PPTX
Timer Interceptor in Mule
Anirban Sen Chowdhary
 
PPTX
Velocity in Mule
Mohammed246
 
Deploy apps in standalone with maven
Anirban Sen Chowdhary
 
Deploying and Running in Mule
Khasim Saheb
 
Webservice vm in mule
Praneethchampion
 
Quartz in Mule
Mohammed246
 
Idempotent filter in Mule
F K
 
Sharing Resources - Mule
Anil Kumar V
 
Using maven with mule
Sindhu VL
 
Mule velocity
Praneethchampion
 
Maven tools & archetypes
Son Nguyen
 
Mule quartz
Praneethchampion
 
Mulesoft idempotent Message Filter
kumar gaurav
 
Timer Interceptor in Mule
Anirban Sen Chowdhary
 
Velocity in Mule
Mohammed246
 
Ad

Viewers also liked (20)

PPTX
Mule esb dataweave
Rajkattamuri
 
PPT
Anypoint platform highlights
himajareddys
 
PDF
BigQueryDeveloper
Christian Talampas
 
PPTX
Mule Integration with Dropbox
Ramakrishna Narkedamilli
 
PPT
Mule real-world-old
Praneethchampion
 
PPT
Mule soa
himajareddys
 
PPT
Mule - HTTP Listener
Ankush Sharma
 
PPTX
Connecting to external_application
Rajarajan Sadhasivam
 
PPTX
Mule with drools
Rajkattamuri
 
PDF
LeanIX Enterprise Architecture Management - Release Notes 3.4
LeanIX GmbH
 
PDF
AMAG Forrester about SAP & Lean Enterprise Architecture Management using LeanIX
LeanIX GmbH
 
PPTX
CRM on Demand for Higher Education: CRM for the Entire Constituent Life Cycle...
jpsells
 
PDF
Behind the scenes with Docker volume plugins
ClusterHQ
 
PDF
Dockercon 16 Wrap-up (Docker for Mac and Win, Docker 1.12, Swarm Mode, etc.)
Nils De Moor
 
PPTX
Message enricher in mule
Sashidhar Rao GDS
 
PDF
Rethink! How Digital Transformation disrupts Enterprise Architecture
LeanIX GmbH
 
PDF
Front end architecture
Rafael Salerno de Oliveira
 
PPTX
Introduction to Kubernetes
rajdeep
 
PDF
Exemplo caso de uso(Mulesoft)
Guilherme Baccas
 
PDF
Google Cloud Dataflow
Alex Van Boxel
 
Mule esb dataweave
Rajkattamuri
 
Anypoint platform highlights
himajareddys
 
BigQueryDeveloper
Christian Talampas
 
Mule Integration with Dropbox
Ramakrishna Narkedamilli
 
Mule real-world-old
Praneethchampion
 
Mule soa
himajareddys
 
Mule - HTTP Listener
Ankush Sharma
 
Connecting to external_application
Rajarajan Sadhasivam
 
Mule with drools
Rajkattamuri
 
LeanIX Enterprise Architecture Management - Release Notes 3.4
LeanIX GmbH
 
AMAG Forrester about SAP & Lean Enterprise Architecture Management using LeanIX
LeanIX GmbH
 
CRM on Demand for Higher Education: CRM for the Entire Constituent Life Cycle...
jpsells
 
Behind the scenes with Docker volume plugins
ClusterHQ
 
Dockercon 16 Wrap-up (Docker for Mac and Win, Docker 1.12, Swarm Mode, etc.)
Nils De Moor
 
Message enricher in mule
Sashidhar Rao GDS
 
Rethink! How Digital Transformation disrupts Enterprise Architecture
LeanIX GmbH
 
Front end architecture
Rafael Salerno de Oliveira
 
Introduction to Kubernetes
rajdeep
 
Exemplo caso de uso(Mulesoft)
Guilherme Baccas
 
Google Cloud Dataflow
Alex Van Boxel
 
Ad

Similar to Mule with drools (20)

PPTX
Mule with drools
Anirban Sen Chowdhary
 
PPTX
Drools in mule
Son Nguyen
 
PDF
Integrating DROOLS With Mule ESB
Jitendra Bafna
 
PDF
Mule esb and_relevant_components
Paaras Baru
 
PPTX
Introduction to Mule ESB
Deepak Bisht
 
PDF
Getting Started With #Drools 6 Slides - JBUG Denmark
Mauricio (Salaboy) Salatino
 
PPTX
Mule esb
sathyaraj Anand
 
PPTX
Mule enterprise service introduction
Son Nguyen
 
PPTX
Sai mule esb batch
saikiran6423
 
PPTX
Mule slides
naveenkodumuri12
 
PPTX
Mule
saikiran6423
 
PDF
Introduction To Mule
Roy Prins
 
PPTX
Mule esb parts
Sindhu VL
 
PPTX
Mule fundamentals
prudhvivreddy
 
PDF
SpringPeople Introduction to Mule ESB
SpringPeople
 
PPTX
Introduction to mule esb
Khasim Cise
 
PPTX
Mule esb
charan teja R
 
PPTX
Mule esb
Phaniu
 
PPTX
Mule esb
Khasim Saheb
 
PPTX
Mule esb
vishnukanthro45
 
Mule with drools
Anirban Sen Chowdhary
 
Drools in mule
Son Nguyen
 
Integrating DROOLS With Mule ESB
Jitendra Bafna
 
Mule esb and_relevant_components
Paaras Baru
 
Introduction to Mule ESB
Deepak Bisht
 
Getting Started With #Drools 6 Slides - JBUG Denmark
Mauricio (Salaboy) Salatino
 
Mule esb
sathyaraj Anand
 
Mule enterprise service introduction
Son Nguyen
 
Sai mule esb batch
saikiran6423
 
Mule slides
naveenkodumuri12
 
Introduction To Mule
Roy Prins
 
Mule esb parts
Sindhu VL
 
Mule fundamentals
prudhvivreddy
 
SpringPeople Introduction to Mule ESB
SpringPeople
 
Introduction to mule esb
Khasim Cise
 
Mule esb
charan teja R
 
Mule esb
Phaniu
 
Mule esb
Khasim Saheb
 
Mule esb
vishnukanthro45
 

More from Khan625 (20)

PPTX
Mapping and listing in mule
Khan625
 
PPTX
Message properties component in Mule
Khan625
 
PPTX
Jenkins Build System
Khan625
 
PPTX
Building and Managing Projects with Maven
Khan625
 
PPTX
Web services soap
Khan625
 
PPTX
Web services wsdl
Khan625
 
PPTX
Web services uddi
Khan625
 
PPTX
Web services with soap
Khan625
 
PPTX
Maven
Khan625
 
PPTX
WebServices Basic Overview
Khan625
 
PPTX
Java Basics
Khan625
 
PPTX
Mmc rest api user groups
Khan625
 
PPTX
Mapping and listing with mule
Khan625
 
PPTX
Message properties component in mule
Khan625
 
PPTX
Expression filter in Mule
Khan625
 
PPTX
Data weave
Khan625
 
PPT
Anypoint data gateway
Khan625
 
PPTX
Mule esb
Khan625
 
PPTX
Idempotent filter with simple file
Khan625
 
PPTX
Mule with quartz
Khan625
 
Mapping and listing in mule
Khan625
 
Message properties component in Mule
Khan625
 
Jenkins Build System
Khan625
 
Building and Managing Projects with Maven
Khan625
 
Web services soap
Khan625
 
Web services wsdl
Khan625
 
Web services uddi
Khan625
 
Web services with soap
Khan625
 
Maven
Khan625
 
WebServices Basic Overview
Khan625
 
Java Basics
Khan625
 
Mmc rest api user groups
Khan625
 
Mapping and listing with mule
Khan625
 
Message properties component in mule
Khan625
 
Expression filter in Mule
Khan625
 
Data weave
Khan625
 
Anypoint data gateway
Khan625
 
Mule esb
Khan625
 
Idempotent filter with simple file
Khan625
 
Mule with quartz
Khan625
 

Recently uploaded (20)

PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 

Mule with drools

  • 2. Drools : Drools is a Business Rules Management System (BRMS) solution. It provides a core Business Rules Engine (BRE). Drools supports the JSR-94 standard for its business rule engine and enterprise framework for the construction, maintenance, and enforcement of business policies in an organization, application, or service.
  • 4. Mule have Drools component to execute business rules in it’s application
  • 5. Now, let us create a simple application in our Anypoint studio. This application we will be deploying and running in our Mule Standalone Server and will be using Business rules in our Mule application using Drools
  • 6. We need to keep a .drl files in our application where all the business rules will be defined .. In our case all the business rules are in this routingRules.drl file:-
  • 7. Rules in the routingRules.drl are defined as follows:- You can see the rules that if weight variable value is less than or equal to 50 then WAREHOUSE_B will b as printed as destination or else WAREHOUSE_A will be printed
  • 8. You can see Mule code that the variable weight is generated randomly and the value of the weight is been checked by the Drools component which is referring routingRules.drl where all the rules are set :-
  • 9. You can see the value in weight variable is generated randomly and the destination value is set to WAREHOUSE_B as defined in .drl file Now we test our application by hitting http://localhost:8082/example and we will get the following:-
  • 10. You can see the value in weight variable is again generated randomly and the destination value is set to WAREHOUSE_A as the weight value is greater than 50 and the rules are defined in .drl file Now we hit the url http://localhost:8082/example again and we will get the following:-
  • 11. In my next slide I will bring some other techniques in Mule implementation . Hope you have enjoyed this simpler version. Keep sharing your knowledge and let our Mule community grow 