Re: [rules-users] Need Help on Guided Web Editor or Rule Template in Guvnour
by mahmood lebbai
Thanks Mike.
I'm currently using 5.2.0 M2.
Regards,
Mahmood
________________________________
From: mahmood lebbai <mahmoodlebbai(a)yahoo.com>
To: "rules-users(a)lists.jboss.org" <rules-users(a)lists.jboss.org>
Sent: Monday, 23 May 2011 12:45 PM
Subject: Need Help on Guided Web Editor or Rule Template in Guvnour
Following are the issues which I had identified in DROOLS Rule template in Guvnour
1. When the particular field attribute is of type String and defined in the condition with the template key , then while entering template data we need to explicit put the double quotes while entering template data.
2. When the particular field attribute is of type String and defined in the condition with the template key but the enumeration has been defined for the column , there is no way to place the double quotes for the field attribute.
3. In THEN Part , if the particular attribute is defined with the enumeration , template key option is not showing up other than plain text. ( Need to have an option to choose from Load Template data ).
4. If the attribute of type boolean and checkbox has been displayed and by default its set to false. We should have an option to remove this ... ( this might cause pattern evaluation in condition and avoid removing the pattern option in Guided decision table or rule template)
5. Template Key option to be provided / enhanced for condition or action entered through DSLR and Need an option to choose the data using Load Template data.
Regards,
Mahmood
14 years, 11 months
Need Help on Guided Web Editor or Rule Template in Guvnour
by mahmood lebbai
Following are the issues which I had identified in DROOLS Rule template in Guvnour
1. When the particular field attribute is of type String and defined in the condition with the template key , then while entering template data we need to explicit put the double quotes while entering template data.
2. When the particular field attribute is of type String and defined in the condition with the template key but the enumeration has been defined for the column , there is no way to place the double quotes for the field attribute.
3. In THEN Part , if the particular attribute is defined with the enumeration , template key option is not showing up other than plain text. ( Need to have an option to choose from Load Template data ).
4. If the attribute of type boolean and checkbox has been displayed and by default its set to false. We should have an option to remove this ... ( this might cause pattern evaluation in condition and avoid removing the pattern option in Guided decision table or rule template)
5. Template Key option to be provided / enhanced for condition or action entered through DSLR and Need an option to choose the data using Load Template data.
Regards,
Mahmood
14 years, 11 months
org.drools.reteoo.ReteooRuleBase not getting released
by dkrishna
Hi,
I am using Drools 5.1.1 and Spring-Drools configuration to load excels on
startup and inject stateful session into Java service. I noticed
org.drools.reteoo.ReteooRuleBase not getting released when I redeploy the
app. Other suspect that I notoced is
org.drools.rule.builder.dialect.java.parser.JavaLexer. After redeploy (stop,
uninstall and install) previous deploy ReteooRuleBase is still out there
along with new instance.
Is there a known memory leak in 5.1.1 or do I need to cofigure Spring
differently ? I am attaching config code below.
Env:
Drools 5.1.1
WAS 6.1
JDK 5
<drools:kbase id="kbase1">
<drools:resources>
<drools:resource type="DTABLE"
source="file:/Rules/ruleset1.xls">
<drools:decisiontable-conf input-type='XLS' worksheet-name="Sheet1"/>
</drools:resource>
<drools:resource type="DTABLE"
source="file:/Rules/ruleset2.xls">
<drools:decisiontable-conf input-type='XLS' worksheet-name="Sheet1"/>
</drools:resource>
</drools:resources>
<drools:configuration>
<drools:mbeans enabled="true" />
<drools:event-processing-mode mode="STREAM" />
</drools:configuration>
</drools:kbase>
<drools:ksession kbase="kbase1" type="stateful" id="ksession1"/>
<bean id="rulesService" class = "com.RulesServiceImpl">
<constructor-arg ref="ksession1"/>
</bean>
--
View this message in context: http://drools.46999.n3.nabble.com/org-drools-reteoo-ReteooRuleBase-not-ge...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 11 months
change of Rules Dyanmically
by saurabh maheshwari
HI ,
I want to change rules dynamically , but not want to retract the objects
from memory.
I am using one fact class which is also created dynamically.
is it possible to do this ?
Please help me.
Thanks ,
saurabh
14 years, 11 months
Distributed Knowledge Base
by Abhay B. Chaware
Using Drools Grid, is it possible to distribute rulebases based on category ? e.g. All computer related rules deployed on server A, all school related rules deployed on Server B and then based on which app you are coming from, just return a session handle from that particular server ? In other words, is it possible to load ( and evaluate ) rules based on category in Drools or Drools Grid ?
14 years, 11 months
Reusing rules outside a workflow
by Gerald Klopp
Hello,
- I have a set of rules attached to a workflow using the ruleflow-group
attribute.
I'd like to reuse these rules in another context outside the workflow.
What's the best solution to do this?
- I tried to use rules inheritance with the extends keywords but this
solution is not working as the RHS of the base rule is not executed.
More over, it is not very convenient as new rules have to be created and
maintained.
- Here is a very simple example to illustrate my problem:
I'd like to reuse this rule outside my workflow:
rule "firstNameIsEmpty"
ruleflow-group "validate-person"
when
Person(firstName == null || firstName == "")
then
System.out.println("ERROR : Empty first name");
end
One possible solution would be to create one base rule that could be reused
outside the workflow:
rule "firstNameIsEmpty"
when
Person(firstName == null || firstName == "")
then
System.out.println("ERROR : Empty first name");
end
and another rule for the workflow:
rule "firstNameIsEmptyInRuleFlowGroup" extends "firstNameIsEmpty"
ruleflow-group "validate-person"
when
then
end
But, in this case, the RHS of the base class (System.out) is not executed.
Is there another solution to solve this problem?
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/Reusing-rules-outside-a-workflow-tp2919...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 11 months
Expected relative performance of 5.2
by Nathan Bell
I have a general question about the expected performance of 5.2. In a
system with many facts and many rules what is the expected performance
of 5.2 compared to 5.1. In terms of speed is it expected to perform the
same, better, or worse? And in terms of memory usage is it expected to
be the same, better, or worse? I'm asking because I'm trying to decide
how quickly to switch to 5.2 when it is officially released. If there
are performance gains to be had I'll want to move to it more quickly.
Thanks,
Nathan Bell
14 years, 11 months