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?
11 years, 11 months
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.
11 years, 11 months
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.
11 years, 11 months
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
11 years, 11 months
[Optaplanner] provisioning / scalability
by Mats Norén
Hi,
I have a use case where multiple users need to run multiple simultaneous
solvers.
Is there a best practice in scaling out Optaplanner for multitenancy?
Just to be clear I'm not interested in scaling out a single optimization
run but instead multiple solvers.
So I'm looking for pros and cons for:
- multiple solvers in the same JVM
- multiple JVM:s on a single machine (with multiple solvers)
- multiple machine setup
- virtual machine vs lxc (Docker) vs bare metal
I'm also interested in provisioning of rules etc
Regards,
Mats
11 years, 11 months
How to add entity classes to Workbench?
by John Manko
I downloaded and configured Workbench (Guvnor), and I'd like to add my
entity classes to it in order to create rules to manipulate their data. I
don't see an JAR import function. Is this possible?
11 years, 11 months