[rules-users] com/vladium/emma/rt/RT error.

2011-05-04 Thread Sumir Bindal
I have installed jboss drools plugin in eclipse and when building the project i am getting this error com/vladium/emma/rt/RT (Type - Drools error). Am i missing some jar file in classpath? -- View this message in context: http://drools.46999.n3.nabble.com/com-vladium-emma-rt-RT-error-tp2902182p29

Re: [rules-users] Unable to create DSL properly?

2011-05-04 Thread Wolfgang Laun
On 5 May 2011 05:03, boy18nj wrote: > I'm trying to create DSL and DSLR  out of DRL but so far unsuccessfull with > this small example- > > > DSL- > [condition][]There is fire in "{room}"=Fire( "{room}" : room ) Imagine that the characters corresponding to each {x} are taken and replace the same

[rules-users] Unable to create DSL properly?

2011-05-04 Thread boy18nj
I'm trying to create DSL and DSLR out of DRL but so far unsuccessfull with this small example- DRL (Working OK)- #created on: Apr 30, 2011 package com.fire #list any import classes here. import com.fire.*; #declare any global variables here rule "When there is a fire turn on the sprinkler"

Re: [rules-users] Guvnor service to compile part of a package ?

2011-05-04 Thread Jervis Liu
On 2011/5/4 22:57, Vincent Legendre wrote: > Hi all, > > I am looking for a clever way to compile only parts of a Guvnor package > according to some criteria on items (categories, metadata ...), but > outside Guvnor if possible. > The main idea starts by the fact that it is a little bit complex for

[rules-users] JBRULES-2796 - NullPointerException in FromNode.destroyCreatedHandles

2011-05-04 Thread Gareth Evans
Hello, I think I am getting the same/similar problem as described in JBRULES-2796. I am using Drools 5.1.1 with Expert and Flow, here is the stack trace: Caused by: java.lang.NullPointerException at org.drools.reteoo.FromNode.destroyCreatedHandles(FromNode.java:336) at org.dro

Re: [rules-users] SPREADSHEET DECISION TABLE: Can I use functions into CONDITIONS?

2011-05-04 Thread Travis_Smith
Hi Zeta, Just to confirm: You'll find that writing an Excel VBA macro will not work, as they are neither MVEL nor Java. How I've handled it is created a Helper class with public static methods. Then in the Import section at the top of the file, I link to the functions I use, prefixed with the

[rules-users] Problems with Drools 5.2.0.M1 and IE7?

2011-05-04 Thread John Peterson
Has anyone experienced problems running with the graphic layout of Guvnor with Drools 5.2.0.M1 on Internet Explorer 7? It appears to be okay with IE8. Thanks. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/lis

Re: [rules-users] addpackagefromdrl removed and multiple DSL functionality lost?

2011-05-04 Thread drdaveg
As an update, I am testing getting this functionality by having two KnowledgeBuilder that both add to the same KnowledgeBase and to a single StatefulKnowledgeSession. So far so good. -- View this message in context: http://drools.46999.n3.nabble.com/addpackagefromdrl-removed-and-multiple-DSL-fun

Re: [rules-users] SPREADSHEET DECISION TABLE: Can I use functions into CONDITIONS?

