[rules-users] How to create DSL template that produces rules based on arbitrary user's input?

psentosa psentosa at yahoo.com
Mon Aug 11 04:36:19 EDT 2008


Hi Matt,

thanks for the mind-opening idea ;-)
I'll try to remember this when I need to do such mapping again

Paul


Matt Geis wrote:
> 
> You can do this.  Keep in mind that the DSL engine will try to match each
> dsl mapping entry into the LHS of the rule, one by one, in the order they
> are declared in the mapping file.  This means you can have one mapping
> that substitutes the word "and" for a comma, and so on.  It may take some
> clever mapping, and multiple entries to get the flexible effect you're
> looking for, but it's doable (I've done it).
> 
> You might find the typed variable support in Drools 5 helpful.  There's a
> blog post about it, and a few weeks ago I posted a more detailed answer to
> essentially the same question to the list, if you want to go through the
> archives to find it.
> 
> This may help...
> 
> http://article.gmane.org/gmane.comp.java.drools.user/11020/match=geis
> 
> 
> Matt Geis
> 
> 
> 
>       
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-create-DSL-template-that-produces-rules-based-on-arbitrary-user%27s-input--tp18850282p18921915.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list