A (dynamic) "request" with a "logical expression" that is to be evaluated as 
a rule is very much like a (dynamic) SQL query to be evaluated on a database.

Are you sure that Drools is the right platform?

If "someone" wants to send a logical expression in a formal language of their
own, you'll have to parse that expression and translate it into the Drools Rule
Language (aka DRL). Perhaps a Domain Specific Language might help, but
there's no telling from the very sparse information you've provided. (In any case
"someone" and Drools will have to agree on the  data model and the way to 
refer to the data, or else you'll have to do more work.)

-W


On 26 February 2012 16:00, shawn <youngxiao121@hotmail.com> wrote:
Sorry, I forget to mention one thing.
What's really difficult for me is to translate the "AND","OR"(Condition 1
AND Condition 2 OR Condition 3....) to the drool.
Because someone will send the request with the expression(Condition 1 AND
Condition 2 OR Condition 3....) to me. For each request the expression is
different. They hope I can translate the "AND","OR" to rule file
automatically. They don't want drool to parse the expression(maybe string)
to pick "AND", "OR".  This is why they want to have a rule file for each
request. They want to trigger the function to make a rule file when they are
making the expression, not only simply send me the expression and verify
it..

--
View this message in context: http://drools.46999.n3.nabble.com/How-to-create-a-drl-file-or-decision-table-dynamically-tp3772708p3777057.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users