[jboss-user] [jBPM] - Re: why to use drools rules and not Java code?

Mauricio Salatino do-not-reply at jboss.com
Mon Jan 17 07:59:44 EST 2011

Mauricio Salatino [http://community.jboss.org/people/salaboy21] created the discussion

"Re: why to use drools rules and not Java code?"

To view the discussion, visit: http://community.jboss.org/message/581189#581189

Hi there, I'm back.
Some of the advatanges of using a Rule Engine against plain java code are:
- Declarative definition of your business rules, that can be expressed using a domain specific language that business analysist can validate and understand. In other words you can define what to do and not how to do it.
- You keep the business logic decoupled from your application, letting you change it without recompiling your entire application.
- You need to understand that having rules is not the same of having multiple IF/ELSE statements. The analysis of true statements are not done sequencially, allowing you to analyze multiple conditions much faster.
- Using rules you don't burry the business logic inside your application code
Among other advantages

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110117/7e9edebc/attachment.html 

More information about the jboss-user mailing list