Template parsing and expansion doesn't care much about the text between the
overall delimiting keywords; basically it is just a macro processor. This
means that you could very well expand a template containing DSLR rules, and
feed the result as DSLR to the Builder.
Notice that template expansion can be done with a variety of data containing
the actual parameters.
Also, keep in mind that you can write constraints such as
Fact( ..., field in ( "100", "200",... ),... )
which is certainly preferable to having individual and otherwise identical
rules.
-W
2011/5/20 matiasklein <mklein(a)porticosys.com>
Thank you. I will read up more about templates. Do you know if it
is
possible to use a DSL with templates?
Thanks Again!
________________________________________
From: manstis [via Drools] [[hidden
email]<http://user/SendEmail.jtp?type=node&node=2963820&i=0>]
Sent: Thursday, May 19, 2011 11:24 AM
To: Matias Klein
Subject: Re: [rules-users] DSL Enumeration / Decision Table ?
This would appear a (near) perfect use-case for "Templates".
Have a read of the documentation and examples, it should become quite clear
thereafter :)
On 19 May 2011 15:46, matiasklein <[hidden
email]</user/SendEmail.jtp?type=node&node=2961816&i=0>> wrote:
Hi,
I have a DSLR that reads:
There is an event with a code of "93000"
This translates via DSL to:
[when]There is an event with a code {Code}=$event : Event(Code == {Code})
Unfortunately, I have to build many rules that are exactly the same as
this,
but with different qualifying codes (i.e. rule #1 qualifies with code 9300,
93001, 93002, etc., but rule #2 qualifies with 5001, 5002, 5003, etc.).
I would like users of the system to be able to maintain the list of
qualifying codes in a spreadsheet. However, I'm not sure how to use an
enumeration loaded via a spreadsheet.
Does anyone have a recommendation on how to achieve this?
Thanks so much!
Cheers,
Matias
--
View this message in context:
http://drools.46999.n3.nabble.com/DSL-Enumeration-Decision-Table-tp296166...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=2961816&i=1>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=2961816&i=2>
https://lists.jboss.org/mailman/listinfo/rules-users
________________________________
If you reply to this email, your message will be added to the discussion
below:
Join Portico Systems at AHIP’s Institute 2011, June 15-17 in San
Franciscso, where the Road Map for Health Care Reform Continues. Visit
www.ahip.org/conferences/Institute2011 for more information or to register.
Portico Systems recent accolades & upcoming events (
www.porticosys.com)
________________________________
• Follow us on Twitter @porticosys, LinkedIn and Facebook.
• Read our blog devoted to the Healthcare Payer Community and IPM: Portico
Pulse
http://blog.porticosys.com/.
• Best Places to Work in Philadelphia 2010 & 2009
• Ranked #97 on Healthcare Informatics 100 list
This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.
------------------------------
View this message in context: RE: [rules-users] DSL Enumeration / Decision
Table
?<http://drools.46999.n3.nabble.com/DSL-Enumeration-Decision-Table-tp2961667p2963820.html>
Sent from the Drools: User forum mailing list
archive<http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.htm...
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users