Re: [rules-users] Annotation @PropertyReactive not works
by Davide Sottara
If I remember correctly this is a known issue. Unfortunately drools 5.6 is final and can't be patched. Downloading the source drl rather than the compiled pkg could be a workaround.
Please let me know if it works
Sent via the ASUS PadFone X, an AT&T 4G LTE smartphone
-------- Original Message --------
From:davidmoros <davidmoros(a)gmail.com>
Sent:Fri, 08 Aug 2014 05:03:29 -0500
To:rules-users@lists.jboss.org
Subject:[rules-users] Annotation @PropertyReactive not works
>I'm developing a system rules with drools, how any novice I found the problem
>of infinite loops, in unitary test I resolved with annotation
>@PropertyReactive and all works fine, until I uploaded my model and rules to
>Guvnor.
>Now I have developed a webservice that download the PKG from Guvnor, with
>change-set and seems that the annotation @PropertyReactive not works because
>of the same rule is reevaluated constantly although the consecuences the
>rule not change the value of attributes of LHS of rule, and infinite loops
>appears....
>The error only occurs when I download the PKG from Guvnor, if I refer the
>file DRL directly all woks fine
>
>Can anybody help me?
>
>I use 5.6.0.Final Version for Drools and Guvnor, Guvnor and my webservice
>are deployed in Tomcat
>
>Thanks in advance
>
>
>
>--
>View this message in context: http://drools.46999.n3.nabble.com/Annotation-PropertyReactive-not-works-t...
>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
10 years, 3 months
Sequential and Decision Tables
by sjrcgtek
Apologies if this is already answered but I could not find it.
Drools Version 6.1.0.Final
I have three Excel DTs which I would like to fire in order. The Sequential
option appears to just order the rules within an excel DT. I confirmed that
by printing the resulting rules and see that the generated rules from
different sheets have the same priority.
I can manually set the PRIORITY in the actual sheets, but that makes
inserting sheets or even lines in a sheet cumbersome.
Is there a way to tell drools to fire all rules across all DT's
sequentially?
Thanks.
--
View this message in context: http://drools.46999.n3.nabble.com/Sequential-and-Decision-Tables-tp403063...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 3 months
Guvnor 5.3.3.Final version is not loading in IE.
by LaKhI ReDdY!!!!!!!!!!!
Hi,
I am facing problem in accessing the guvnor5.3.3.Final in IE. When I access
the Guvnor in IE it just showing the page with "Please wait Application
Loading" and nothing comes after that. Application is working fine in
Firefox and chrome but not working in IE.
I am using the user.agent values as mentioned below.
<set-property name=*"user.agent"* value=*"safari,gecko1_8,ie8,ie9"*/>
Please let me know if there is any workaround needs to be done to access
using IE.
Regards,
Reddy
10 years, 3 months
kie:module/kie:base Question
by mattmadhavan
Hello,
Seems like the only option I have for specifying mu.drl files is via package
nmae as follows:
is there anyway to specify individual .drl files instead of *packeages* ?
Something lke
<kie:kbase name="drl_kiesample3" source="classpath:rules/mydrl.drl">
Please note that I am trying to specify the actual .drl file.
I appreciate in advance!
Thanks
Matt
--
View this message in context: http://drools.46999.n3.nabble.com/kie-module-kie-base-Question-tp4030615....
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 3 months
Mocking Guvnor
by san_hegde
Hi ,
We have requirement where in during functional testing we do not want to connect to Guvnor rather want to mock it.
For example mocking could be like this.
We send Fact object as input during calling knowledgeSession.execute() method and in rule we update the result in that fact object itself. So here can we mock the output fact object, so that during functional testing we no need to connect to Guvnor rather mocked result fact object is returned.
Thank you
Santhosh Hegde A
--
View this message in context: http://drools.46999.n3.nabble.com/Mocking-Guvnor-tp4030601.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 3 months
Drools 5.6.0.Final PKG vs DRL infinite loop
by gboro54
We are using drools 5.6.0.Final and the same version of Guvnor. When we run
the source file of a package from Guvnor everything works as expected. When
we take the same rules and create a package we get stuck in an infinite loop
of rules firing(I have a listener logging every time a rule is
created/fired). Why would there be a difference if the rules don't change
between the source and the pkg?
We build the kbase as follows:
KnowledgeBuilderConfiguration config = KnowledgeBuilderFactory
.newKnowledgeBuilderConfiguration();
config.setOption(PropertySpecificOption.ALWAYS);
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory
.newKnowledgeBuilder(config);
for (ResourcePair pair : pairs) {
/* kbuilder.add(
ResourceFactory.newClassPathResource("rule-sets/2014/feb/"+pair.resourceName),
ResourceType.getResourceType(pair.resourceType));*/
kbuilder.add(
ResourceFactory.newClassPathResource(pair.resourceName),
ResourceType.getResourceType(pair.resourceType));
}
KnowledgeBuilderErrors errors = kbuilder.getErrors();
if (errors.size() > 0) {
StringBuilder sb = new StringBuilder();
for (KnowledgeBuilderError error : errors) {
sb.append(error + "\n");
System.out.println(sb);
}
throw new IllegalArgumentException("Could not parse knowledge.
\n"
+ sb);
}
this.knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase();
this.knowledgeBase
.addKnowledgePackages(kbuilder.getKnowledgePackages());
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-5-6-0-Final-PKG-vs-DRL-infinite-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 3 months
Annotation @PropertyReactive not works
by davidmoros
I'm developing a system rules with drools, how any novice I found the problem
of infinite loops, in unitary test I resolved with annotation
@PropertyReactive and all works fine, until I uploaded my model and rules to
Guvnor.
Now I have developed a webservice that download the PKG from Guvnor, with
change-set and seems that the annotation @PropertyReactive not works because
of the same rule is reevaluated constantly although the consecuences the
rule not change the value of attributes of LHS of rule, and infinite loops
appears....
The error only occurs when I download the PKG from Guvnor, if I refer the
file DRL directly all woks fine
Can anybody help me?
I use 5.6.0.Final Version for Drools and Guvnor, Guvnor and my webservice
are deployed in Tomcat
Thanks in advance
--
View this message in context: http://drools.46999.n3.nabble.com/Annotation-PropertyReactive-not-works-t...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 3 months
.NET WCF unable to deserialize response from Drools Camel Server example 6.2.0 snapshot
by Clark Wilson
Drools, Eclipse, Tomcat, and WCF are all new to me, so I may be missing something obvious. Questions at the bottom, after the problem description.
I deployed the Drools Camel Server WAR file in a Tomcat 7 server I'm running within Eclipse under Windows 7. Using Visual Studio 2013 and System.ServiceModel 4.0.0.0 I generated a client from the WSDL. I fixed a problem with serialization and am getting an error on deserialization. The inner exception says "End element 'return' from namespace 'http://soap.jax.drools.org/' expected. Found text '<'. Line 1, position 189."
The WSDL (obtained from http://127.0.0.1:8080/drools-camel-server-example-6.2.0-SNAPSHOT/kservice... there should be a thing named "return" there.
<xsd:element name="executeResponse" type="tns:executeResponse"/>
<xsd:complexType name="executeResponse">
<xsd:sequence>
<xsd:element name="return" type="xsd:anyType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
I am unable to convince the Visual Studio debugger to show me the text it is trying to deserialize. But a colleague used another tool to get a copy of the message body and it seems in addition to "return" there is a "fact-handle". (This is the weak link in the evidence chain; I didn't redo this today.) (The "Hello:" text is what Drools is indeed sending. I changed the original drl file.)
<?xml version='1.0' encoding='UTF-8'?>
<execution-results>
<result identifier="person1">
<org.drools.server.Message><text>Hello:</text></org.drools.server.Message>
</result>
<fact-handle identifier="person1" external-form="0:1:427239608:427239608:1:DEFAULT:NON_TRAIT"/>
</execution-results>
Question1: Is the fact-handle element likely to be the cause of .NET's deserialization error?
Question 2: If so, what would I do, and where, to fix the problem? Does the WSDL need to be different? Does fact-handle need to be omitted? Does some .NET option need to be changed?
Question 3: If that's not the cause, how can I identify the real problem?
Thanks in advance,
Clark Wilson
10 years, 3 months
google groups
by Mark Proctor
We are in the final stages for the discussions on lists and forums. We are likely to move all lists to google groups, as it provides a unified email list and web forum. There will be three resulting groups, instead of the current two.
Drools Setup - installation, configuration, setup and administration
Drools Usage - authoring (drl, decision tables, score cards rule templates, scenarios) and running.
Drools Development - documentation and coding of the drools project
Theses current two lists will remain and the email address will continue to work for a while. We will attempt to auto-subscribe (i.e. transfer) all existing subscribers. rules-dev people will be subscribed to drools-development. rules-users will be subscribed to both drools-setup and drools-usage - as the current list currently covers both those topics.
If anyone has any feedback, please let us know.
Mark
10 years, 3 months