Preventing re-evaluation on modification of 'output' fact
by Jamie
We're building a fraud detection application that uses rules to analyze
orders and the buyers and recipients on those orders. As rules fire, they
modify an 'output' fact, which is an object whose only intent is to record
the results as rules fire. It's not used in the LHS of any rules other than
to get a handle to it, e.g.:
rule "Rule 001 - Operator Flagged"
enabled (FraudRuleEvaluationHelper.isRuleEnabled("Rule 001 - Operator
Flagged"))
ruleflow-group "orderAnalysis"
lock-on-active
when
$order: OrderFact(operatorFlagged==true)
$results: FraudResultsDTO()
then
modify($results) {
addOrderSuspectReason("O")
};
FraudRuleConsequenceHelper.logRuleFiring($order.getOrderId(), "001");
end
We're finding that as the number of facts increases, the processing team
increases dramatically and I'm wondering if modifying the output fact the
way we do causes the rules to get re-evaluated to see if any activations
should be created or cancelled. Would removing the modify block help
anything? Should we be thinking about this in some other way?
--
View this message in context: http://drools.46999.n3.nabble.com/Preventing-re-evaluation-on-modificatio...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 2 months
Adding a custom logo to Drools Guvnor
by LCode
In previous versions of Drools Guvnor I was able to custom brand the
application by unpacking the drools guvnor war and replacing the header logo
image in the 'images' folder.
In version 5.3 it would appear that the same is still possible since section
16.3. of the documentation reads "The parts you can customize are the style
sheet, the "shortcut icon" and the header logo."
However I cannot find the correct image for the header logo in public
images. The one in org.drools.guvnor.Guvnor\images\hdrlogo_brms.gif is not
the drools header image. Indeed it would seem that I can only replace the
logo by recompiling from source.
Is this a bug or am I missing something obvious?
--
View this message in context: http://drools.46999.n3.nabble.com/Adding-a-custom-logo-to-Drools-Guvnor-t...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 2 months
Guvnor 5.3 : No more "Create New ..." button in "Browse" view ?
by Vincent LEGENDRE
Hi all,
The question is in the subjec :
In 5.2 there was a "create new" button in "browse" panel, which allow business user to create new assets.
In 5.3, no more button ...
Is it on purpose ?
Is it a bug ?
Is there a way to get it back ?
Does it appears only under some conditions ?
14 years, 2 months
Fwd: 5.3.0 Final - Rule using accumulate with windows:length delivers an unexpected result
by Michael Anstis
I'd have to defer to the drools-expert people.. as the problem appears to
be with 5.3.0.Final of drools-expert.
As a reminder, the DRL failing in 5.3.0.Final (or giving different results
to 5.2.0?) is:-
rule "Event Processing Evaluation"
dialect "mvel"
when
$list:java.util.List() from collect( evalEvent(wam == 'D1', f !=
null)over window:length( 1 ))
$average:Double() from accumulate( evalEvent($vf:f) from
$list,average($vf) )
eval($average > 5)
then
internalEvent fact0 = new internalEvent();
fact0.setDesrc( "Internal Event: "+ $average );
insert(fact0 );
end
---------- Forwarded message ----------
From: axel <axel.poeschmann(a)solutions.endress.com>
Date: 14 November 2011 08:16
Subject: Re: [rules-users] Guvnor (5.3.0 Final)- Rule using accumulate with
windows:length delivers an unexpected result
To: rules-users(a)lists.jboss.org
Thanks Mike.
So, now I've included Drools 5.3.0 Final in my Eclipse Drools Project too
and discovered the same problem as in Guvnor with my example. There is a
difference between 5.2.0 Final (works well) and 5.3.0 Final (fails) in my
case.
Is there a major change with event processing with sliding windows or is it
a just bug in the new version?
The DRL between Eclipse and Guvnor is the same, in principle. It means, I
started the project within Guvnor using the build features with the Editor
supporting creating a model in Guvnor and the business rule. These two
files, I couldn't reuse in my Eclipse project 1:1 (I used New File from
Guvnor Ressource in Eclipse for that), failed to compile and even to open
for the brl-file. So, I made the same model as Java Classes and a new DRL in
Eclipse copy the stuff from the Guvnors view source windows adding the
includes for the Java model and adding the Event declaration by hand. By the
way, are there any other hints for that ...
With regards,
Axel
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Guvnor-5-3-0-Final-Rule-usi...
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
14 years, 2 months
Issues with Eclipse Excel Plugin for Drools Decision Tables
by Schlüter Dr. Andreas
Hi all,
I am trying out Drools with JBoss Tooling in Eclipse. Actually, much of it does not work for me, but since there were not many complaints about that, I think it must be due to my missing experience. But now I have a couple of things that seem like bugs to me. (BTW, I mainly use Eclipse 3.7, but I also installed 3.6 to see whether anything is better with that - which generally it isn't. I upgraded Jboss tools to one of the newest nightly builds which I do not like, but only that solved the issue that the rules language dialects could not be found. I am using drools 5.2.0)
I gave up on the Audit trail which always said "The selected audit log is empty..." (but it isn't and this should have been resolved two years ago according to some mails, but I simply avoid using that view).
What bothers me most is that the Excel Plugin shows really erratic behavior in my Eclipse (both versions of eclipse). It opens the Excel file once (I converted to Excel 2003 (*.xls) from my newer version), but on the second time it says "Cannot create the in-place editor Reason: This is probably because there is no OLE editor registered against the type of file you were trying to access" Details say: File does not exist, is not accessible to user or does not have the correct format. result=-2147287008.) Sometimes later on it will work again, sometimes it won't and Excel complains about another Application needing to complete its OLE requests (until I shut it down using task manager since there is no alternative since it does not accept any input anymore). Sometimes even saving changes fails, leaving a corrupt file. Is that common behavior that others experience as well or is it just a local configuration issue? (Usually, I have no issues with my installation and I am not aware of configuring anything apart from using the Eclipse update sites.)
Thanks in advance for any hints,
Andreas
14 years, 2 months
Enabling Role Base Authorization in Guvnor.
by Manohar Kokkula
Hi all,
I am trying to enable the Role Base Authorization in Guvnor after it was
running
fine with the default login mechanism.
But, encountered some problem with the attempt.
I followed given steps:
Step 1:
I exploded guvnor-5.2.0.Final-jboss-as-5.1.war file, got
guvnor-5.2.0.Final-jboss-as-5.1 folder,
in this I located component.xml(guvnor-5.2.0.Final-jboss-as-5.1/WEB-INF/)
What I did was that in the components.xml,
- commented out the default <security:identity
authenticate-method="#{defaultAuthenticator.authenticate}"/>
- uncomment the <security:identity
authenticate-method="#{authenticator.authenticate}"
jaas-config-name="other"/>
- change the role base authorization to true,
<security:role-based-permission-resolver
enable-role-based-authorization="true"/>
Step 2:
And at the login-config.xml from jboss-5.0.0.GA/server/default/conf/
I have changed the "other" application policy to
<application-policy name = "other">
<authentication>
<login-module code =
"org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required" >
<module-option
name="usersProperties">props/guvnor-users.properties</module-option>
<module-option
name="rolesProperties">props/guvnor-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
guvnor-users.properties
admin=admin123
guvnor-roles.properties
admin=admin
Step 3:
At last I created new guvnor-5.2.0.Final-jboss-as-5.1.war file from
guvnor-5.2.0.Final-jboss-as-5.1 folder and deployed the updated war file
into boss-5.0.0.GA/server/default/deploy
At last I am unable to login into BRMS,
I got following error message in Browser,
HTTP Status 404 - /guvnor-5.2.0.Final-jboss-as-5.1/
type Status report
message /guvnor-5.2.0.Final-jboss-as-5.1/
description The requested resource (/guvnor-5.2.0.Final-jboss-as-5.1/) is
not available.
JBoss Web/2.1.1.GA
Please guide me any one.
Thanks and regards
Manohar Kokkula
Mailto: manohar.kokkula(a)tcs.com
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
14 years, 2 months
programming classes to represent domain in Drools like templates
by santiago carbonell
Hi,
I'm new in drools and I'm doing some test with this fantastic engine. With
Drools, I've loaded a drl file with some rules and ran with drools engine
and works perfect, but I got to preset/programming some classes in Java
about the domain where rules worked.
I'd like to load this domain, this "classes" as a file, like drl files, but
insted of rules, I'd like to load classes, or domain, so I'd needn't to
preset/programming this classes in Java.
My question is how can I load this classes in some file, like drl files with
rules? Is like templates in clips.
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/programming-classes-to-represent-domain...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 2 months