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.
10 years, 9 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
10 years, 9 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
10 years, 9 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?
10 years, 9 months
Clarification needed on Workbench
by John Manko
I need some clarification on Workbench.
First, I'd like to use Workbench to allow business analysts create business
rules to manipulate entity classes through the UI. Then, I'd like to
export the rules from Workbench to a rules that will be loaded into our
application for use by our Drools bean. Ifs this possible?
Second, can rules reference EJBs or perform JPA queries?
Thanks.
10 years, 9 months