How to tell if rule is using eval internally
by Jared Davis
How do you tell if a rule is using eval() without access to Eclipse?
The documentation states certain nested accessors will be re-written into eval
statements.
Regards,
16 years
Unable to create Field Extractor
by Hugo Melendez
Hi, I'm using JBoss Rules 4.0.7
and I having this error when executing some rules.
org.drools.RuntimeDroolsException: org.drools.RuntimeDroolsException:
java.lang.IllegalStateException: Error in getting field access
method.Unableto create Field Extractor for 'codigoPlan' of
'[ClassObjectType
class=com.sample.Afiliado]'
The Afiliado class has a getCodigoPlan() public getter to a codigoPlan
field.
The rule is:
rule
when
socio : Afiliado( $codigoPlan: codigoPlan != null );
then
System.…
[View More]out.println( $codigoPlan );
end
I check the manuals and mail lists and everyone has issues with getters.
That's no my case I think.
Any ideas of what's happen ?
Regards,
--
Hugo
[View Less]
16 years
Guvnor Audit Logging
by Anu@work
Hi,
Thx to the drools community. I was able to install and run Guvnor 5 CR1 and
Drools Execution Server 5 on Tomcat (Ubuntu) fairly easily. And it works
like magic. I followed the steps below to get my rules running on Guvnor and
execution server after installation
1. created category
2. created package
3. declared model
4. created decision table
5. saved and validated package
6. deployed a snapshot
7. created myrule.properties file with the snapshot URL exported by Guvnor
and put it in the …
[View More]server
8. Ran tests from rails client using JSON.
It all ran perfectly. Now I need to log all input facts and output facts and
the rules fired each time a client posts a request to the execution server.
How do I do that?
Please help.
Thx,
Anu
--
View this message in context: http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22690776.html
Sent from the drools - user mailing list archive at Nabble.com.
[View Less]
16 years
How to add more knowledge to Stateful session, post start-up
by john.shepherdson@bt.com
At present I set up a ksession like this:
KnowledgeBase kbase = < call method that loads several rule files and
process flow files via
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages()) >
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
Then I set globals, start one of the processes, assert facts, fire rules
etc etc
Later on rules fire that start some or all of the remaining pre-loaded
processes, as required
Is the best way to do it? Instead should I …
[View More]be loading additional rule
and/or process files in to the ksession on the fly, rather than at the
beginning, for performance/scalability reasons? (I couldn't work out how
to do this without overwriting ksession).
Thanks in anticipation,
John Shepherdson
[View Less]
16 years
Compiles in 4.07 not in 5.0 Snapshot (3/20)
by Jared Davis
Hi,
This rule (not the best style) compiles fine in 4.07. It gives this error
message using 5.0 Snapshot. I changed some of the text to be generic so I could
post the code.
Rule Compilation error : [Rule name='A.B.inlet.mxb.first.link.20090216.01']
com/zzzzzz/yyy/awl/Rule_A_B_inlet_mxb_first_link_20090216_01_0.java
(11:5517) : The method insert(RuleLink) is undefined for the type
Rule_A_B_inlet_mxb_first_link_20090216_01_0
Here is the rule: (I had to change all the > to . to get …
[View More]gmane to accept the
email as a non top post)
rule "A.B.inlet.mxb.first.link.20090216.01"
agenda-group "A.B"
when
. comp : XComponentRule( path == "~unit~mxb")
then
. Point3d l = new Point3d();
. comp.getBounds().getLower(l);
. if (l.x < 1) {
. insert( new RuleLink("FIRST.INLET" , comp, comp) );
. } else {
. insert( new RuleLink("FIRST.INLET.NOT" , comp, comp) );
. }
.
end
If I change the rule to
rule "A.B.inlet.mxb.first.link.20090216.01"
agenda-group "A.B"
when
. comp : XComponentRule( path == "~unit~mxb")
then
. Point3d l = new Point3d();
. comp.getBounds().getLower(l);
. String name = "FIRST.INLET";
. if (l.x < 1) {
. // nothing
. } else {
. name = "FIRST.INLET.NOT";
. }
. insert( new RuleLink(name , comp, comp) );
.
end
it compiles w/o a problem.
[View Less]
16 years
Returned mail: Data format error
by Mail Administrator
This message was not delivered due to the following reason:
Your message could not be delivered because the destination computer was
unreachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.
Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.
Your message was not delivered within 8 …
[View More]days:
Server 217.74.13.216 is not responding.
The following recipients could not receive this message:
<rules-users(a)lists.jboss.org>
Please reply to postmaster(a)lists.jboss.org
if you feel this message to be in error.
[View Less]
16 years
Need Help
by yash kapoor
Hi All, How can I navigate among rules like call from rule 1 to
rule 2
rule "Memory reader_{row.rowNumber}"
when
memory:BenchMarkRulesModel()
then
if((a){workload}==memory.getWorkload())
//something
else
jump to rule Memory writer_{row.rowNumber}
end
rule "Memory writer_{row.rowNumber}"
when
then
end
16 years
Scenarios
by J Michael Dean
Scenarios are very slick on Guvnor - is there a way to either create
or execute these in Eclipse?
Thanks.
- Mike
16 years