Sent: Monday, April 14, 2014 4:08 PM
To: Rules Users List
Subject: Re: [rules-users] Free Form DRL through BRL in guided decision table
You need to use a "Template variable" in the BRL fragment.
ServiceLineStatusInfo( claimStatusCodes contains "@{param}")
On 14 April 2
Does the workbench extended entry guided decision table support this kind of
syntax:
ServiceLineStatusInfo( claimStatusCodes contains "$param" )
Where $param is replaced with the value of the column? When I add that through
New Column->Add a Condition BRL Fragment->Free Form DRL all I get is a c
Behalf Of Michael Anstis
Sent: Friday, March 28, 2014 1:30 PM
To: Rules Users List
Subject: Re: [rules-users] Error Creating New project
What is "with the merged deployment changes"?
On 28 March 2014 19:28, Joe White
mailto:joe.wh...@recondotech.com>> wrote:
I received this err
I received this error in the drools workbench when creating a new project:
Unable to complete your request. The following exception occurred:
java.lang.NoSuchMethodError:org.guvnor.common.services.project.events.NewProjectEvent.(Lorg/guvnor/common/services/project/model/Project;Lorg/uberfire/rpc/
I haven't tried ranges myself. I know for sure SNAPSHOTS work. I think you may
need a bracket at the end of your range definitions. Like:
releaseId = kieServices.newReleaseId("com.xyz.policy","cep", "[1.0-10.0]");
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rule
: rules-users@lists.jboss.org
Subject: Re: [rules-users] BuildError: Unable to Analyse Expression BUT
WORKING, how can I remove error
Hi Joe,
The eclipse is working and I inserted "-Ddrools.dialect.mvel.strict = "
but the error still popping up.
Return type is String.
Thank you for your
Try a version range or a SNAPSHOT. LATEST doesn't work in 6.0.1 for the
scanner.
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of SrjTx
Sent: Wednesday, March 26, 2014 2:27 PM
To: rules-users@lists.jboss.org
Subject:
t
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
drools.dialect.mvel.strict =
From: Joe White-3 [via Drools] [m
I haven't done it in a long time but I think you have to disable strict mode in
your eclipse ini file
>From the docs:
drools.dialect.mvel.strict =
I can't swear that will work though. What does getProviderClaimNumber return?
Does it actually have a getValue() method?
From: rules-users-boun..
error
BuildError: Unable to resolve ObjectType 'TClaim'
[http://drools.46999.n3.nabble.com/attachment/4028969/0/image001.png]
From: Joe White-3 [via Drools] [mailto:ml-node+[hidden
email]]
Sent: Wednesday, March 26, 2014 1:48 PM
To: Gopu Shrestha
Subject: Re: [rules-users] inser
You're inserting an object of type "TClaim" but your rule is written against
"Claim". Change your rule to TClaim and maybe it will work.
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Gopu Shrestha
Sent: Wednesday, March 26, 2014 11:40 AM
To:
ts an install and deploy. GuvnorM2Repository in the guvnor
project is the class (IIRC).
Sent on the move
On 20 Mar 2014 21:47, "Joe White"
mailto:joe.wh...@recondotech.com>> wrote:
In fact, if I manually go into the guvnor repository, copy the pom.xml directly
from the workbench, and
ng "deploy" or just "install" ? Where in the
code would be a good starting point to dig a little deeper on this?
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Joe White
Sent: Thursday, March 20, 2014 3:15 PM
To: Rules Users
at depends how you're configuring your project's distribution management.
Adding (I assume) your remote to the repositories section is only telling maven
a remote to query to *download* artifacts.
Sent on the move
On 20 Mar 2014 20:41, "Joe White"
mailto:joe.wh...@recondote
0 Mar 2014 18:03, "Joe White"
mailto:joe.wh...@recondotech.com>> wrote:
Also, that is the same configuration that is in my settings.xml for my
installed maven instance and the profile is active.
From:
rules-users-boun...@lists.jboss.org<mailto:rules-users-boun...@lists.jboss.o
Also, that is the same configuration that is in my settings.xml for my
installed maven instance and the profile is active.
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Joe White
Sent: Thursday, March 20, 2014 12:01 PM
To: Rules Users List
Repo config inside the deployed pom:
recondo-repo
papaafrepo001-releases
http://papaafrepo001.recondo.vci:8081/artifactory/repo
Joe White
CIO Technology Enabled Services
303-974-2849 (Office)
720-232-9023 (Cell)
___
r
You have to create a new session. Only new sessions will have the updated
kmodule information.
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of SrjTx
Sent: Thursday, March 20, 2014 10:38 AM
To: rules-users@lists.jboss
Then you are set. I'm pretty sure that the LATEST feature is enabled in the 6.1
release so you might try the beta if you need it.
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of SrjTx
Sent: Wednesday, March 19, 2014 3
;ll give it a poke and see what's the problem.
Sent on the move
On 19 Mar 2014 19:40, "Joe White"
mailto:joe.wh...@recondotech.com>> wrote:
Hey Mike,
I'll try to reproduce again so that I can provide details before opening the
Jira. It wasn't specifically related
I believe it pulls from however your maven install is configured. Make sure
you've got the M2_HOME env variable set and pointed to your maven install. And
then it should pull from whatever you have in settings.xml in maven for your
repositories.
I also have MAVEN_HOME set to the same path as M2
the move
On 19 Mar 2014 16:28, "Michael Anstis"
mailto:michael.ans...@gmail.com>> wrote:
Are the types in the same package as the guided decision table?
You'll need to import them ("Config" tab) if they're not.
On 19 March 2014 16:02, Joe White
mailto:joe.wh..
Have you tried it with a version other than LATEST? I think that there was a
bug that was fixed in 6.1 that prevented the latest keyword from working
correctly. Try a SNAPSHOT or a version range.
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@li
le in Guided DT
That is strange.
Can you provide steps to reproduce? Have you tried 6.1.0.Beta1?
Sent on the move
On 18 Mar 2014 22:30, "Joe White"
mailto:joe.wh...@recondotech.com>> wrote:
In the workbench has anybody seen a case where you can create a decision table
with the
se?
Sent on the move
On 13 Mar 2014 20:57, "Joe White"
mailto:joe.wh...@recondotech.com>> wrote:
I get it for any jar where the WB doesn't seen the pom and I have to enter the
artifact information manually.
Running on tomcat.
From:
rules-users-boun...@lists.jboss.org<ma
Rules Users List
Subject: Re: [rules-users] Pojo with spring dependency in DWB
Nice ;-)
Do you get that error when uploading any JAR to the maven repository? What
application server is this?
Sent on the move
On 13 Mar 2014 20:27, "Joe White"
mailto:joe.wh...@recondotech.com>>
ncy chains.
Sent on the move
On 13 Mar 2014 19:42, "Joe White"
mailto:joe.wh...@recondotech.com>> wrote:
Here is a better more complete stack trace:
Exception in thread "pool-9-thread-8" java.lang.NoClassDefFoundError: javax/pers
istence/EntityMan
able to achieve is handle the exception better in
the workbench code. We can't do much about dependency chains.
Sent on the move
On 13 Mar 2014 19:42, "Joe White"
mailto:joe.wh...@recondotech.com>> wrote:
Here is a better more complete stack trace:
Exception in thread "poo
at
org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder$3.run(ResourceChangeIncrementalBuilder.java:214)
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Joe White
Sent: Thursday, March 13, 2014 1:24 PM
To: Rules Users List
Subject: [r
What is the best way to import a jar that has a spring dependency into the
Drools Workbench? When I upload my pojos that I intend use in my rules I get
the exception below. Do I also need to load the spring jars for this to work or
is it not possible?
Specifically I need my rules objects to hav
This is just an FYI for drools users. When deploying an EAR to Glassfish 4 we
received an exception about Weld dependency injection.
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied
dependencies for type [Injector] with qualifiers [@Default] at injection point
[[BackedAnno
r nic?
On 6 March 2014 15:58, Joe White
mailto:joe.wh...@recondotech.com>> wrote:
Maybe we can chat about it sometime in IRC. There is a chance I'll be able to
get some dev effort on something like that in Q2 that we could contribute back
(no promises though). Ping me if you have a minut
14 15:08, Joe White
mailto:joe.wh...@recondotech.com>> wrote:
On the topic of #7.
We are just adopting the Drools 6.x setup to achieve the goal you mention of
business users creating and deploying business rules on their own.
The challenge is allowing your users to deploy in a targeted way sin
On the topic of #7.
We are just adopting the Drools 6.x setup to achieve the goal you mention of
business users creating and deploying business rules on their own.
The challenge is allowing your users to deploy in a targeted way since the
drools workbench (DWB) doesn't have the concept of a dep
We are starting to take a look at using the KIE workbench to expose some
decision tables to our users. The original idea is to use generated java from a
proto buffer schema as the model. I've got the jar building and imported into
KIE. The challenge I'm running into is that the proto buff java d
n Behalf Of Wolfgang Laun
Sent: Friday, May 25, 2012 1:40 PM
To: Rules Users List
Subject: Re: [rules-users] Disabling strict mode in 5.4
On 25/05/2012, Joe White wrote:
> The exception below is one of thousands like it. The problem is that
the
> data is coming from a Map and in strict mode
, the problem might be in the rule. Show?
-W
On 25/05/2012, Joe White wrote:
> How do you disable strict mode in 5.4? We are using the code below and
> getting strict mode exceptions. It worked in prior versions. Do you
have
> to use the new APIs to disable strict mode?
>
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Kang Heng WU
Sent: Friday, May 25, 2012 1:24 AM
To: rules-users@lists.jboss.org
Subject: [rules-users] Memory Control
Hi All,
The performance of JBoss Expert and Fusion
How do you disable strict mode in 5.4? We are using the code below and
getting strict mode exceptions. It worked in prior versions. Do you have
to use the new APIs to disable strict mode?
PackageBuilderConfiguration pkgBuilderCfg = new
PackageBuilderConfiguration();
MVELDialectConfiguration
We have encountered a problem with a lock getting generated on an
AbstractRuleBase and then never released causing new threads to not be
able to execute in that RuleBase. We are on an older version 5.0.1 of
Drools and are working on creating a unit test that we can use to see if
the defect exists i
I got it to work in mvel. You need to pass the second argument as an
mvel array (note the curly braces) for it to recognize the method
signature.
Here is a rule that works for me:
import java.util.Map;
import java.util.ArrayList;
import java.util.List;
import java.lang.String;
import c
What error do you get in the rule or does it just not format correctly?
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Dean Whisnant
Sent: Friday, August 19, 2011 8:51 AM
To: Rules Users List
Subject: [rules-users] String.format question in t
Why would you need to do that? This flow is logically the same.
rule "my rule"
when
...
then
//Java code to modify fact goes here
insert( fact );
end
Joe
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-b
I'm 100% with Edson on this one.
Requiring explicit syntax, whether via null checks or .?, can have a
big impact on the clarity and level of declarativeness (word?) of a
given ruleset. It also makes it a great deal harder to develop DSLs and
systems to put rules into the hands of non-develope
Check your version of spring. Camel 2.7 requires Spring 3.x
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Andre
Sent: Tuesday, July 19, 2011 8:07 AM
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Drools In
().getDialectConfiguration(
"mvel" );
conf.setStrict(false);
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Joe White
Sent: Friday, June 17, 2011 10:13 AM
To: Rules Users List
Subject: Re: [rules-use
nitialized. Setting it via a system
property will only work one time after that it is cached in the confi.
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Joe White
Sent: Thursday, June 16, 2011 11:49 AM
To: Rules
Can you try adding an explicit cast for the result of the hashMap on the RHS.
Would be a workaround for now. I'm working on a test for scrict mode in 5.2.
So your RHS would be something like:
actuator.writeOutput(kcontext, (MyObj)hashMap.get($event.userId));
-Original Messag
It is a bit dated now (we're on 5.0.1) but this works on that release:
FileOutputStream fos = new
FileOutputStream(drlcFile);
ObjectOutputStream oos = new
ObjectOutputStream(fos);
oos.writeObject(p
Can you paste the rule that is failing? I'll see if I can create a unit test in
drools to see if we can reproduce it and open a Jira for it.
Joe
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Nicolás Sanchez
Sent: W
I'm not sure how to do it in spring but I know you can set it with an argument
to the jvm.
-Ddrools.dialect.mvel.strict=false
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Nicolás Sanchez
Sent: Tuesday, June 14, 2011 1:10 PM
To:
If you cast $b on the RHS it will probably work. We've had to do this in
the past for rules like this.
then:
Test fact = new Test();
Book rhsBook = (Book)$b;
fact.getList().addAll( rhsBook.authors );
insert(fact);
end
From: rules-users-boun...@lists.jboss.org
[mailto:rules-user
you are still using the old API (method
addPackageFromDRL())... does the new API make any difference? Also, I
know Tihomir was improving perf in trunk by caching the configuration
file... did you tried trunk? Does it make difference for you?
Edson
2011/1/13 Joe White
For a large rulebas
For a large rulebase (200k+ rules) will the call to
addPackageFromDrl(drlString) run faster if the number of rules is
smaller but the rules include more || statements between predicates?
There is only one type of object ever inserted in working memory and I
have many rules with the same RHS. I
In the case below you don't need to iterate manually. You can use the
"contains" LHS element. Take a look at the manual and you will see it. Or you
can insert your List directly and use the "from" LHS element
Using from it might look like:
rule "test"
when
String(this=="10") //<--The t
Phil,
Take a look at the manual and look for the "forall" LHS conditional element if
you can pass all of your objects individually. Or if you must pass your items
into WM as a List then take a look at the "collect" LHS element examples.
In your example if you wanted to say "All Golfers have red
Vanshi,
In general it would be better to put all of the rules together in the
same drl file as they all relate to the same object and are all destined
for the same rule base. Though there is nothing fundamentally incorrect
about your approach in most cases you want related rules to managed and
depl
Maxim,
Depending on your use case you may be able to disable shadow facts in your
Drools 4 instance. See the manual on when it is ok/not-ok to disable shadow
facts. Based on your description it probably is acceptable for your uses.
Disabling shadow facts may improve your performance, the manual
Keith,
If you're using the Java dialect try this syntax
Try this syntax:
JavaDialectConfiguration javaConf = (JavaDialectConfiguration)
pkgBuilderCfg.getDialectConfiguration( "java" );
javaConf.setCompiler( JavaDialectConfiguration.JANINO );
PackageBuilder builder = new Pa
Maxim,
Are the classes you are trying to reference multiple levels of inner classes?
Drools 4 cannot reference nested inner classes in drl. That issue is fixed in
the release for drools 5.
Joe
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maxim Veksler
Sent: Monday, Nove
, 2008 at 9:17 AM, Joe White <[EMAIL PROTECTED]>
wrote:
You need no-loop on the rules because of the call to "modify(s)" .
Modify changes the fact in working memory and the engine is
automatically notified of the changes at the end of the modify block.
After modify the same rule could
You need no-loop on the rules because of the call to "modify(s)" .
Modify changes the fact in working memory and the engine is
automatically notified of the changes at the end of the modify block.
After modify the same rule could hit again as the conditions are still
true.
The first rule doesn
Another way to do it is a combination of salience and retraction. The
parent rule would have a higher salience value and then retract the
facts in its consequence
Joe
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Greg Barton
Sent: Thursday, October 30,
I agree with Michael that web apps lib is the best scenario. We
provision ours in an ear directly. I should qualify that though in that
we use a third party project along with Drools and Jboss that leads us
to put other jars in an ear.
I believe the most important thing is to be consistent in term
We use JBoss and put them in an EAR and it works fine. Probably best to
treat the Drools jars the same as the rest of your third party
dependencies.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dan Seaver
Sent: Monday, October 27, 2008 2:57 PM
To: rule
Devendra,
I would recommend using a DSL for to help with the user friendliness of
fields. We're currently adding the ability to add Date Selectors to DSL
statements so that the business user can use the nice calendar picker to
select dates. There may be a way to do what you mention below with the
The drl test case below illustrates a problem with math inside of drools
when using the mvel dialect. When using autoboxing the order of
operations (and parens) are not respected. This is using drools 5.0M1
and mvel-2.0-dp4.jar. The correct answer is 80 and the answer provided
with autoboxing in t
To: Rules Users List
Subject: Re: [rules-users] Max packages
Joe White wrote:
Can someone help me understand the relationship between the number of
Packages in a single RuleBase and PermGen memory consumption? I have a
test that generates 200 rules and then adds those rules as different
packa
Can someone help me understand the relationship between the number of
Packages in a single RuleBase and PermGen memory consumption? I have a
test that generates 200 rules and then adds those rules as different
packages to a single rule base. PermGen consumption grows near linearly
with the additio
HI all,
We've got an application that has the need to deploy dynamically
generated drl periodically. The drl is regenerated from a set of
database tables whenever a change is made to the tables. After running
through the generation and package building we eventually get an out of
memory error for
I'm not enough of an expert to say why, but if you change your condition to put
the variable on the left of the comparison and the numeric operation on the
right then it will work. For example:
flight : Flight( $reqTime>(departure.time - 2 *
360),$reqTime>(departure.time + 4 * 36000
A word of caution on this topic. It looks like drools 4.0.4 works great
with janino2.5.10 which drools comes packaged with, but does not work
with janino2.5.13 (the latest release).
Joe
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joe White
Sent: Thursday, April 10, 2008
k I'm guessing it's a bug with Janino. You could probably recreate
the issue outside of Drools and submit a bug to the Janino author.
Mark
Joe White wrote:
According to the Janino Jira in
http://jira.codehaus.org/browse/JANINO-72 autoboxing was supported in
version 2.5.6. It looks like dr
According to the Janino Jira in
http://jira.codehaus.org/browse/JANINO-72 autoboxing was supported in
version 2.5.6. It looks like drools 4.0.4 uses Janino 2.5.10. The test
below uses a DRL file that would require autoboxing and it produces a
runtime exception from Janino. Does anybody know of a wa
of operations
Hi Joe,
It seems someone skipped the elementary math lessons at school... :(
Will open a JIRA for that.
[]s
Edson
2008/4/9 Joe White <[EMAIL PROTECTED]>:
I have a question regarding order of operations in the consequence of a
rule when using the mvel diale
I have a question regarding order of operations in the consequence of a
rule when using the mvel dialect. When executed the Drl below provides
Right =30.0 and Wrong =140.0. The only difference is the parens around
the multiplying expressions, which shouldn't be necessary given order of
operations.
We have a rule package with a target platform of a JBoss server. Based
on the recommendation at
http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesTomcat we changed the
package config to use the JavaDialectConfiguration.JANINO compiler.
However, when trying to load the package with the janino compiler w
77 matches
Mail list logo