dialect "mvel" not working in drools template
by himansu.nayak
Hi,
I am trying to use dialect "mvel" in my template and trying to use fields
defined in
my domain object. but not of them are getting access. when i removed dialect
"mvel" then i can accss the fields using the getter's method.
ex:
package com.drools.rules;
dialect "mvel"
.
.
.
when
$admissionObj.Age() > @{Age0} &&
$admissionObj.Age() < @{Age1} // this line throws exception
// the same code works fine if i use getAge() instead of Age() after
removing the dialect "mvel"
-----
Thanks...
Himansu
--
View this message in context: http://drools.46999.n3.nabble.com/dialect-mvel-not-working-in-drools-temp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months
Drools-Compiler depends on Weld in current SNAPSHOT
by LStampf
Hi,
I am currently working with drools SNAPSHOTS because 5.4.0.Final and
5.5.Beta1 are bugged for our application.
We have a problem with the current drools-compiler. The file
drools-compiler/src/main/java/org/drools/cdi/KProjectExtension.java has a
dependency at the concrete weld implementation:
-import
org.jboss.weld.environment.se.discovery.url.ClasspathScanningException;
I guess that is an oversight, since it would bloat applications just for one
Exception class.
kind regards
Lukas Stampf
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Compiler-depends-on-Weld-in-curr...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months
Speeding up Drools
by Phani Saripalli
HI.
I am using declared types in my .drl file. I have a declared type with 1000
fields (using the Drools 5.5. beta, so 1000 fields is allowed). I have 100
rules. However, creating the stateful knowledge base is very slow. It is
taking nearly 8 seconds. Can somebody tell me, suggest how can I speed up
the process?
Briefly, this is how I measured.
long loadI = System.currentTimeMillis();
// load up the knowledge base
KnowledgeBase kbase = readKnowledgeBase();
StatefulKnowledgeSession ksession =
kbase.newStatefulKnowledgeSession();
ksession.setGlobal("cList", new ArrayList<Integer>());
FactType fact = kbase.getFactType("com.sample", "Project");
Object projIns = fact.newInstance();
ksession.insert(projIns);
long loadO = System.currentTimeMillis();
System.out.println("time to load facts : " + ((loadO / 1000.0) -
(loadI / 1000.0)));
ksession.getAgenda().getAgendaGroup("Group Config").setFocus();
ksession.fireAllRules();
ksession.getAgenda().getAgendaGroup("Fact Config").setFocus();
ksession.fireAllRules();
ksession.getAgenda().getAgendaGroup("Group 0").setFocus();
ksession.fireAllRules();
ksession.getAgenda().getAgendaGroup("Group 1").setFocus();
ksession.fireAllRules();
ksession.getAgenda().getAgendaGroup("Group 2").setFocus();
ksession.fireAllRules();
Many thanks
Phani
--
View this message in context: http://drools.46999.n3.nabble.com/Speeding-up-Drools-tp4020132.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months
Drools-Planner consulting on rule-set
by drools@orbit-x.de
Hi,
in drools planner I have built an application that has a rule-set with 6 hard-constraint rules and 6 soft-constraint rules. I am optimizing this rule-set now and then already for a very long time (around 2 years).
Currently I am having difficulty with solving local optima problem for this rule-set and am stuck for 2-3 weeks already without any improvement (I think I am missing some POSITIVE soft constraints to achieve score improvement within short number of steps).
So I would like to ask you, guys, if someone would consult me and help me to unstuck. I would gladly pay for your effort and estimate that approx. 8 man-hours should be enough for a drools rules professional to help me to move on.
If you are interested, please contact me with your quotes.
If we reach an agreement, I will send you domain model and rule-set and then we hold 1-2 phone calls to discuss changes in rule-set and domain model. If you would take a look on rule-set before you quote, please let me know.
Thank you and kind regards
Reinis
13 years, 8 months
Communication Error
by paco
Hello Everybody,
I've this error want I'm verifing my rules with guvnor:
Communication Error. This could be caused because you don't have access to
the remote server, or because your browser is in Offline Mode. Please check
your connection and try again. If the problem persists please contact the
System Administrator.
Somebody can tell me what's the probleme?
Thanks
Paco
--
View this message in context: http://drools.46999.n3.nabble.com/Communication-Error-tp4020102.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months
Drools and Weld dependency ?
by Cristiano Gavião
Hi,
I'm trying to use JBPM 5.4-SNAPSHOT and Drools 5.5-SNAPSHOT in a OSGi env.
drools-compiler's generated manifest has a import package to
org.jboss.weld.environment.se.discovery.url.
Could someone explain me what is this new dependency ? Weld is really
mandatory to drools 5.5 ?
thanks,
Cristiano
13 years, 8 months
Accumulate a on event combinations
by gboro54
We are using expert and fusion to monitor connection events in our system. We
would like to know the most efficient way to know that X number pair of
events have happened in a certain example(i.e eventA and eventB occurred 4
times each in the 5 seconds). What is the most efficient way to do this? I
don't believe an accumulate would allow a combination of objects but I may
be wrong. Perhaps a live query invoked by a rule?
--
View this message in context: http://drools.46999.n3.nabble.com/Accumulate-a-on-event-combinations-tp40...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months
@expires
by gboro54
Based on testing expiring an event does no remove it from working memory.
What is the best way to manage working memory in the case that after a
period of X seconds you want the event removed? Would you simply write a
rule that would do a retract after a certain window i.e
rule "Closed Connection Occured"
when
$e:Event(connectionEventType == ConnectionEventType.CLOSE this after [20s]
this)
then
retract($e);
end
--
View this message in context: http://drools.46999.n3.nabble.com/expires-tp4020117.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months
Error deploying Guvnor 5.4 on Weblogic 10.3.5
by droolist
I am trying to deploy Guvnor 5.4.0 Final on Weblogic Server 10.3.5.
Unzipped guvnor-5.4.0.Final-tomcat-6.0.war and tried to deploy the open
directory.
First, I was getting this error...
ClassNotFoundException: org.jboss.weld.environment.servlet.Listener
So, I got weld-1.1.8.Final and dropped weld-servlet.jar into WEB-INV/lib
After I put this jar, it deployed successfully.
But, when I try to access the page, I am getting this error...
Caused By: java.lang.IllegalStateException: CDI hasn't been properly
started.
Make sure your IDE classpath is in sync with the real maven classpath.
The classpath should include weld-servlet.
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:66)
Has anybody been successful in deploying Guvnor 5.4 on Weblogic 10.3.5?
thanks
--
View this message in context: http://drools.46999.n3.nabble.com/Error-deploying-Guvnor-5-4-on-Weblogic-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months