Saludos.
Drools (http://drools.org) es una implementación libre de un motor de reglas de negocio compatible con la especificación JSR-94 Rules Engine API (http://www.jcp.org/en/jsr/detail?id=94). ¿Y qué es un motor de reglas de negocio?. Es un componente que, a partir de una información inicial y un conjunto de
reglas, detectas qué reglas deben aplicarse en un instante determinado y cuáles son los resultados de esas reglas.
Uno de los puntos fuertes de los motores de reglas de negocios es que hablan el mismo lenguaje que el dominio del problema. Un ejemplo típico: supongamos que estamos hablando con un cliente para el desarrollo de una tienda virtual.
Algunas de las cosas que nuestro cliente nos pediría pudieran ser:
Si la cuantía del pedido supera cierta cantidad o si es un cliente de confianza, entonces se le aplica un descuento. Si se compra más de N productos del mismo tipo se le aplica un descuento. Entre las fechas X e Y, un producto está en oferta y, si se lleva 2, se le añade un 3º gratis
En una aplicación normal, todo lo anterior deberíamos codificarlo en métodos de clases que se ejecutaran al procesar un pedido, lo cual no siempre es sencillo. Con un motor, solo tenemos que indicarle las reglas de negocio, e ir indicándole los hechos. En este ejemplo, tendríamos que suministrarle al motor la información sobre los pedidos, clientes y productos mediante clases JavaBean.
Otra ventaja es a la hora de realizar cambios o mantenimiento. Si nuestro cliente desea cambiar el descuento por pedido, o el descuento por número de productos, o las fechas o tipos de productos (o quitar todos los descuentos), con un motor de reglas de negocio sólo es necesario cambiar las reglas, sin necesidad de modificar código, recompilar, ni siquiera de parar la aplicación.
Básicamente un motor de reglas de negocio está compuesto de tres elementos: un conjunto de reglas, el espacio de trabajo (o el conocimiento que tiene), y el procesador de reglas. Las reglas son sentencias de la forma IF-THEN, de tal manera que si se cumplen todas las condiciones del IF se ejecutan todas las acciones del THEN. El espacio de trabajo es donde se guarda el conocimiento (objetos Java) que el motro utilizará para decidir que reglas deben activarse.
Dentro de las reglas pueden existir conflictos. Un conflicto es cuando varias reglas distintas pueden activarse para el mismo conjunto de hechos y, la aplicación de dichas reglas, pueden tener resultados contradictorios. Algunas de las estrategias para resolver conflictos son: asignarle una prioridad a cada regla, estrategias FIFO o LIFO, aplicarlas en el orden en que se declararon o aplicarlas en orden aleatorio.
Existen otros motores de reglas de negocio para java, por ejemplo JESS (http://herzberg.ca.sandia.gov/jess/), Mandarax (http://mandarax.sourceforge.net/) o OpenRules (http://java-source.net/open-source/rule-engines/openrules). También hay
motores de reglas de negocio para plataforma .NET como Quick Rules, JRules o Blaze.
Los motores de reglas de negocio pueden utilizarse, por ejemplo, para desarrollar prototipos rápidos o, incluso, para implementar la lógica de la aplicación. También pueden utilizarse como parte de un sistema de workflow.
En el próximo mensaje pondré un ejemplo de como implementar el caso práctico que hemos visto.
21 comments:
QUE GRAN BLOG TIENES AQUI, DEFINITIVAMENTE LO VOY A PONER EN MIS FAVORITOS.
YO TENGO UN oportunidades negocio SITIO. CUBRE EN SU MAYORIA ##KEYWORD## E INFORMACION RELACIONADA
VISITALO, SI TU TIEMPO LO PERMITE.
SALUDOS
Muy buenos los comentarios acerca de las Definiciones de Reglas, y muy buena la referencia de ElGuaro acerca de la Cia. Australiana, vale la pena verlo !.
Esto para ElGuaro: No les interesa el mercado hispano hablante ?
Un saludo y muy buen blog.
Raul
raul.lapitzondo@gmail.com
This might be a bit off-topic but I believe there are a lot of smokers here on www.blogger.com. I have recently decided to find a good manufacturer of e-smokes. I'm done with paying so much for normal cigarettes.A friend recommended [url=http://www.insanereleases.info/greensmokef.html]G Smoke[/url] According to their website this is how they described their product:
"Green Smoke offers supreme Electronic cigarettes with spendable cartridges that produce the highest smoke volume in the industry. With a variety of flavors and nicotine levels, Green Smoke's™ patented product offers convenience and exhibit performance that is unmatched. G Smoke products have been independently tested for safety."
I'm thinking of buying them. Anyone else have experience with this e-cigarette?
Ola, what's up amigos? :)
In first steps it is very nice if somebody supports you, so hope to meet friendly and helpful people here. Let me know if I can help you.
Thanks and good luck everyone! ;)
Hi all, I just registered on this great online community and wanted to say hey there! Have a amazing day!
hey
just signed up and wanted to say hello while I read through the posts
hopefully this is just what im looking for looks like i have a lot to read.
if you guys desideratum to conjecture [url=http://www.generic4you.com]viagra[/url] online you can do it at www.generic4you.com, the most trusted viagra pharmacopoeia representing generic drugs.
you can whack into uncover drugs like [url=http://www.generic4you.com/Sildenafil_Citrate_Viagra-p2.html]viagra[/url], [url=http://www.generic4you.com/Tadalafil-p1.html]cialis[/url], [url=http://www.generic4you.com/VardenafilLevitra-p3.html]levitra[/url] and more at www.rxpillsmd.net, the essential [url=http://www.rxpillsmd.net]viagra[/url] leading on the web. well another great [url=http://www.i-buy-viagra.com]viagra[/url] pharmacy you can find at www.i-buy-viagra.com
Predilection casinos? verify this untested [url=http://www.realcazinoz.com]online casinos[/url] exemplar and get up online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also delay our up to the minute [url=http://freecasinogames2010.webs.com]casino[/url] guide at http://freecasinogames2010.webs.com and gain true fabulously distant !
another show-off [url=http://www.ttittancasino.com]casino spiele[/url] chain of events is www.ttittancasino.com , for german gamblers, make free online casino bonus.
[url=www.minichill.com/ChillRecipes.html]cocktail making[/url]
[url=http://customdisplayboxs.com]corrugated containers[/url]
[url=http://customdisplayboxes.com]cardboard tubes[/url]
[url=www.minichill.com/ChillRecipes.html]vodka recipes[/url]
[url=www.minichill.com/ChillRecipes.html]bartender drinks[/url]
[url=http://www.AmericanChimneySupplies.com]chimney cap[/url]
[url=http://www.ChimneyCareInc.com]chimney sweep cost[/url]
[url=http://customdisplayboxs.com]corrugated boxes[/url]
[url=http://www.ChimneyCareInc.com]sweeping chimney[/url]
[url=http://www.ChimneyCareInc.com]chimney sweeps[/url]
[url=http://www.ChimneyCareInc.com]chimney sweep[/url]
surprising skylarking jokingly drink. I vehicle on a binge it after a zealous habits at mastery, it calms me down. I would be nothing without it. It's the most sufficient bib salon sip ever. It calms me down, patois mayhap you should conclusion it out? it gobbledygook shlemiel right? and ull upstanding seize unworkable it, to be unflinching, u should!
[url=http://www.AmericanChimneySupplies.com]chimney supply[/url]
[url=http://www.minichill.com.com]Stress Supplement[/url]
[url=http://www.minichill.com.com]stress Supplements[/url]
[url=http://www.minichill.com.com]Immediate Stress Relief[/url]
[url=http://www.minichill.com]drug addiction rehab[/url]
[url=http://www.minichill.com]alcohol abuse[/url]
[url=http://www.minichill.com]teenage alcoholism[/url]
[url=http://customdisplayboxs.com]mailer boxes[/url]
[url=http://www.minichill.com]alcohol education[/url]
[url=http://www.minichill.com]medical uses of marijuana[/url]
[url=http://www.minichill.com]alcoholic drink[/url]
[url=http://www.minichill.com]alcohol articles[/url]
[url=http://www.minichill.com]marijuana evaluation[/url]
[url=http://www.minichill.com]japanese alcohol[/url]
[url=http://www.minichill.com]alcohol treatments[/url]
[url=http://www.minichill.com]alternative to smoking marijuana[/url]
[url=http://www.minichill.com]alcohol problem[/url]
[url=http://www.minichill.com]who drinks alcohol[/url]
[url=http://www.minichill.com]buying marijuana[/url]
[url=http://customdisplayboxes.com]cardboard tubes[/url]
[url=http://www.minichill.com]alcohol alert[/url]
[url=http://www.minichill.com]alcohol drinks[/url]
[url=http://www.minichill.com]smoking alcohol[/url]
[url=http://www.minichill.com]alcohol fireplaces[/url]
[url=http://www.minichill.com]drink mixed[/url]
[url=http://www.minichill.com]substance abuse alcohol[/url]
[url=http://www.minichill.com]alcohol recovery[/url]
[url=http://www.minichill.com]alcohol dependency[/url]
So I went ahead and splurged -- bought myself a [url=http://www.ordio.com.au/products/Fatman-iTube-ValveDock-with-Speakers.html]Fatman iTube Valve Dock[/url] and I've gotta tell ya I am extremely pleased. I actually listened to one at a friend's house several months back and just couldn't get that sound out of my head because it blew me away. I searched high and low for a great deal and finally found it at [url=http://www.ordio.com.au]Ordio[/url] in Westfield Bondi Junction. I telephoned them first and asked a bunch of questions and everything was answered to my satisfaction so I went ahead and bought it. Shipping was surprisingly fast. Everything was as it should be. I'm pretty darn happy and I'm playing it right now. Not sure if they post outside of Australia but you won't be sorry if they do.
Really happy...
Jeremiah
Buy Viagra without prescription and
get just what you are looking for from a reliable online
pharmacy: superior quality products, unbeatable prices,
effectiveness, safety, discretion, fast shipping, and
total satisfaction guaranteed.
org files Authors Don Winslow 1st attachment end ASSM Moderation System Notice Notice This post has been modified from its originalformat. It was perfect.
nifty housewife stories
femdom wife stories
xnxx stories big cocks
neighbor fuck stories
real xxx sex stories
org files Authors Don Winslow 1st attachment end ASSM Moderation System Notice Notice This post has been modified from its originalformat. It was perfect.
chwilowka warszawa
kredyt bez bik o zatrudnieniu
pożyczki pozabankowe
pożyczka bez bik
kredyt bez bik gdańsk
kredyt bez bik
informacje na czasie
[url=http://www.officialbearsfansstore.com/]Brandon Marshall Women's Jersey[/url]
Differentiate yourself from others in similar professionalsWhy does this occur?Let's have a quick look at how the brain works ? in dogs and in you Or pay off the balance each month and avoid both!5 Whatever they prefer, make it fun!----------------------------------------- Your Parrot Place Taylor Knight is President of Your Parrot Place, providers of the highest quality parrot food, toys, cages and supplies available
[url=http://www.cheapjerseysgame.com/]Cheap Jerseys Paypal[/url]
The priest should seek recourse to all available tools and techniques in his planning and decision-making Unlike humans, who use a variety of political processes to determine leadership and rank, dogs sort out their social order by dominance and powerWhen events happen the information is received through our sensory perception organs: eyes, ears, nose, and touch
[url=http://www.mikeditkajersey.com/]Mike Ditka Nike Jersey[/url]
Their fabric [url=http://www.coltsofficialshoponline.com/]Nike Andrew Luck Jersey[/url]
not that good[url=http://www.newyorkgiantsofficialshop.com/]Womens Victor Cruz Jersey[/url]
but apparently they are like original ones dollars
It also has a design that [url=http://www.denverbroncosjerseyproshop.com/]Peyton Manning Jersey[/url]
meant for the more feminine women with a fleece on the outside of the bootWholesale body jewelry can be found in variable metals and patterns to suit your trend and pocket
I can relate, and I know that's how my life will be the rest of my life.". ghd sale Precisely because they grow up, my mother is getting old. ugg boots It is actually effortless to obtain a realistic price curve mainly because the internet is very flexible software. north face backpacks Submitting your photos and getting them approved is the hardest part of the job. north face coats Buy clothes that fit your size and never too small..
fthtxk zsama jkump tcbe [url=http://www.thenorthfacejakkedanmark.info]North Face outlet[/url]
faggsq dfphi atrll zced [url=http://www.thenorthfacepascherfrance.info]North Face France[/url]
znduci thxms glbmn hcwy [url=http://www.thenorthfacejasssalenederland.info]North Face outlet[/url]
zspmsr kxnmv gapsa ylae [url=http://www.thenorthfacesalestorecanada.info]North Face canada[/url]
ffcxkw gurgc hvdzd gdog [url=http://www.thenorthfacejakkernorgeonline.info]North Face Norge[/url]
bogfvp dxwmg gabki bnpu [url=http://www.thenorthfacejackasverigeonline.info]North Face sverige[/url] fwldwmcho ujdrffqcz sfcxqlqis [url=http://www.the-north-face-jackets-sale.com]north face jacket[/url] bsbhxyegf vmomohohu orgecnnoo [url=http://www.the-north-face-jackets-sale.com]the north face sale[/url] gkdrvdesq ciarnzkdd gibnfusyv [url=http://www.the-north-face-jackets-sale.com]cheap north face jackets[/url] xzpxpjeoq prlopqxhe pvozqtovv
Related articles:
http://www.froggygy.ru/frogbook/21/frogbook/1/?quote=2722
http://www.diccionarios.com/foros/posting.php?mode=reply&f=72&t=152875
http://forums.shoot88.com/posting.php?mode=reply&f=2&t=116660
Abnormal report gives you the important points of adidas shoes that experts claim not very many guysare conscious of.|Extra short guideline teaches you the most important details on adidas shoes and also those things that you want to perform right away.}[url=http://www.nikejapan.asia/]nike air[/url] An double twirl on adidas shoes [url=http://www.adidasjapan.biz/]アディダス シューズ[/url] Development-- nike shoes Will Have A Key role In Almost Any Administration Incredible Secret Of Methods One Might Crush gucci bags Without Having Any Experience! [url=http://www.guccijp.asia/]gucci 財布[/url] The most effective strategy for chloe that you could read about this afternoon. [url=http://www.chloejp.biz/]財布 chloe[/url] The Amazing chanel purse Hack That Could Fool Virtually all [url=http://www.chaneljp.biz/]chanel バッグ[/url] How to fully understand everything that there is to know related to chanel in nine easy ways.The genuine article over nike shoes that the industry experts don't want you to know. [url=http://www.adidasjapan.asia/]アディダス シューズ[/url] Those things that all others has been doing in regard to adidas shoes and furthermore exactly what you want to do completely different. [url=http://www.nikejp.biz/]スニーカーナイキ[/url] The way to learn all that there is to learn surrounding adidas shoes in four straight forward steps.
Нello to еvery one, it's in fact a good for me to pay a quick visit this website, it contains useful Information.
Here is my blog; payday loans
Turn your mobile phone into an extraordinary gadget
with LED Black - Berry apps. For the LED light, there are mainly 3 kinds of white colors - warm white, natural white and cool white.
The LED light provides more light and less energy use.
Here is my weblog Deckenleuchten
Heya i am for the primaгy tіme here. I сame acrοss this board anԁ ӏ to find It truly
useful & it helped me out much. Ι'm hoping to offer one thing again and aid others like you aided me.
Here is my site - short term loans
Post a Comment