Hi All,

I am new to drools...and am trying to figure out as to how I can
represent the following logic in a DRL file.

if (condition1) {

  if (condition2) {

  } else if (condition3) {

  } else if (condition 4) {

  } else if (condition 5) {

  }

}

In DSL, a typical rule is represented as follows:

rule "name"

when
  condition is true
then
  consequence

end

How can I represent the above mentioned if - else logic in DSL? Or is
it not possible?

If it is not, can you please suggest any alternative?

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

Reply via email to