Need help in drool workbench
by RANJAN Nalini
Hi Team,
Hope you are doing good..
We are new in drool workbench and we are planning to use drools workbench for our upcoming project..
This development we are going to do across different region..
Currently we have common drools workbench which hosted in one PC...Major issue which we are facing is that whenever we do modification from one region and its break to other region development..
Is there any way to do our development without impacting to other region code ?.
Do we have any mechanism to disable rule which has been written by one developer and it can be enable only when flag will be true(like toggle features) ?
Regards,
Nalini Ranjan
=========================================================
Ce message et toutes les pieces jointes (ci-apres le "message")
sont confidentiels et susceptibles de contenir des informations
couvertes par le secret professionnel. Ce message est etabli
a l'intention exclusive de ses destinataires. Toute utilisation
ou diffusion non autorisee interdite.
Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
et ses filiales declinent toute responsabilite au titre de ce message
s'il a ete altere, deforme falsifie.
=========================================================
This message and any attachments (the "message") are confidential,
intended solely for the addresses, and may contain legally privileged
information. Any unauthorized use or dissemination is prohibited.
E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
of its subsidiaries or affiliates shall be liable for the message
if altered, changed or falsified.
=========================================================
7 years, 11 months
Compiled template rule ordering
by Patrick Conreaux
Hi,
I am attempting to compile a rule template and expecting the resulting rules
to preserve the ordering of the template and of the rows in the CSV file.
However, it doesn't appear that ordering is preserved. Is this a bug, or is
there a workaround?
I would like to rely on the implicit top-down salience by having rules in a
specified order within the same file. (I'm aware that mutually exclusive
rules are preferred, but this greatly complicates maintaining the rules for
my use case, as does maintaining salience values.)
Using the (slightly-modified) cheese example, this template...
template header
age
type
log
package org.drools.examples.templates;
global java.util.List list;
rule "first rule"
when
eval(true)
then
System.out.println("first rule");
end
template "cheesefans"
rule "Cheese fans_(a){row.rowNumber}"
when
Person(age == @{age})
Cheese(type == "@{type}")
then
list.add("@{log}");
end
end template
rule "last rule"
when
eval(true)
then
System.out.print("last rule");
end
...results in the following output, where the first and last rule appear
at the top followed
by the template rules in *reverse *row order. Any suggestions to achieve
the desired order?
package org.drools.examples.templates;
global java.util.List list;
rule "first rule"
when
eval(true)
then
System.out.println("first rule");
end
rule "last rule"
when
eval(true)
then
System.out.print("last rule");
end
rule "Cheese fans_3"
when
Person(age == Really old guy)
Cheese(type == "65")
then
list.add("provolone");
end
rule "Cheese fans_2"
when
Person(age == Young guy)
Cheese(type == "21")
then
list.add("cheddar");
end
rule "Cheese fans_1"
when
Person(age == Old guy)
Cheese(type == "42")
then
list.add("stilton");
end
Cheers,
Patrick
7 years, 11 months