I was using a drl file as pasted below.
Fruit ( name == "apple" , costinrupees == 10) ; &&
eval ( C.getNumOfCustomers() == 20 && ( C.getCityname() == "kanput"
C.getCityname() == "Disput" ))
Where do i need to break lines in dsl ? Do we reallly need some "english
text" in dsl for each line i break ?[when]- works well for rules involviing
"OR" conditioins but it doesn't seem to work for "AND"
Can you please help me in getting out of this problem...?
Edson Tirelli-3 wrote:
Are you using OR between patterns or between field constraints? Can you
please show an example with the syntax you are using?
2007/5/17, kingston <raja_kingston(a)yahoo.co.in>:
> i have written many rules in DRL . These rules look like
> <condition1> ||
> <condition2> &&
> <condition3> ||
> <some action>
> I am trying to rewrite these rules in DSL format .
> I tried something like this :
> I added the english text before the statement for condition1 and used
> variables for passing input values. and in the rule file ( .drl file ) i
> the english text along with the input value in the place for the
> Finally i could make the dsl syntax work onlly when i had all the
> on a single line using "eval". This looks pretty long. The syntax
> in Drools documentaion " [when]- " works fine for "AND"
> How do i break my conditions in the dsl format on each new line with all
> logical conditions "AND" , "OR" intact ? Do we have any other
> breaking into new line ? Is there any work around for that ? How do I
> "OR" conditions?
> View this message in context:
> Sent from the drools - user mailing list archive at Nabble.com
> rules-users mailing list
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com
rules-users mailing list
View this message in context:
Sent from the drools - user mailing list archive at Nabble.com