2011-05-04 Thread Wolfgang Laun
Can you provide the function and the error messages you get? -W On 4 May 2011 17:38, zeta wrote: > HI!, I need to check if a given date is between two dates. So, I would like > to call a function that calculates if the given date is between other > two(specifically, between current date and cu

[rules-users] SPREADSHEET DECISION TABLE: Can I use functions into CONDITIONS?

2011-05-04 Thread zeta
HI!, I need to check if a given date is between two dates. So, I would like to call a function that calculates if the given date is between other two(specifically, between current date and current date plus some months, and the variable "months" changes dynamically). I tried to write a function(ins

[rules-users] addpackagefromdrl removed and multiple DSL functionality lost?

2011-05-04 Thread drdaveg
Several posts refer to a pre-5.0 addpackagefromdrl method that builds a rule file for an associated DSL file. This let multiple DRL files be associated to a specific DSL file for compilation. KnowledgeBuilder.add(...) lets you add multiple DRL and DSL files, but it seems as if the "expander" keyw

Re: [rules-users] Guvnor service to compile part of a package ?

2011-05-04 Thread Michael Anstis
Other than custom selectors, as you have already discovered, I don't believe there is anything that fits your description "out of the box". Those clever chaps at Plugtree often have something up their sleeves; perhaps they know of something? There have also been a lot of changes for 5.2 but I'm uns

[rules-users] Guvnor service to compile part of a package ?

2011-05-04 Thread Vincent Legendre
Hi all, I am looking for a clever way to compile only parts of a Guvnor package according to some criteria on items (categories, metadata ...), but outside Guvnor if possible. The main idea starts by the fact that it is a little bit complex for a business user to manage packages and compilation

Re: [rules-users] Question on modeling facts

2011-05-04 Thread Wolfgang Laun
Stops would be in some ordered collection; the equals for AbstractList is efficient enogh; it does check sizes before iterating in parallel. Perhaps the 2 termini should be checked first (if there's a wide range of lines), then (as Wendy proposes) the day; then the stations. -W 2011/5/4 Wendy M

Re: [rules-users] Question on modeling facts

2011-05-04 Thread Wendy Mungovan
How many train stops are you talking about? If it is only a few it might not matter if you don't have the many trains. When you are writing your rule if you narrow down by matching schedule first and then comparing all the stops that might help. An alternative to comparing two collections in

Re: [rules-users] Fw: Regarding Drools - Expert and Fusion

2011-05-04 Thread Michael Anstis
I don't know of any such links. Fusion depends upon Expert so they must coexist if you are to use Fusion. Fusion is really the CEP aspect of Expert, I don't believe it possible to "install" Expert without Fusion's extensions. An event based system would be one where you need to make temporal dec

[rules-users] Fw: Regarding Drools - Expert and Fusion

2011-05-04 Thread Sumeet Karawal
Hi , I had posted this earlier : " Could somebody please let me know about any link or document for Best Practices regarding JBoss Rules(Expert) and Fusion. Also any link or document regarding Technical Architecture of JBoss Rules (Expert) and JBoss Fusion Stack. " Also I have a query as how

Re: [rules-users] Looping through a vector object in a rule

2011-05-04 Thread Michael Anstis
I assumed claimHistory is not related to Claim in your example, if it is however you can also do this:- when $c : Claim( $a : aField ) $ch : ClaimHistory( aField == $a ) from $c.claimHistory then ... end Or, assuming bidirectional references:- when $c : Claim( $a : aField ) $

Re: [rules-users] Using constant for salience instead of hardcoded values?

2011-05-04 Thread Swindells, Thomas
Salience can be defined using expressions - so have you tried it? If referencing a static constant (perhaps in a java class) doesn't work you could try a global, if that doesn't work try defining a function call which returns the desired value, if that doesn't work you could add an extra fact con

Re: [rules-users] Looping through a vector object in a rule

2011-05-04 Thread Michael Anstis
You'd be better off inserting the individual claim history objects:- when $c : Claim( $a : aField ) $ch : ClaimHistory( aField == $a ) then ... end IIRC you can achieve the same by inserting the Vector by providing another rule to expand it first:- Vector claimHistory = getClaimHisto

Re: [rules-users] Using constant for salience instead of hardcoded values?

2011-05-04 Thread Wolfgang Laun
One way to achieve this (with a little extra effort) would be to use a DSL where you define START etc. as keywords with an expansion to "salience 100" etc. -W On 4 May 2011 10:09, alebu wrote: > Hi all, > Is it possible to use a constant for salience instead of hardcoded > value? It have a sence

[rules-users] Looping through a vector object in a rule

2011-05-04 Thread sdinoo
I am new to drools I am inserting into a ksession a single claim POJO + vector of previous claims Like this ksession.insert(claim); // single claim ksession.insert(historyClaims); // vector of claims ksession.startProcess("c

[rules-users] Using constant for salience instead of hardcoded values?

2011-05-04 Thread alebu
Hi all, Is it possible to use a constant for salience instead of hardcoded value? It have a sence when you have many rules and only several salience level. They maybe more descriptive like START, VALIDATION, etc and easier to maintain in the future. If it not possible right now, then maybe it worth

[rules-users] configuring drools timers (and persistence)

2011-05-04 Thread Jordi Alvarez
Hello, I am involved in a project in which we are using Drools Flow 5.1.1. as the underlying BPM. We have drools integration with Spring. We are using JPA+Spring+Drools integration, and have setup the knowledge base and stateful session as indicated in the drools spring integration documentation.