Re: [rules-users] Free Form DRL through BRL in guided decision table

2014-04-14 Thread Joe White
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

[rules-users] Free Form DRL through BRL in guided decision table

2014-04-14 Thread Joe White
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

Re: [rules-users] Error Creating New project

2014-03-28 Thread Joe White
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

[rules-users] Error Creating New project

2014-03-28 Thread Joe White
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/

Re: [rules-users] 6.0.1.F Need help in getting recanned rules into new session

2014-03-26 Thread Joe White
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

Re: [rules-users] BuildError: Unable to Analyse Expression BUT WORKING, how can I remove error

2014-03-26 Thread Joe White
: 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

Re: [rules-users] 6.0.1.F Need help in getting recanned rules into new session

2014-03-26 Thread Joe White
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:

Re: [rules-users] BuildError: Unable to Analyse Expression BUT WORKING, how can I remove error

2014-03-26 Thread Joe White
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

Re: [rules-users] BuildError: Unable to Analyse Expression BUT WORKING, how can I remove error

2014-03-26 Thread Joe White
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..

Re: [rules-users] inserted object now working

2014-03-26 Thread Joe White
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

Re: [rules-users] inserted object now working

2014-03-26 Thread Joe White
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:

Re: [rules-users] Updating project repositories

2014-03-20 Thread Joe White
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

Re: [rules-users] Updating project repositories

2014-03-20 Thread Joe White
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

Re: [rules-users] Updating project repositories

2014-03-20 Thread Joe White
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

Re: [rules-users] Updating project repositories

2014-03-20 Thread Joe White
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

Re: [rules-users] Updating project repositories

2014-03-20 Thread Joe White
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

[rules-users] Updating project repositories

2014-03-20 Thread Joe White
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

Re: [rules-users] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-20 Thread Joe White
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

Re: [rules-users] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-19 Thread Joe White
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

Re: [rules-users] Pojos not visible in Guided DT

2014-03-19 Thread Joe White
;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

Re: [rules-users] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-19 Thread Joe White
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

Re: [rules-users] Pojos not visible in Guided DT

2014-03-19 Thread Joe White
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..

Re: [rules-users] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-19 Thread Joe White
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

Re: [rules-users] Pojos not visible in Guided DT

2014-03-19 Thread Joe White
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

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
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

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
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>>

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
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

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
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

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
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

[rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
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

[rules-users] Drools in Glassfish 4 Ear

2014-03-06 Thread Joe White
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

Re: [rules-users] Some basic questions/assumptions on Drools Work-bench/Guvnor

2014-03-06 Thread Joe White
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

Re: [rules-users] Some basic questions/assumptions on Drools Work-bench/Guvnor

2014-03-06 Thread Joe White
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

Re: [rules-users] Some basic questions/assumptions on Drools Work-bench/Guvnor

2014-03-06 Thread Joe White
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

[rules-users] Proto Buf generated code and KIE

2014-02-17 Thread Joe White
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

Re: [rules-users] Disabling strict mode in 5.4

2012-05-25 Thread Joe White
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

Re: [rules-users] Disabling strict mode in 5.4

2012-05-25 Thread Joe White
, 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? >

Re: [rules-users] Memory Control

2012-05-25 Thread Joe White
-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

[rules-users] Disabling strict mode in 5.4

2012-05-25 Thread Joe White
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

[rules-users] Rulebase locking

2012-01-12 Thread Joe White
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

Re: [rules-users] String.format question in the RHS

2011-08-19 Thread Joe White
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

Re: [rules-users] String.format question in the RHS

2011-08-19 Thread Joe White
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

Re: [rules-users] Possibly stupid question... but I have to ask

2011-07-28 Thread Joe White
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

Re: [rules-users] Condition syntax to access Map

2011-07-28 Thread Joe White
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

Re: [rules-users] Drools Integration for which Camel Version?

2011-07-19 Thread Joe White
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

Re: [rules-users] How to the set"drools.dialect.mvel.strict"usingDrools+Spring?

2011-06-17 Thread Joe White
().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

Re: [rules-users] How to the set "drools.dialect.mvel.strict"usingDrools+Spring?

2011-06-17 Thread Joe White
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

Re: [rules-users] How to the set "drools.dialect.mvel.strict" usingDrools+Spring?

2011-06-16 Thread Joe White
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

Re: [rules-users] KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage

2011-06-16 Thread Joe White
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

Re: [rules-users] How to the set "drools.dialect.mvel.strict" usingDrools+Spring?

2011-06-15 Thread Joe White
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

Re: [rules-users] How to the set "drools.dialect.mvel.strict" usingDrools+Spring?

2011-06-14 Thread Joe White
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:

Re: [rules-users] list operations in "then" part

2011-06-02 Thread Joe White
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

Re: [rules-users] large rulebase load time

2011-01-13 Thread Joe White
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

[rules-users] large rulebase load time

2011-01-13 Thread Joe White
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

RE: [rules-users] foreach in drl file

2009-02-16 Thread Joe White
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

RE: [rules-users] foreach in drl file

2009-02-16 Thread Joe White
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

RE: [rules-users] DRL package builder or rule base error

2008-11-21 Thread Joe White
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

RE: [rules-users] Drools 4 performs slower then Drools 3 - Help on .drlfile adaptation

2008-11-19 Thread Joe White
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

RE: [rules-users] PackageBuilderConfigurations and RuleFlows Drools 5

2008-11-19 Thread Joe White
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

RE: [rules-users] (interesting) migration problem from Drools 3.0.6 toDrools 4.0.7

2008-11-17 Thread Joe White
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

RE: [rules-users] no-loop usage question

2008-11-03 Thread Joe White
, 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

RE: [rules-users] no-loop usage question

2008-11-03 Thread Joe White
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

RE: [rules-users] controling rule execution

2008-10-31 Thread Joe White
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,

RE: [rules-users] Deploy rules to JBoss server

2008-10-30 Thread Joe White
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

RE: [rules-users] Deploy rules to JBoss server

2008-10-28 Thread Joe White
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

RE: [rules-users] Display User friendly description for domain object'sproperties in Guvnor BRMS

2008-10-24 Thread Joe White
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

[rules-users] Mvel autoboxing math

2008-08-14 Thread Joe White
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

RE: [rules-users] Max packages

2008-08-13 Thread Joe White
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

[rules-users] Max packages

2008-08-12 Thread Joe White
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

[rules-users] Perm gen addPackageFromDrl

2008-08-08 Thread Joe White
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

RE: [rules-users] Date arithmeti c in “when” session

2008-05-07 Thread Joe White
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

RE: [rules-users] Janino Autoboxing inside drools

2008-04-10 Thread Joe White
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

RE: [rules-users] Janino Autoboxing inside drools

2008-04-10 Thread Joe White
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

[rules-users] Janino Autoboxing inside drools

2008-04-10 Thread Joe White
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

RE: [rules-users] Order of operations

2008-04-09 Thread Joe White
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

[rules-users] Order of operations

2008-04-09 Thread Joe White
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.

[rules-users] DRL Compilation exception

2008-03-26 Thread Joe White
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