Incremental working memory synchronization
by Ievgenii
Hello all,
The question is -
We have 2 nodes of drools working memory and one is active second is
passive. Currently the persistence and synchronization is triggered on each
change in working memory and if this memory has lots of facts - we have huge
bottleneck with serialization of whole memory into single stream. Is there a
way/plans to implement incremental sync of two drools nodes?
Best regards,
Ievgenii Drozd
--
View this message in context: http://drools.46999.n3.nabble.com/Incremental-working-memory-synchronizat...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Drools fusion
by Raja Sekhar
Hi All,
How can i perform aggregation on group with drools fusion.
Regards,
Raja Sekhar A
--
Raja Sekhar Amirapu
------------------------------------------------------
"If any anyone can do it, i can do it. If no one else can do it, i must do
it"
12 years
Drools : 2 identical calls to the same knowledgeBase don't give the same result… why?
by antoine
Hello,
I've faced some weird result using Drools 5.5.0.Final, and I would like to
know if I am doing something wrong ?
I am using drools to process some user rules (the Excel way). If I call the
rules with the exact same data at different time in the process, I don't get
the same result. (I am using a StateLessSession)
After digging a bit more, I managed to extract a very simple maven-based
unit-test to reproduce the problem. (the archive can be downloaded here :
http://www.filedropper.com/using-drools
<http://www.filedropper.com/using-drools> )
In fact, I call many times to execute the same rule, and after the 23rd
times I don't get the same expected result :
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "classpath:status-rules-config.xml" })
public class StatusRuleTest {
@Autowired StatusRule ruleRunner;
@Test public void do_not_work_at_25th_call() throws Exception {
for(int i = 0 ; i < 35 ; i++){
MyFact fact = new MyFact();
assertThat(fact.getStatus()).isEqualTo("NONE");
ruleRunner.defineStatus(fact);
assertThat(fact.getStatus()).isEqualTo("DONE");
}
}
}
with rule definition as :
public class StatusRuleImpl implements StatusRule {
@Setter private StatelessKnowledgeSession ksessionStatus;
@Override
public void defineStatus(MyFact myFact) {
ksessionStatus.addEventListener(new DebugAgendaEventListener() );
ksessionStatus.addEventListener(new
DebugWorkingMemoryEventListener());
ksessionStatus.execute(myFact);
}
}
It uses a statelessSession, with sequential mode and ACTIVATION-GROUP
column.
I also posted more details and more logs here :
http://stackoverflow.com/questions/21585666/drools-2-identical-calls-to-t...
<http://stackoverflow.com/questions/21585666/drools-2-identical-calls-to-t...>
>From what I checked, it might be coming from the negative BigDecimal (If I
change it to 10 in both of the code and the Excel, it seems to work)
If someone has an Idea, I will be pleased to read it !
Thanks in advance,
Antoine
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-2-identical-calls-to-the-same-kn...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Deploying pre-compiled rules files with maven?
by Scott Thibault
I thought when you used the maven plugin that the rules files were compiled
into a binary form so that you could deploy with a minimal set of
dependencies. It's not working for me though. This is my pom.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie</groupId>
<artifactId>kie-parent-with-dependencies</artifactId>
<version>6.0.1.Final</version>
<!-- relativePath causes out-of-date problems on hudson slaves -->
<!--<relativePath>../droolsjbpm-build-bootstrap/pom.xml</relativePath>-->
</parent>
<packaging>kjar</packaging>
<artifactId>default-kiesession</artifactId>
<name>Drools API examples - Default KieSession</name>
<dependencies>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<version>6.0.1.Final</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<repositories>
<!-- Bootstrap repository to locate the parent pom when the parent
pom has not been build locally. -->
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
</snapshots>
</repository>
</repositories>
<scm>
<connection>scm:git:git@github.com:droolsjbpm/drools.git</connection>
<developerConnection>scm:git:git@github.com:droolsjbpm/drools.git</developerConnection>
<url>https://github.com/droolsjbpm/drools</url>
</scm>
</project>
I build with the mvn package command. The resulting jar file isn't any
different then when not using the plugin. When I try to execute the code I
get the error:
The Eclipse JDT Core jar is not in the classpath
Any suggestions?
12 years
Simple ruleflow and java conditionExpression example
by mattmadhavan
Hello,
I have the following requirements.
I have 3 stages of rule-flow group execution.
1. Set of rules to evaluate validation (ruleflow-group "Validation Group")
2. Set of rules to evaluate eligibility (ruleflow-group "Eligibility Group")
3. Set of rules to compute Cancer Measures (ruleflow-group "MeasureCompute
Group");
Validation group will collect all the Validation errors to be saved. After
this group is executed I want to write a* Java condition* to see if any
validation errors present. If they are exit. If not continue to
ruleflow-group Eligibility. Test again after the rules are fired using a
java condition. And so on.
<http://drools.46999.n3.nabble.com/file/n4028039/ruleflow.png>
Can some one please provide me a sample? I am not too keen on too much JBPM
stuff now - Just a simple sample will suffice!
I thank you in advance!
Thanks
Matt
--
View this message in context: http://drools.46999.n3.nabble.com/Simple-ruleflow-and-java-conditionExpre...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
6.0.1.F Guided Rule makes all argument types strings
by SrjTx
I have a global class foo with method bar(int x, int y, string s);
I added it to a globals file as alias x.
In a then in an rdrl, I can select call a method on x, so I choose
bar. I get 3 text boxes
int[ ]
int[ ]
string[ ]
And I fill in
int[3 ]
int[8 ]
string[Hi ]
The resulting source is x.bar("3", "8", "Hi") - which fails validation
because the first two are supposed to be ints. Do you enter ints
differently? Or, is this a bug?
Also note that a space is always a;ready in the text boxes so you have to
delete it first. If you just start typeing hi, you will get the value " Hi"
--
View this message in context: http://drools.46999.n3.nabble.com/6-0-1-F-Guided-Rule-makes-all-argument-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Guvnor JCR repository
by Demian Calcaprina
Hi Guys,
I am using Guvnor 5.5. For moving packages between environments, I am doing
an export, and then import in the new package. I have a lof of assets in
each package. I am using the DB storage for the jcr repository.
After some months, the DB has grown a LOT! (like 3.5GB).
Is there a way regularly clean the JCR history, or maybe disable JCR
history as we are not using it at all?
These are the steps I did to remove the history and seems to work fine.
Does is seem safe? Is there a better way?
1. Export the entire repository via guvor.
2. Delete all the packages.
3. Stop tomact
4. "truncate" the following guvnor tables:
a. Pm_ws_default_binval
b. Pm_ws_default_bundel
c. Versioning_pm_binval
d. Versioning_pm_bundle
5. Restated tomcat
6. Import what I exported on step #1
Thanks!
Demian
12 years