Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-26 Thread Wolfgang Laun
It seems that the initial hyphen merges the DSL definition's right hand side into the parenthesis of the last preceding term, even if that one is an eval, which itself is meant to go into some preceding pattern. You could work around that by making all evals Conditional Elements rather than Inline

Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-26 Thread Patricia Bogoevici
Thx for your answer. I tried again the rule, removing the extra space after hyphen from DSL expresion. No luck. So, I tried a few more cases, and the only one that worked correctly was #3. It seems to me that is somehow related to the parenthesis, although it might be something else. Hope this

[rules-users] Drools Guvnor: Rule fires multiple times when using eval and OR

2010-08-26 Thread Patricia Bogoevici
Hi all, I am using Drools Guvnor 5.1. I created a rule that uses eval, and OR for conditions. When I tested the rule, I noticed in the log, that actually the rule fired twice. The error seemed to be caused by eval and or combination. When I re-wrote the rule to not use eval, it fired only once

Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-26 Thread Mauricio Salatino
can you try with this: [when] There is an Asset=asset:Asset() [when] -name is empty=eval(StringUtils.isBlank(name)) [when] -tag is empty=eval(StringUtils.isBlank(tag)) 2010/8/26 Patricia Bogoevici > Hi all, > > I am using the latest Guvnor release (5.1), and I have the following DSL > expression

[rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-26 Thread Patricia Bogoevici
Hi all, I am using the latest Guvnor release (5.1), and I have the following DSL expression where I use "-" to have conditions on multiple lines: [when] There is an Asset=asset:Asset() [when]- name is empty=eval(StringUtils.isBlank(name)) [when]- tag is empty=eval(StringUtils.isBlank(tag)) Havi

[rules-users] OptionalDataException on reading packages..

2010-08-26 Thread mechlife
I have the application setup where the drl is generated from the database and then written to the file system. So far i have been working with the drl's without any problems but have run into issues while working with packages. Any help is much appreciated. Thanks. Here is what i am doing while

Re: [rules-users] Drools and Java EE

2010-08-26 Thread ljnelson
On Thu, Aug 26, 2010 at 4:48 PM, Andrew Waterman-2 [via Drools - Java Rules Engine] wrote: > > Okay, cool. So where's the magic location? :) The magic location...is...unless I'm missing something...specified in ra.xml. Here's what that part of ra.xml looks like (lines 39-43 from http://code.goo

Re: [rules-users] Drools and Java EE

2010-08-26 Thread Andrew Waterman
Okay, cool. So where's the magic location? :) I think for my purposes things should be okay, my DRLs for our games (we write rules based games down here for natural resource management), should work together in the same Ksession, as the rules activate depending on specific objects in memory. I

Re: [rules-users] Drools and Java EE

2010-08-26 Thread ljnelson
Oh, you're right. Oh, I remember what I was thinking. :-) I didn't want to ship with a default change set, because hey, I don't know what your changeset is going to be. So I set up a default place that the resource adapter *looks* for a change set .xml file. If you either (a) put such a chang

Re: [rules-users] Drools and Java EE

2010-08-26 Thread Andrew Waterman
Many thanks, Laird. Although, I can't seem to find the "KnowledgeBases.xml" in the repository. Where should it be located? In drools-rar resources? I just need the knowledge agent to check on a set of runtime changesets, and be able to update the embedded knowledgebase on change. Can I scrip

Re: [rules-users] Drools and Java EE

2010-08-26 Thread ljnelson
The changeset itself dictates what resources to monitor, if I understand it properly, so if you're just looking for new packages just add them to the changeset. You probably know that already. See the line in KnowledgeBases.xml. But yes, that's all within one KnowledgeBase (I should rename the

Re: [rules-users] Drools and Java EE

2010-08-26 Thread Andrew Waterman
Just found the configuration in ra.xml: changeSetResourceName java.lang.String rules/KnowledgeBases.xml Can I get it to support more than one changeSet? It would be nice to pass a list to monitor. best, A On Aug 26, 2010, at 3:04 PM, Andrew Waterman wrote: > Hey

Re: [rules-users] Drools and Java EE

2010-08-26 Thread Andrew Waterman
Hey Laird, How do I configure the resource adaptor to load a specific resource? I have two changesets I would like it to monitor. Is this handled in the ra.xml? I couldn't seem to find what it was monitoring. :) best wishes, Andrew On Aug 25, 2010, at 4:24 PM, Andrew Waterman wrote: > Hu

Re: [rules-users] no visitor implementation for : class org.drools.rule.TypeDeclaration

2010-08-26 Thread Esteban Aliverti
Hi, #1 I'm not sure if I've understood it correct. Is the message displayed every time a resource containing declares is modified or does is it displayed if the declare statements are changed? The message will appear every time a resource containing a type definition is modified. #2 The followin

[rules-users] Implementation problems with long running WorkItems

2010-08-26 Thread jschmied
Hi! I have a flow where I call external webservices parallel from my own WorkItemHandler. I have a ExecutorService and in executeWorkItem I submit a Callable what does the work, so executeWorkItem return immediately. The Callable calls workItemManager.completeWorkItem after the work is done. As

[rules-users] Drools Flow with Persistence and long running tasks

2010-08-26 Thread Chrystall, Greg
Hi, Does anyone have a production project that is using drools persistence and has long running tasks, which have to run concurrently? If anyone is, how do you create your KnowledgeSession(s) and handle starting multiple ProcessInstances at the same time? Thanks, Greg ___

Re: [rules-users] comparing an intersection of sets..

2010-08-26 Thread Wolfgang Laun
So as not to confuse everybody - it seems that the 5.1 textual version of a dsl now looks like this: [condition][]There is an element {eVar}={eVar} : Element() [condition][]- called {nVar}={nVar} : name [condition][]- other than {oVar}=this != {oVar} [condition][]- where {eVar} is disjoint from {o

Re: [rules-users] comparing an intersection of sets..

2010-08-26 Thread Wolfgang Laun
It is possible to hide the eval for computing the intersection in a DSL. Given public class Element { private String name; private Set numbers; public Element( String name, Integer... numbers ){ ... } // getters... public boolean disjointWith( Element other ){ Set ownN

Re: [rules-users] Drools v5.1.0 KnowledgeAgent using Spring Beans

2010-08-26 Thread Esteban Aliverti
The problem you are having is because since 5.1, you need to authenticate to get change-sets or resources from guvnor. You can put authentication data in the change-set doing something like this: Unfortunately, basicAuthentication, username and admin properties are not supported

Re: [rules-users] rules-users Digest, Vol 45, Issue 121

2010-08-26 Thread Burak Aydin
d there > are > other parallel command executions against the same session. > > Can anyone confirm if that is accurate? > > Thanks in advance, > > -- > Ricardo J. M?ndez > http://www.arquetipos.co.cr/ > -- next part -- > An HTML attachment was scrubbe

Re: [rules-users] Stuck Threads

2010-08-26 Thread Esteban Aliverti
StatefulSessions are not thread safe. El ago 26, 2010 9:23 a.m., "Burak Aydin" escribió: Hello, While trying to open stateful session in a 32 core machine and 35 threads, all of the threads hangs. Below is the stack trace. ChainedProperties class seems to be thread-unsafe?? gridgain-#13%null%"

[rules-users] CommandFactory.newSetGlobal and scope

2010-08-26 Thread Ricardo J . Méndez
Hi everyone, I'm reading through Michael Bali's Drools JBoss Rules book as well as the reference guide, and I've got a question of scope about StatefulKnowledgeSessions. I understand that if I call setGlobal on a stateful session, this global value will be shared for all simultaneous calls to exe

[rules-users] Stuck Threads

2010-08-26 Thread Burak Aydin
Hello, While trying to open stateful session in a 32 core machine and 35 threads, all of the threads hangs. Below is the stack trace. ChainedProperties class seems to be thread-unsafe?? gridgain-#13%null%" - Thread t...@64 java.lang.Thread.State: RUNNABLE at sun.misc.URLClassPath$Jar

[rules-users] Database problem

2010-08-26 Thread nch
Hi, there. I need advice on how to approach the following. Hope I'm being clear: - I have a database of over 30 tables. - The database is being updated every now and then. - I need to perform a bunch of calculations based on what's on the DB. - Some of the calculations depend on intermediate calcu