[rules-users] 5.6 Decision Table VLookup

2014-06-17 Thread gboro54
Is there a way to have a decision table behave with a vloopup? Basically we have a metadata column which the user can select from a drop down. This then drives the values of the action columns. This works except that instead of the value of the vlookup I see the actual vlookup text(i.e something

Re: [rules-users] 5.6 Decision Table VLookup

2014-06-17 Thread gboro54
think there are problems with Apache POI resolving formulas across different worksheets (but am guessing based on some other changes we had to make regarding linked workbooks). On 17 June 2014 16:36, gboro54 lt; gboro54@ gt; wrote: Is there a way to have a decision table behave

Re: [rules-users] 5.6 Decision Table VLookup

2014-06-17 Thread gboro54
On 17 June 2014 17:25, gboro54 lt; gboro54@ gt; wrote: They are different sheets. Basically we have a our tables on sheet 1 and sheet 2 is populated from an import of data from an external datasource to allow a vlookup of information(so the business user can see the data/and we

Re: [rules-users] Decision Tables and modify

2014-06-11 Thread gboro54
are free format DRL IIRC). Sent on the move On 11 Jun 2014 18:56, gboro54 lt; gboro54@ gt; wrote: What is the proper way to do modify in a decision table? I know this is a very generic question but was wondering if anyone has experience with this and could offer insight(I have

[rules-users] @Modifies Inheritance

2014-05-29 Thread gboro54
Curiosity question: Why does the @Modifies not have the @Inherited annotation, allowing subclasses to inherit a method which may modify something in the parent? Perhaps I have a misunderstanding of annotations in this case but still am just wondering. -- View this message in context:

[rules-users] Drools Case Based Reasoning

2014-03-18 Thread gboro54
This sounds like something that could be accomplished with Planner. Is that the case or am I completely off the mark here? My company is looking at technologies to do case base planning and since we already use drools for other business rules figure I would poke around -- View this message in

Re: [rules-users] Drools Case Based Reasoning

2014-03-18 Thread gboro54
/wiki/Case-based_reasoning? If the number of identical variables, added with weights, is the target function, a simple search strategy should be sufficient for finding the best past case. -W On 18/03/2014, gboro54 lt; gboro54@ gt; wrote: This sounds like something that could

Re: [rules-users] Drools Case Based Reasoning

2014-03-18 Thread gboro54
Agreed and understood. I am not throwing out any solid conclusions about an approach. I can also see a case for technical rules. laune wrote On 18/03/2014, gboro54 lt; gboro54@ gt; wrote: That is correct and that is my thought. My company I feel likes to over complicate things at times

Re: [rules-users] Drools 5.6.0.Final PKG vs DRL infinite loop

2014-02-26 Thread gboro54
with @PropertyReactive before you load the jar in guvnor? Davide On 02/25/2014 11:53 PM, gboro54 wrote: test-drools.zip lt;http://drools.46999.n3.nabble.com/file/n4028329/test-drools.zipgt; Here is a sample project which shows the issue. You can build the project as the fact model and upload

Re: [rules-users] Drools 5.6.0.Final PKG vs DRL infinite loop

2014-02-26 Thread gboro54
that the rules and the classes live in the same package I'll get back to you later Davide On 02/26/2014 03:59 PM, gboro54 wrote: No luck adding ProperReactive to the classes(in the sample project). Davide Sottara wrote I think I see the problem - though I haven't been able to test

[rules-users] Source from Snapshot in Guvnor 5.6

2014-02-26 Thread gboro54
Is there a way to download the drl of a snapshot? I know you can see the rules in the Guvnor(uneditable of course) but is there a way to actual download the DRL file? -- View this message in context: http://drools.46999.n3.nabble.com/Source-from-Snapshot-in-Guvnor-5-6-tp4028355.html Sent from

Re: [rules-users] Source from Snapshot in Guvnor 5.6

2014-02-26 Thread gboro54
/com.test/Test Davide Sottara wrote Yes, instead of the URL http:// ... /packages/ [my pack ] / binary use http:// ... /packages/ [my pack ] / source On 02/26/2014 10:24 PM, gboro54 wrote: Is there a way to download the drl of a snapshot? I know you can see the rules

Re: [rules-users] Source from Snapshot in Guvnor 5.6

2014-02-26 Thread gboro54
Doing something like http://.../package/com.test/Test.drl shows the drl but it looks like imports are missing(along with globals) gboro54 wrote How to you specify which snapshot to grab from? I.e you build your pkg then create a snapshot. I want the source from the specific snapshot

Re: [rules-users] Drools 5.6.0.Final PKG vs DRL infinite loop

2014-02-25 Thread gboro54
Also note we are using property reactive listener always. The rules do modify an object that a bunch of the rules use however the modified property is not being evaluated(i.e no rule is checking the property at the moment). -- View this message in context:

Re: [rules-users] Drools 5.6.0.Final PKG vs DRL infinite loop

2014-02-25 Thread gboro54
, gboro54 wrote: Also note we are using property reactive listener always. The rules do modify an object that a bunch of the rules use however the modified property is not being evaluated(i.e no rule is checking the property at the moment). -- View this message in context: http://drools

Re: [rules-users] Drools 5.6.0.Final PKG vs DRL infinite loop

2014-02-25 Thread gboro54
a single rule using a single @propertyReactive class? On 02/25/2014 09:25 PM, gboro54 wrote: Also note we are using property reactive listener always. The rules do modify an object that a bunch of the rules use however the modified property is not being evaluated(i.e no rule is checking

Re: [rules-users] Kie-Workbench install error

2014-02-24 Thread gboro54
I turned off the demo stuff as we really didn't want that in our linux environment. As for the example I am not sure. I would start a new thread and not high-jack an older thread in this case. -- View this message in context:

[rules-users] 5.6.0.cr1 Guvnor Release

2014-02-18 Thread gboro54
Is there a built Guvnor artifact for expert 5.6.0.cr1? Using the 5.5.0 version of Guvnor against the 5.6.1 runtime does not work(as I would expected). This is only a temporary until we get the knew kie-workbench up and running with Drools 6. -- View this message in context:

Re: [rules-users] 5.6.0.cr1 Guvnor Release

2014-02-18 Thread gboro54
Final works just fine...Thanks! anjana.ackroyd wrote http://downloads.jboss.org/drools/release/ I dont see a CR1 why not use Final? On Tue, Feb 18, 2014 at 9:26 AM, gboro54 lt; gboro54@ gt; wrote: Is there a built Guvnor artifact for expert 5.6.0.cr1? Using the 5.5.0 version

[rules-users] kie-workbench external maven repo

2014-01-28 Thread gboro54
Is there a way to setup the kie workbench to point to an internal maven repo to pull internal libraries? -- View this message in context: http://drools.46999.n3.nabble.com/kie-workbench-external-maven-repo-tp4027897.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Kie-Workbench install error

2014-01-23 Thread gboro54
Hi! I am trying to install the Kie-workbench war to a jboss 7 environment and get the exception below. I would imagine this is because of firewall and my company will not open a connection to this repo. My question: is there a way to have the deployment go through without loading the example

Re: [rules-users] Kie-Workbench install error

2014-01-23 Thread gboro54
clone of a demo application from GitHub. This System Property takes precedence over org.kie.example. Default: true org.kie.example: Enables example structure composed by Repository, Organization Unit and Project. Default: false Mark On 23 Jan 2014, at 18:38, gboro54 lt; gboro54@ gt; wrote

[rules-users] drools 5.5 property reactive issue

2013-11-25 Thread gboro54
I am seeing a weird pattern(or at least unexpected one) when running drools 5.5 in property reactive mode. I have to rules such as: rule Rule 1 when $order:Order(orderType==A, orderVolume1000) then insert(new Charge($order,code1,-.25)); end rule Rule 2 when

Re: [rules-users] drools 5.5 property reactive issue

2013-11-25 Thread gboro54
This issue seems to be related to: http://drools.46999.n3.nabble.com/Property-reactive-broken-in-5-5-0-Final-td4021231.html http://drools.46999.n3.nabble.com/Property-reactive-broken-in-5-5-0-Final-td4021231.html -- View this message in context:

Re: [rules-users] drools 5.5 property reactive issue

2013-11-25 Thread gboro54
I plan to do an update to 6 early next month(that was planned before this issue). Thanks! Mark Proctor wrote a lot has been fixed in 5.6 and 6.0. Please either try 5.6.CR1 or 6.0.FINAL. Mark On 25 Nov 2013, at 15:33, gboro54 lt; gboro54@ gt; wrote: This issue seems to be related

[rules-users] Drools 5.5 Property Reactive on Maps

2013-11-14 Thread gboro54
So I have an object with a map like follows: protected ConcurrentMapString, Double accumulations = new ConcurrentHashMapString, Double(); I wrote a convince method on the class that will look up the value in the map and add to it if it exists and if not there will put it in the map:

Re: [rules-users] Drools 5.5 Property Reactive on Maps

2013-11-14 Thread gboro54
So if the property lives in the parent abstract class and that is where the method existed. If I move the method to the child with the annotation @Modifies it works. Any ideas why putting that in the parent abstract would not be honored? -- View this message in context:

[rules-users] Drools 6 workbench and Polymita

2013-11-08 Thread gboro54
I stumbled across this article today: http://decisionmanagementsolutions.com/blog/2013/10/09/first-look-red-hat-jboss-brms-and-drools-community-project-update/ This got me thinking if this integration will be offered in the community project or will this only be done in the enterprise version?

Re: [rules-users] Drools 6 workbench and Polymita

2013-11-08 Thread gboro54
Nov 2013, at 17:02, gboro54 lt; gboro54@ gt; wrote: I stumbled across this article today: http://decisionmanagementsolutions.com/blog/2013/10/09/first-look-red-hat-jboss-brms-and-drools-community-project-update/ This got me thinking if this integration will be offered in the community

Re: [rules-users] Drools 6 workbench and Polymita

2013-11-08 Thread gboro54
Thanks for the information Mark! Mark Proctor wrote Some of it has been migrated to uberfire. Some is still standalone, and will be migrated over next year. Mark On 8 Nov 2013, at 18:06, gboro54 lt; gboro54@ gt; wrote: Understood. I just haven't read anything about this until

[rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
I have rules like the following: rule Add Baseline to Context if it does not exists exists or not greater then 0 no-loop true when $context:Context($id:id,baselineParticipation==null ||

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
So move the math to the rhs? Will that resolve the issues in your opinion? -- View this message in context: http://drools.46999.n3.nabble.com/Drools-5-5-divide-by-0-exception-tp4026582p4026586.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
ever zero? On 1 Nov 2013, at 16:17, gboro54 lt; gboro54@ gt; wrote: I have rules like the following: rule Add Baseline to Context if it does not exists exists or not greater then 0 no-loop true when $context:Context($id:id,baselineParticipation==null

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
I changed the rules to the following so I will test and see: rule Add Baseline to Context if it does not exists exists or not greater then 0 no-loop true when $context:Context($id:id,baselineParticipation==null ||

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
try to divide by zero. So … first question … is consolidatdVolume.avgVolume ever zero? On 1 Nov 2013, at 16:17, gboro54 lt; gboro54@ gt; wrote: I have rules like the following: rule Add Baseline to Context if it does not exists exists or not greater then 0 no-loop true

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
(!) must be executed in the order they are written, or that the C/Java semantics for logical expression evaluation is applied. -W On 01/11/2013, gboro54 lt; gboro54@ gt; wrote: Could you expand upon why this is a poor practice? I assumed that if a part of the pattern doesn't match

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
Another question(on error interpretation) the stack trace seems to indicate an issue with the consequence and not the condition. Should it be assumed that seeing such errors could indicate an issue on either side of the rule? -- View this message in context:

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
usually happens in practice) You also have multiple threads... is that avgVolume computed using an accumulate somewhere? I wonder if there are critical races. On 11/01/2013 11:17 AM, gboro54 wrote: Agreed. In this case it is possible to move to the RHS...but I have to ask what if I need

[rules-users] Guvnor 5.5 convert excel decision table to web error

2013-10-23 Thread gboro54
In guvnor 5.5, when trying to convert an excel based decision table to a web based one, using the convert button, we get the following exception: .drools.guvnor.client.rpc.AssetService.convertAsset(java.lang.String,java.lang.String) throws com.google.gwt.user.client.rpc.SerializationException'

Re: [rules-users] Guvnor 5.5 convert excel decision table to web error

2013-10-23 Thread gboro54
Created Jira: https://issues.jboss.org/browse/GUVNOR-2057 manstis wrote Can you please raise a JIRA for Guvnor and attach a XLS file demonstrating the bug. Thanks Sent on the move On 23 Oct 2013 15:59, gboro54 lt; gboro54@ gt; wrote: In guvnor 5.5, when trying to convert

[rules-users] Drools Multi level map access(Drools 5.5)

2013-10-07 Thread gboro54
I have a map that contains a map(MapString, Maplt;String,Object). I know you get to the first map via mapField[key] but how do you then access the object in the second map? I have tried mapField[parentKey][childKey] and mapField[parentKey].[childKey]. I also tried binding the parent map to a

Re: [rules-users] Drools Multi level map access(Drools 5.5)

2013-10-07 Thread gboro54
That is what I thought but just wanted to confirm that there was no other way. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Multi-level-map-access-Drools-5-5-tp4026284p4026290.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Reevaluate rules on collect

2013-09-30 Thread gboro54
I have the following three rules: rule Create Acct Context when $Acct:Acct() not (exists(AcctContext(Acct ==$Acct))) then insert(new AcctContext($Acct)); end rule Add Acct Statuses to AcctContext no-loop true when

[rules-users] Guvnor 5.5 get available snapshots for package

2013-08-15 Thread gboro54
Looking at the Rest API I don't see a way to get a list of available snapshots for a given package. Is there a way to do this? -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-5-get-available-snapshots-for-package-tp4025565.html Sent from the Drools: User forum

Re: [rules-users] Guvnor 5.5 get available snapshots for package

2013-08-15 Thread gboro54
Trying to access this via webdav I get a 404 when I hit the following link: http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/webdav/com.example.package/ Any thoughts? -- View this message in context:

Re: [rules-users] Guvnor 5.5 get available snapshots for package

2013-08-15 Thread gboro54
gboro54 wrote Trying to access this via webdav I get a 404 when I hit the following link: http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/webdav/com.example.package/ Any thoughts? This seems to be related to https://issues.jboss.org/browse/GUVNOR-1986. When I try it with a windows

Re: [rules-users] Guvnor 5.5 get available snapshots for package

2013-08-15 Thread gboro54
Here is the stack trace JAAS authentication failed: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:270) [picketbox-4.0.7.Final.jar:4.0.7.Final]

[rules-users] Drools 5.5 Percentage rules

2013-08-14 Thread gboro54
I am trying to craft rules which deal with percentage of 2 numbers(some percentages are like .1%). A rule like the following I can't get to fire for bigger numbers. Any thoughts on this would be great! rule 'Added through MPID 0.1% TCV' when billableItem:BillableItem(code in (A,7,8),

Re: [rules-users] Drools 5.5 Percentage rules

2013-08-14 Thread gboro54
does 1.5 fall...stupid me) As per usual this was user error laune wrote What do you mean by for bigger numbers? -W On 14 August 2013 18:56, gboro54 lt; gboro54@ gt; wrote: I am trying to craft rules which deal with percentage of 2 numbers(some percentages are like .1%). A rule like

[rules-users] Drools 5.5 Decision Tables - Add check without requiring user input

2013-08-05 Thread gboro54
Hi!, For a decision table is there a way to have a condition column for which the user just specifies weather the condition is active or deactivate(i.e specify true or false) but which they only specify active or not. Thanks, Mike -- View this message in context:

Re: [rules-users] Kagent and Resource Scanning

2013-06-07 Thread gboro54
Any input on this? If not I will just test(was just trying to save the time ) -- View this message in context: http://drools.46999.n3.nabble.com/Kagent-and-Resource-Scanning-tp4024141p4024213.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Kagent and Resource Scanning

2013-06-05 Thread gboro54
The methods ResourceFactory.getResourceChangeNotifierService().start() and ResourceFactory.getResourceChangeScannerService().start() start the scanning services in Drools. My question is does this apply to all knowledge agents within an application or does this need to be done for all kAgents

[rules-users] KnowledgeBase in drools 6.0.0.beta1

2013-04-19 Thread gboro54
I am evaluating 6.0.0.beta1 and seem to have issues with the KnowledgeBase. It looks like it is marked with @Deprecated. What is the proper way to build the KnowledgeBase in 6(as the documentation still refers to this way). TIA! -- View this message in context:

Re: [rules-users] KnowledgeBase in drools 6.0.0.beta1

2013-04-19 Thread gboro54
Thanks Mark! I will do my best to reverse engineer what is needed from the examples. Is there a good place to get information on changes to the drools syntax(if any) or additional information on the new algorithms implemented(I know RETE was going bye-bye)? -- View this message in context:

[rules-users] Drools and Hadoop

2013-04-11 Thread gboro54
We basically have a batch application which needs to be able to pump through 2 billion records and apply a relatively small ruleset(say a couple hundred rules). My thought is to look at doing something with Drools and Hadoop but I am wondering if anyone else has done a large dataset such as this(I

[rules-users] com.google.protobuf.MessageOrBuilder

2012-10-08 Thread gboro54
I am trying to deploy an application onto JBoss 7.1 running drools 5.4 and I am getting the following error. Any thoughts? java.lang.ClassNotFoundException: com.google.protobuf.MessageOrBuilder from [Module deployment.fbms.ear.fbms-service.jar:main from Service Module Loader] at

[rules-users] Accumulate a on event combinations

2012-10-03 Thread gboro54
We are using expert and fusion to monitor connection events in our system. We would like to know the most efficient way to know that X number pair of events have happened in a certain example(i.e eventA and eventB occurred 4 times each in the 5 seconds). What is the most efficient way to do this?

Re: [rules-users] Accumulate a on event combinations

2012-10-03 Thread gboro54
I thought it was? Perhaps I worded it wrong. I need to do something similar to what I stated but the accumulate doesn't want to take the syntax stated below. Perhaps this is not possible or I am doing something wrong? laune wrote On 03/10/2012, gboro54 lt; gboro54@ gt; wrote: Doesn't

Re: [rules-users] Accumulate a on event combinations

2012-10-03 Thread gboro54
in the dark. -W On 3 October 2012 19:31, gboro54 lt; gboro54@ gt; wrote: I thought it was? Perhaps I worded it wrong. I need to do something similar to what I stated but the accumulate doesn't want to take the syntax stated below. Perhaps this is not possible or I am doing something

[rules-users] @expires

2012-10-03 Thread gboro54
Based on testing expiring an event does no remove it from working memory. What is the best way to manage working memory in the case that after a period of X seconds you want the event removed? Would you simply write a rule that would do a retract after a certain window i.e rule Closed Connection

Re: [rules-users] Accumulate a on event combinations

2012-10-03 Thread gboro54
Thanks. I believe you are correct(my threshold is small this is just for some testing purposes.) I like the idea you have come up with. Thanks! Davide Sottara wrote What you have written counts how many times a connection to the same endpoint (I'm assuming the connectionInformationId

Re: [rules-users] Drools 5.4 Jitting Error

2012-09-06 Thread gboro54
You are correct from what I have seen... On Thu, Sep 6, 2012 at 4:41 AM, Caillard, Quentin [via Drools] ml-node+s46999n4019621...@n3.nabble.com wrote: Sorry, it is a quite old thread. But i am experiencing some jitting error with the 5.4.0.Final. If I well understand, the jitting error

Re: [rules-users] Drools 5.4 - Can't catch Exception

2012-08-13 Thread gboro54
I believe this is an issue with the retract in 5.4. I removed all forms of salience to see if there was a race condition caused by that. Still got the same exception. I then took it one step more and added agenda groups and set the order in such a way that the retract rules would be the last

[rules-users] Drools 5.4 - Can't catch Exception

2012-08-01 Thread gboro54
So I keep getting the exceptions below. I have surrounded the fireAllRules with a try catch throwable block to try and debug this but I never seem to be able to catch it. This only happens in the first couple 100 invocations of the fireAllRules then never happens again(sometimes it never happens

Re: [rules-users] fire a rule only once (for the time being)

2012-08-01 Thread gboro54
I don't think it would be outrageous to build a stateful session per user. The expensive part is building the knowledge base. Session creation is cheap. slyfox wrote been thinking about this a lot. I know the real solution is to use logical inserts but I'm wondering how it would work in my

Re: [rules-users] MVEL optimizer error

2012-07-24 Thread gboro54
Any thoughts on this at all? -- View this message in context: http://drools.46999.n3.nabble.com/MVEL-optimizer-error-tp4018714p4018877.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list

Re: [rules-users] MVEL optimizer error

2012-07-18 Thread gboro54
trace to figure out which rule may be causing this? After a retract I thought all other activations on the agenda for the tuple should be cancelled. Is this a wrong assertion? TIA gboro54 wrote I am having an issue with an optimizer stack trace on my linux QA box that I can't seem to reproduce

[rules-users] MVEL optimizer error

2012-07-16 Thread gboro54
I am having an issue with an optimizer stack trace on my linux QA box that I can't seem to reproduce on my windows development box. The stack trace is: 13:01:50,188 ERROR [stderr] (Thread-123) Exception in thread Thread-123 java.lang.RuntimeException: unable to invoke method:

[rules-users] Drools 5.4 DSLR Stack Overflow

2012-07-09 Thread gboro54
We recently upgraded to drools 5.4 and are getting the following exception when trying to compile our dsl and dslrs. Could this be related to our JVM version(1.6.0_12)? Caused by: java.lang.StackOverflowError at java.util.regex.Pattern$Loop.match(Pattern.java:4275) [rt.jar:1.6.0_12]

Re: [rules-users] Drools 5.4 DSLR Stack Overflow

2012-07-09 Thread gboro54
We are not running solaris we are on Centos with a Sun JVM. However I believe the issue is the same and am working on upgrading the JVM on our boxes. Mario Fusco wrote I think this is definitively related with the version of the JVM you're using. Exactly the same problem has been already

Re: [rules-users] Drools 5.4 DSLR Stack Overflow

2012-07-09 Thread gboro54
Even after updating to 1.6.0_31 we still get the following: Caused by: java.lang.StackOverflowError at java.util.regex.Pattern$GroupTail.match(Pattern.java:4227) [rt.jar:1.6.0_31] at java.util.regex.Pattern$BranchConn.match(Pattern.java:4078) [rt.jar:1.6.0_31] at

Re: [rules-users] Drools 5.4 DSLR Stack Overflow

2012-07-09 Thread gboro54
/\\*.*?\\*/ would serve the same purpose while not causing a stack overflow. Tested with javac 1.6.0_23 -W On 09/07/2012, gboro54 lt;gboro54@gt; wrote: Even after updating to 1.6.0_31 we still get the following: Caused by: java.lang.StackOverflowError at java.util.regex.Pattern

[rules-users] Multiple DSL files with Eclipse IDE

2012-06-07 Thread gboro54
I would like to add more then one DSL file to a DSLR file. I understand that semantically the knowledge base will allow this but is there away to allow eclipse the ability to view the DRL when multiple DSLs are being used? I found JBRULES-1615 but I am not sure if this was actually resolved or

[rules-users] modify keyword cancels activation unexpectedly

2012-06-06 Thread gboro54
I am using drools 5.4 and am running into a weird issue with using modify keyword. I have have two rules, both are similar in conditions(one rule catches 2 additional cases to modify the object with a generic message). Weather I add the checks for each rule into the into the generic rule or have a

Re: [rules-users] modify keyword cancels activation unexpectedly

2012-06-06 Thread gboro54
with the @Modifies method. laune wrote On 06/06/2012, gboro54 lt;gboro54@gt; wrote: I am using drools 5.4 and am running into a weird issue with using modify keyword. I have have two rules, both are similar in conditions(one rule catches 2 additional cases to modify the object with a generic

Re: [rules-users] modify keyword cancels activation unexpectedly

2012-06-06 Thread gboro54
Sorry for that. You are correct more information should have been provided to allow for help. Usually I am better at this but hurried myself a little this morning gboro54 wrote Thanks for the insightI was able to figure it out with have the generic rule listen for modifications

[rules-users] Drools 5.4 Jitting Error

2012-05-17 Thread gboro54
I just updated to Drools 5.4 and I am not getting the following error on all my map accessors: 10:41:12,997 ERROR [stderr] (Thread-169) Exception in thread Thread-169 java.lang.RuntimeException: Exception jitting: feeKeys[1] == null 10:41:12,998 ERROR [stderr] (Thread-169)at

Re: [rules-users] Drools 5.4 Jitting Error

2012-05-17 Thread gboro54
rule Rule1 trade no-loop true when $tsc:TradeSideContext(trade!=null,primarySide!=null,contraSide!=null) $trade:Trade($tradeDate:tradeDate, tradeSource == O) from $tsc.trade $ps:TradeSide(capacity.capacityCode ==

Re: [rules-users] Drools 5.4 Jitting Error

2012-05-17 Thread gboro54
It looks like the rule executes(based on my unit test the proper element is placed in the list) and it always seems to happen on the my last execution. In addition I have noticed that the evaluations seem to be handled on other threads. Is this correct behavior? gboro54 wrote rule Rule1

Re: [rules-users] Drools 5.4 Jitting Error

2012-05-17 Thread gboro54
Mario, That is what i expected(just wanted to verify). Let me know if any additional information is needed... Mario Fusco wrote In Drools 5.4 we added an optimization that JITs constraints (i.e. compile them in bytecode) after they have been evaluated for a given amount of times

Re: [rules-users] Drools 5.4 Jitting Error

2012-05-17 Thread gboro54
Thanks Mario! That seems to have resolved the issue. I look forward to your fix. Mario Fusco wrote Ok, I've been able to reproduce your issue. I'll fix it asap and keep you updated on how I am progressing. The only (ugly) workaround I could find at the moment is to replace feeKeys[1] with

[rules-users] Multiple DRL for one Package

2012-05-11 Thread gboro54
I have created multiple DRLs declaring the same packaged(logical separation of rules). When I compile this knowledge base with all the files does the rete tree get built as if all the rules were in the same file or does each file get it's own built tree? -- View this message in context:

Re: [rules-users] Knowledge Base and Multiple Sessions

2012-05-11 Thread gboro54
of usage of multi-thread with rules is for chaining multiple rule box having distinct kbase, so I never tried that. - Mail original - De: gboro54 lt;gboro54@gt; À: rules-users@.jboss Envoyé: Jeudi 10 Mai 2012 19:12:28 Objet: [rules-users] Knowledge Base and Multiple Sessions

[rules-users] StatefulKnowledge Session with BatchExecutor

2012-05-11 Thread gboro54
Is there ever a case to use the batch executor with a stateful knowledge session? Would it be better to insert a large number of records using the insert or is it better to insert 1 at a time? -- View this message in context:

[rules-users] Knowledge Base and Multiple Sessions

2012-05-10 Thread gboro54
If you have multiple sessions running on different threads against the same knowledge base, is there any performance hit during evaluation? -- View this message in context: http://drools.46999.n3.nabble.com/Knowledge-Base-and-Multiple-Sessions-tp3977702.html Sent from the Drools: User forum

Re: [rules-users] agenda-groups

2012-05-08 Thread gboro54
I am not currently using agenda-groups. I believe my issue right now is one of thread safety. A little background: I currently have a thread pulling messages from a database running on the main thread. In several other threads, I have drools session being fired every so often. It appears that

Re: [rules-users] agenda-groups

2012-05-08 Thread gboro54
parallel to the one(s) doing insertions doesn't make sense to me. -W On 08/05/2012, gboro54 lt;gboro54@gt; wrote: I am not currently using agenda-groups. I believe my issue right now is one of thread safety. A little background: I currently have a thread pulling messages from a database

Re: [rules-users] agenda-groups

2012-05-08 Thread gboro54
parallel to the one(s) doing insertions doesn't make sense to me. -W On 08/05/2012, gboro54 lt;gboro54@gt; wrote: I am not currently using agenda-groups. I believe my issue right now is one of thread safety. A little background: I currently have a thread pulling messages from a database

Re: [rules-users] agenda-groups

2012-05-08 Thread gboro54
. laune wrote What about executing insert(s) followed by fireAllRules() in one thread? -W On 08/05/2012, gboro54 lt;gboro54@gt; wrote: What do you recommend? firUntilHalt seems to get locked out after sometime... I am running out of ideas and have posted this question before. I believe

Re: [rules-users] agenda-groups

2012-05-08 Thread gboro54
Perhaps a blocking queue which has facts put on from other threads, the thread then inserts x number of facts and fires the rule set? gboro54 wrote The point is to be able to stream a large volume of messages into the rule session without tying up that thread. In addition I don't want

[rules-users] agenda-groups

2012-05-07 Thread gboro54
If you specify agenda-groups on rules, then in the rule set have rules which will set focus onto that agenda-group does the group of rules only use the facts which cause the group to be pushed to the stack or does it evaluate all objects in working memory? -- View this message in context:

Re: [rules-users] agenda-groups

2012-05-07 Thread gboro54
) - ruleflow-group : once the agenda has no more rules of this group, the ruleflow is used to set the next current group - Mail original - De: gboro54 lt;gboro54@gt; À: rules-users@.jboss Envoyé: Lundi 7 Mai 2012 15:30:48 Objet: [rules-users] agenda-groups If you specify agenda

Re: [rules-users] Does Drools have a Rules Authoring engine?

2012-05-02 Thread gboro54
Rule authoring in Drools can be done in 2 ways: with the Eclipse or Guvnor. I am not sure what you mean by a Rules Authoring Engine though. What requirements to you have for rule authoring? Are business users or developer authoring rules? vsm wrote Drools is a Business Rules Management

[rules-users] Drools 5.3 Salience

2012-05-02 Thread gboro54
I know using salience is not the best way to order rules but some of our rules do have a higher priority then others. Since we are writing the rules using a DSL I have created set set of Priority levels which set the salience. One of these levels set salience to 0(default value). Is there any harm

Re: [rules-users] Drools 5.3 Salience

2012-05-02 Thread gboro54
That is what I figured ...just wanted a second opinion. Mark Proctor wrote On 02/05/2012 18:09, gboro54 wrote: I know using salience is not the best way to order rules but some of our rules do have a higher priority then others. Since we are writing the rules using a DSL I have created

[rules-users] Prevent DSL From replacing certain parts of text

2012-05-01 Thread gboro54
I am utilizing a dsl with a dslr. In my DSL I have a condition work Customer which maps to a string value. Is there way to prevent the dsl from replacing this work in certain cases? For example ruleT1 when Object(value==Customer Help) then ... end When I run the DSL obviously

Re: [rules-users] Rule to load facts with pagination

2012-05-01 Thread gboro54
Not sure if I am right but I believe he has a memory restriction which forces him not to be able to load a full result set from a query and then feed this objects into the engine as facts. Unless you have some complicated logic I would probably do the loading logic outside of the rules. Feed X

Re: [rules-users] modify, retract, setFocus and Salience

2012-04-27 Thread gboro54
I will take a stab at answering this: -Modify and Retract will cause the tree to be re-evaluated for the current facts in memory. This may cause new activations or cancellations to occur. Be forewarned that a rule that modifies a fact may cause a continuous loop if the conditions for that rule are

[rules-users] Contains an object

2012-04-26 Thread gboro54
Is there a way to use contains with an object? i.e obj:Object(collection contains SubObject(string=TST,int=1)) I know you could do a from but we are writing a DSL and it would be great if I could accomplish something like this above TIA! -- View this message in context:

Re: [rules-users] Contains an object

2012-04-26 Thread gboro54
I guess I could also have a method on my main object that takes parameters and just do a not null check... gboro54 wrote Is there a way to use contains with an object? i.e obj:Object(collection contains SubObject(string=TST,int=1)) I know you could do a from but we are writing a DSL

  1   2   >