Kingston,

  Are you using OR between patterns or between field constraints? Can you
please show an example with the syntax you are using?

  []s
  Edson


2007/5/17, kingston <[EMAIL PROTECTED]>:


Hi
i have written many rules in DRL . These rules look like

when

<condition1> ||
<condition2> &&
<condition3> ||
<condition4>

Then
<some action>

end;

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
had
the english text along with the input value in the place for the variable.

Finally i could make the dsl syntax work onlly when i had all the
conditions
on a single line using "eval".  This looks pretty long. The syntax
provided
in Drools documentaion  " [when]- " works fine for "AND" conditions

How do i break my conditions in the dsl format on each new line with all
my
logical conditions "AND" , "OR" intact ? Do we have any other options for
breaking into new line ? Is there any work around for that ? How do I
handle
"OR" conditions?

Thanks.







--
View this message in context:
http://www.nabble.com/probleam-in-breaking-conditions-into-multiple-lines-in-DSL-tf3771959.html#a10664273
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users




--
 Edson Tirelli
 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
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to