Re: [rules-users] Knowledge Base and Guvnor

2011-01-04 Thread Michael Anstis
Hi, You should be able to use the URL syntax with KnowledgeBuilder as follows:- final String STANDARD_URL = " http://your-guvnor-instance-host/org.drools.guvnor.Guvnor/package/standard/LATEST.drl "; final String CUSTOMER_URL=" http://your-guvnor-instance-host/org.drools.guvnor.Guvnor/package/cust

Re: [rules-users] using complex evaluate expressions with DSL

2011-01-04 Thread maverik j
is there any restriction in terms of using custom function in condition etc. If I add function evaluation to conditions its messing up with dsl. For pattern matching if I use custom function defined in drl then its not able to parse that properly [when][] {attr:\S+} follows pattern {pattern:\S+} =

Re: [rules-users] using complex evaluate expressions with DSL

2011-01-04 Thread Wolfgang Laun
2011/1/4 maverik j > is there any restriction in terms of using custom function in condition > etc. > If I add function evaluation to conditions its messing up with dsl. For > pattern matching if I use custom function defined in drl then its not able > to parse that properly > > [when][] {attr:\S

Re: [rules-users] using complex evaluate expressions with DSL

2011-01-04 Thread maverik j
2011/1/4 Wolfgang Laun > > > 2011/1/4 maverik j > > is there any restriction in terms of using custom function in condition >> etc. >> If I add function evaluation to conditions its messing up with dsl. For >> pattern matching if I use custom function defined in drl then its not able >> to pars

Re: [rules-users] Does Drools Fusion support "Group By" clause ?

2011-01-04 Thread Gabor Szokoli
Hi, Purely for educational purposes I am trying to figure out how this will work when multiple Sale instances share the same "type" string. It seems to me that under the default "identity" assertion mode of the Working Memory, as many SaleType instances would be maintained as there are unexpired

Re: [rules-users] using complex evaluate expressions with DSL

2011-01-04 Thread Wolfgang Laun
Do you have any comments ("#..." or "//...") between when and then? If so, please remove and try again. If this doesn't fix it, please post completely and exactly - the rule from the DSLR - the full DSL - Drools version. Thanks -W 2011/1/4 maverik j > > > 2011/1/4 Wolfgang Laun > > >> >> 20

Re: [rules-users] Does Drools Fusion support "Group By" clause ?

2011-01-04 Thread Wolfgang Laun
On 4 January 2011 11:15, Gabor Szokoli wrote: > Hi, > > Purely for educational purposes I am trying to figure out how this > will work when multiple Sale instances share the same "type" string. > > It seems to me that under the default "identity" assertion mode of the > Working Memory, as many Sa

Re: [rules-users] using complex evaluate expressions with DSL

2011-01-04 Thread maverik j
Here is the complete DSL/DSLR DSLr: rule "Your First Rule" when There is a Department There is at least one Person - with a valid subOrdinate - check that name follows pattern "M" then >System.out.println("Test Generic Cosntranit done !!!"); end DSL: [keyword][]check that {con

Re: [rules-users] Drools in production use vs. JBoss BRMS commercially supported version?

2011-01-04 Thread Mauricio Salatino
The drools platform has an incredible amount of features, the core is stable but as mark said new features and new bug fixes can only be found in the community release. I also think that the community answers pretty fast to critical bug fixes. So basically depends on your use case and in the amount

Re: [rules-users] Does Drools Fusion support "Group By" clause ?

2011-01-04 Thread Edson Tirelli
Sorry, my mistake. Wolfgang's suggestion works, but you can also simply define type as the key on sales type: declare SalesType type : String @key end Logical insertions always use equality method, even if regular insertions use identity. Edson 2011/1/4 Wolfgang Laun : > > > On 4

Re: [rules-users] Drools Human Task Service Persistence

2011-01-04 Thread tangrui...@gmail.com
Sorry for the delayed reply, I almost missed this email. In the file ProcessInstanceInfo.orm.xml, there's a statement like I think you should notice this, but this really does not work, I don't know w

Re: [rules-users] using complex evaluate expressions with DSL

2011-01-04 Thread Wolfgang Laun
You have omitted the regular expressions from some of the variable definitions in DSL entries: [when][] {attr:\S+} follows pattern {x:\S+} = startsWithFunction({attr},{x}) Restore them all, and it's OK. -W 2011/1/4 maverik j > Here is the complete DSL/DSLR > > DSLr: > rule "Your First Rule"

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

2011-01-04 Thread John Peterson
This is sort of a repost of an error I've been getting, but I thought with the new year, I'd give it another shot. I've been getting the following exception in my code: [2010:12:361 09:12:910:debug] KnowledgeAgent rebuilding KnowledgeBase using ChangeSet [2010:12:361 09:12:972:exception] ***java.

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

2011-01-04 Thread Michael Anstis
Hi John, AFAIK you need both client (i.e. your IDE) and server versions of Guvnor to be the same. If you are trying to load a package from an existing (5.0.1) Guvnor repositoty I believe you will need to re-compile\re-package the binaries as a number of SerialVersionIds changed. It wasn't clear

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

2011-01-04 Thread John Peterson
> deserialize KnowledgeDefinitionsPackage? error, it seems to stem from > an incompatibility between versions of Drools. > > Do I need to install the 5.1.1 Guvnor Standalone to my server to bring > the versions into synch, or am I experiencing some other sort of problem? > > > _

[rules-users] Guvnor - No function but rule containing it still validates

2011-01-04 Thread Rob Fisher
Using Guvnor 5.1.1 I've written a rule utilizing a function that does not exist within the same package. However, the rule still validates ok. How is this possible? Rob Fisher Systems Analyst, Agency Awards Desk 309-735-4136 Cell 309-660-4957 ___

[rules-users] Need help with Decision Table Conditions

2011-01-04 Thread Jason Mihalick
I have a decision table with the conditions shown in the graphic below. When Drools attempts to compile the spreadsheet I get the following errors: nested exception is java.lang.RuntimeException: Unable to return Declaration for identifier '$pgMeta' : [Rule name='Section Head Spacing_18'] Unable

Re: [rules-users] Knowledge Base and Guvnor

2011-01-04 Thread Dean Whisnant
Awesome, I was hoping there was a simple solution, but I just didn't see it in all the documents I've been through. I'm starting out with my proof of concept by just coding like this and then will look more into ChangeSets as that sounds to be more in tuned to our application. From: rules-user

Re: [rules-users] using complex evaluate expressions with DSL

2011-01-04 Thread maverik j
Ohh ..that was tricky - I neeed to read this sincerely :) thanks a ton for all your help and time Thanks & Regards, Maverik 2011/1/4 Wolfgang Laun > You have omitted the regular expressions from some of the variable > definitions > in DSL entries: > > [when][] {attr:\S+} follows pattern {

Re: [rules-users] Subject: Drools Planner - Design Suggestions

2011-01-04 Thread ge0ffrey
Dont just schedule adds: also schedule reserve adds in a queue. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Subject-Drools-Planner-Design-Suggestions-tp2169722p2196930.html Sent from the Drools - User mailing list archive at Nabble.com. __

[rules-users] Drools 5.1 JMX Monitoring.

2011-01-04 Thread Benson Fung
Hi , As I understand, Drools 5.1 made API enhancement to support JMX standard and enables knowledge base and knowledge session monitoring and inspection using any JMX console. It also can display the average firing time. How to implement this? Is there any sample for this? Please advise. Than