Re: [rules-users] (no subject)

2011-09-16 Thread Michael Anstis
What JARs are you using then? We don't have a class "org.drools.brms.server.util.BRDRLPersistence" only "org.drools.ide.common.server.util.BRDRLPersistence" in droolsjbpm-ide-common-5.2.0.Final.jar 2011/9/16 AZZAZ mohamed > I use version drools-core5.2.0 and drools-compiler 5.2.0 > In fact I c

Re: [rules-users] (no subject)

2011-09-16 Thread Michael Anstis
OK, let's step back a bit. What are you trying to achieve? Do you *want* the DRL text, or do you want to load a BRL rule? Where did you get the BRL rule from, normally rules are authored in DRL (in which case you'd use KnowledgeBuilder, as in all the examples) or in Guvnor (in which case using a

Re: [rules-users] [Guvnor] template keys in formula and metadata

2011-09-16 Thread Michael Anstis
Unfortunately, it is not possible to load DRT's into Guvnor (and have them editable). You can only add it as a "file type" asset for storage (and versioning) in Guvnor. Rule Templates authored in Guvnor are persisted to the repository as BRL using org.drools.guvnor.server.util.BRDRTXMLPersistence.

Re: [rules-users] (no subject)

2011-09-16 Thread Michael Anstis
Support for the BRL editor in Eclipse was dropped as from 5.2.0, so I assume you are not using the Eclipse Plugin for 5.2 - in which case backward compatibility cannot be guaranteed. See the release notes for details. The WebDav interface in Eclipse is probably most suitable for your needs. You ca

Re: [rules-users] Questions about Drools, Eclipse, Guvnor

2011-09-16 Thread Michael Anstis
ook at the Roadmap in JIRA but, as I haven't found what > I'm looking for, here I am :-). > > Today I read a message of Michael Anstis telling that BRL editor support > has been dropped since 5.2, and I have a question: how do you see the > future concerning rule authoring wit

Re: [rules-users] Thoughts about rule authoring

2011-09-16 Thread Michael Anstis
You could externalise the paths for the annotations:- MyConfigurationSettings( $jimPath : pathToJimAnnotations ) jim : Annotation( name = $jimPath ) (where MyConfigurationSettings is a fact inserted into WM). or MyConfigurationSettings( $jimPath : pathToJimAnnotations ) from $globalServiceObjec

Re: [rules-users] Guvnor test scenarios for rules that use globals

2011-09-16 Thread Michael Anstis
I would be interested in learning your main reasons for ceasing with Guvnor. We are always endeavouring to improve Guvnor and, accepting it has much to be improved, would appreciate your view of its failings that led to your decision. sent on the move On 16 Sep 2011 20:52, "lhorton" wrote: > Sor

Re: [rules-users] Guvnor test scenarios for rules that use globals

2011-09-16 Thread Michael Anstis
Thank-you Lisa for your honest and candid reply. Enum support was vastly improved in 5.2 and we continue to try to make improvements that will be of benefit to users whilst also endeavouring to achieve our own goals. I hope as we continue to enhance Guvnor you are able to reconsider it in the futur

Re: [rules-users] [Guvnor] template keys in formula and metadata

2011-09-18 Thread Michael Anstis
BRL is an XStream representation of the underlying object model; that does not support what you ask. AFAIK you are free to use template keys in DRL where-ever you like, so what you ask would be possible using DRL templates, as covered in the Chapter 6 of the Drool Expert user-guide. I assume howe

Re: [rules-users] Accessing rules from WAS

2011-09-21 Thread Michael Anstis
Yikes, putting application specific stuff in shared/classes isn't ideal Anyway, it happened to work on Tomcat because Tomcat looks in the /shared folder as part of its classloader policy. WAS will be different and I'd recommend putting your application files in your application space on the s

Re: [rules-users] decision table 'not exists'

2011-09-21 Thread Michael Anstis
You can also choose to negate a pattern in the web-guided dtable editor in Guvnor when defining a pattern. You didn't specify whether you were using XLS or Guvnor dtables. On 21 September 2011 20:52, Mark Proctor wrote: > On 21/09/2011 20:41, hmoazed wrote: > > I need to have a rule in a decisi

Re: [rules-users] Guvnor Repository Report

2011-09-28 Thread Michael Anstis
Have a look at the REST API documented in the user guide. I suspect you'll be able to get a list of packages, and for each a list of assets. On 28 September 2011 17:59, sanjuk72 wrote: > I have a following need: > > We are maintaining all rules in GUVNOR. > We need to run a weekly report displa

Re: [rules-users] Memory leak in 5.2/5.3

2011-09-30 Thread Michael Anstis
I believe early next week, unless something critical arises. Mark Proctor will have the final say. sent on the move On 30 Sep 2011 18:55, "Jamie" wrote: > I recently ran into this issue and I've confirmed through testing that Drools > 5.3.0.CR1 in conjunction with JBPM 5.1.1 Final fixes the prob

Re: [rules-users] running Test scenarios in Guvnor 5.2.0.CR1 causes a memory leak

2011-09-30 Thread Michael Anstis
You are correct, the decision table model changed between 5.1 and 5.2.0.Final. You can load 5.1 tables into 5.2.0.Final but the model changed between pre-release 5.2.0.CR1 and 5.2.0.Final to support CEP functions. Guvnor uses Drools Expert to run tests and therefore problems in Expert will affect

Re: [rules-users] Embed BRL Editor in application

2011-10-04 Thread Michael Anstis
Have you read this ? On 4 October 2011 06:35, shubhranshu wrote: > Hello everybody, > > I am new to drools. I want to embed the BRL Editor in our application. I > have read somewhere that it can be done by calling

Re: [rules-users] Problem with Java enums in Guvnor "multiple field constraints"?

2011-10-05 Thread Michael Anstis
This was fixed recently for 5.3.0.Final You can use either "multiple field constraints" or "Add more options to this fields values" (the icon at the end of a field constraint). On 5 October 2011 16:43, enkidu wrote: > I've been playing with Drools and Guvnor and think I've encountered a > p

Re: [rules-users] NPE on fact insertion if rule has sliding window

2011-10-07 Thread Michael Anstis
Edson, you mean 5.3.Final? sent on the move On 7 Oct 2011 21:08, "Edson Tirelli" wrote: > >This is fixed in master. Will be in 3.1 final release. > >Edson > > 2011/10/7 mike9322 > >> >> laune wrote: >> > >> > There's a bug in the incremental build as done by the KnowledgeAgent. If >> >

Re: [rules-users] How to convert .drl file to XML ...

2011-10-11 Thread Michael Anstis
Any particular XML schema? The simplest answer would be to wrap your package DRL into an XML element:- package com.rules import com.model.Bank; rule "Your First Rule" when $b1:Bank(name=="Manohar", accntno=="533") then $b1.setBalance(5000);

Re: [rules-users] Guvnor - Loading enums programatically using rule metadata

2011-10-12 Thread Michael Anstis
I thought I had already replied, but.. anyway, why not have one rule create new facts containing the necessary rule attributes in their RHS that are inserted into WM. Your other rules could then use these facts' fields for the Enum loader... sent on the move On 12 Oct 2011 18:22, wrote: > I

[rules-users] Fwd: Ocassional Refresh of Knowledgeagent (Only If There is any Change)

2011-10-14 Thread Michael Anstis
Open for comment. -- Forwarded message -- From: Date: 14 October 2011 12:43 Subject: Ocassional Refresh of Knowledgeagent (Only If There is any Change) Hi Michael, I am using ResourceChangeScannerService to scan the resources in our application. But it seems that after every spe

Re: [rules-users] Drools Guvnor -- Not seeing Model Correctly

2011-10-16 Thread Michael Anstis
Hi, You can create two types of Model I'm Guvnor: 1) a declarative model, in which case you can open the model and see the facts and fields; 2) upload a POJO model, in which case the model screen only allows you to download the current version. When authoring rules in Guvnor you select a Fact (cl

Re: [rules-users] Drools Guvnor -- Not seeing Model Correctly

2011-10-17 Thread Michael Anstis
tion > problem]Error importing : Vehicle error”. > > ** ** > > Any ideas? > > ** ** > > *From:* rules-users-boun...@lists.jboss.org [mailto: > rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis > *Sent:* Sunday, October 16, 2011 3:06 AM > *

Re: [rules-users] externalization of input constraints in a rule

2011-10-19 Thread Michael Anstis
Insert a SSN fact? when SSN( $ssn : ssn ) $person : Person( ssn == $ssn ) then ... sent on the move On 19 Oct 2011 20:56, "bharath87" wrote: > Hi Guys, > I am new to Jboss Drools. I am writing rules for an application > and here is where I need some help. > > Suppose I ha

Re: [rules-users] externalization of input constraints in a rule

2011-10-20 Thread Michael Anstis
The same principle applies, but instead of inserting a single SSN container, you insert a generic "parameters" container:- rule "rule 1" when Parameters( rule == "rule 1", $ssn : ssn, $citizenship : citizenship ) Person( ssn = $ssn, citizenship == $citizenship ) then If your para

Re: [rules-users] Define global variables at the top of a rules file

2011-10-20 Thread Michael Anstis
Not as far as I know, but it has been asked before. Interestingly, you can initialize the value of declared facts' fields... and this doesn't appear a million miles away. Scotty? Mark? JIRA? 2011/10/20 Martin A > Hello, > > I'd like to set global rules variables at the top of a rules file, lik

Re: [rules-users] Guvnor -- Decision Table

2011-10-20 Thread Michael Anstis
No, not possible at present am afraid. There is a JIRA for this and it is scheduled for future work. sent on the move On 21 Oct 2011 03:02, "johnz" wrote: > Is it possible to export a decision table to excel or csv ? If yes, could > someone tell me how (using v 5.2) > > > > -- > View this mess

Re: [rules-users] Problem in adding a Class to PKG

2011-10-21 Thread Michael Anstis
What are you trying to achieve? As each email goes back and forth we appear to be moving from your original questions to, perhaps, nearer your requirement. If you upload a XLS decision table to Guvnor and the necessary supporting POJO model file you should be able to build the package therefrom,

Re: [rules-users] Rule content keyword search

2011-10-21 Thread Michael Anstis
I assume you mean in Guvnor? AFAIK we only index on rule name, but I may be wrong. Not all assets are stored as DRL and therefore indexing their content could present a major change. Please do raise a JIRA though if you consider the feature as required. sent on the move On 22 Oct 2011 00:34, w

Re: [rules-users] How to use GlobalArea enum inside package defined rules

2011-10-24 Thread Michael Anstis
AFAIK, you still need to import the asset from the Global Aarea into your package. Think of it like creating a symlink\shortcut between the Global Area and your package - changes to the asset in the Global Area will be visible in your package. Assets in the Global Area are not automatically visib

Re: [rules-users] 5.3.0.Final resource change scanner bug

2011-10-24 Thread Michael Anstis
I think it is this problem https://issues.jboss.org/browse/GUVNOR-1699... but no fix yet :( On 24 October 2011 21:30, lhorton wrote: > I tried loading up 5.3.0 this weekend but have run into this bug: > https://bugzilla.redhat.com/show_bug.cgi?id=733008 > > my server log says: > Exception in thr

Re: [rules-users] 5.3.0.Final resource change scanner bug

2011-10-24 Thread Michael Anstis
Sorry Lisa, I should have remembered you don't use Guvnor. I assume all rules compile ok without use of a change-set? Is it possible to put together a test case and open a JIRA? This sounds like something new. sent on the move On 24 Oct 2011 22:02, "lhorton" wrote: > We are not using Guvnor. R

Re: [rules-users] 5.3.0.Final resource change scanner bug

2011-10-24 Thread Michael Anstis
Thanks Lisa, I appreciate it is a pain for you but your help is much appreciated. sent on the move On 24 Oct 2011 23:03, "lhorton" wrote: > Yes, all compile ok without change set (our tests compile the rules in > code, > but our server compiles using knowledge agent). I had to roll everything

Re: [rules-users] Drools 5.3.0 Dependencies

2011-10-25 Thread Michael Anstis
I assume you replaced both drools-core and drools-compiler with those for 5.3? Furthermore, you should endeavour to use knowledge-api which contains the "public" API. Can you isolate the rules from grail, to understand if it is an integration issue too? On 25 October 2011 20:04, arrehman wrote:

Re: [rules-users] Drools 5.3.0 Dependencies

2011-10-25 Thread Michael Anstis
What other branch? If you are de-serializing persisted rules, then "yes", I believe there is no backwards compatibility between versions. IIRC there was a compatibility matrix created (very) recently, but for the life of me I can't find a link - hopefully somebody else reading this can remind me.

Re: [rules-users] Drools 5.3.0 Dependencies

2011-10-25 Thread Michael Anstis
I think you are going to need to provide some code and rule definitions to help solve your problem. sent on the move On 25 Oct 2011 21:22, "arrehman" wrote: > Yes locally in machine just to make sure i have only drools upgrade > happening. My issues are because of this upgrade guaranteed. > > T

Re: [rules-users] Decision Table with more than 9 parameters

2011-10-26 Thread Michael Anstis
That sounds like a bug, can you please open a JIRA and attach your example? sent on the move On 26 Oct 2011 14:10, "marta" wrote: > Hi, I've a problem with Drools 5.1.1. I'm using a decision table to write > my rules and I need to use more than 9 parameters in the same action, but > something d

[rules-users] Fwd: Questions

2011-10-26 Thread Michael Anstis
Anybody? -- Forwarded message -- From: Damien Renier All, I’m trying to prepare some answers to questions of a customer The client wish to execute some rules on dates which are not today. The rule is: 1. | rule "TooYoung" 2. | date-expires "26-MAR-2013" 3. | d

Re: [rules-users] inserting multiple facts in RHS

2011-10-27 Thread Michael Anstis
Why not get get List using "from" in the LHS and iterate this in the RHS adding individual facts? On 27 October 2011 21:39, RK wrote: > I want to insert multiple facts sourced by a 'from' clause to a service > method. > For Ex: > > when > ... > then > insert( mycustomobject() from globalService

Re: [rules-users] Guvnor data enumeration issue

2011-10-28 Thread Michael Anstis
You'll need to raise a JIRA for an enhancement. Dependent enumerations are currently only designed to operate between enumerations. With kind regards, Mike 2011/10/28 > I am trying to use data enumerations and running into a problem. Following > the Vehicle engineType/fuelType data enumeratio

[rules-users] Fwd: "Accumulate and Collect" issue - Guvnor 5.2 Final

2011-10-28 Thread Michael Anstis
-- Forwarded message -- From: Date: 28 October 2011 10:48 Subject: "Accumulate and Collect" issue - Guvnor 5.2 Final Hi, We gave a try with 5.2 Final version, and see that all "collect" clauses appears in grey and are not editable (such conditions are also not deletable). Every

Re: [rules-users] "Accumulate and Collect" issue - Guvnor 5.2 Final

2011-10-28 Thread Michael Anstis
I assume you have not tried adding the import? Select the package, edit the package, add an import for java.util.List. On 28 October 2011 10:55, Michael Anstis wrote: > > > -- Forwarded message -- > From: > Date: 28 October 2011 10:48 > Subject: "Accumu

Re: [rules-users] Regression 5.1->5.2 with conflicting ClassNames

2011-10-28 Thread Michael Anstis
Added code examples... * Sample1:* import namespace1.MyObject; rule "r" when namespace2.MyObject( value == 3 ) MyObject( attr1 == "foo" ) //Here, got a parsing error stating "attr1" is not a field because it looks it up from namespace2.MyObject then // ... end *Sample2:* import

Re: [rules-users] rule fires several times

2011-10-30 Thread Michael Anstis
Your first rule matches against the Customer, as does the second. The modify in the first rule causes both rules to re-evaluate. The first does not match but the second does. IIRC no-loop or lock-on-active can be uses to avoid this, but I'd suggest you double check the docs. sent on the move On

Re: [rules-users] Guvnor custom form not working for DSL sentences

2011-10-30 Thread Michael Anstis
Can you bit a little more descriptive? I am having trouble knowing exactly to what part of Guvnor you refer. sent on the move On 30 Oct 2011 21:52, wrote: > > Hi > > Is the guvnor custom form not meant for use with fact fields appearing in > dsl sentences? It works fine with guided editor, not

Re: [rules-users] global as link to DB: different results

2011-10-31 Thread Michael Anstis
I thought use of the "from" keyword allowed you to reason over facts (potentially) not in WM. I believe the OP's example is mentioned in the docs? sent on the move On 31 Oct 2011 15:08, "Wolfgang Laun" wrote: > Globals cannot to be used - directly or indirectly - as objects that > should trigge

Re: [rules-users] global as link to DB: different results

2011-10-31 Thread Michael Anstis
data used as > stand-in for literals on the LHS. Other than this: beware! > > -W > > > > 2011/10/31 Michael Anstis > >> I thought use of the "from" keyword allowed you to reason over facts >> (potentially) not in WM. I believe the OP's example is

Re: [rules-users] Guvnor custom form not working for DSL sentences

2011-10-31 Thread Michael Anstis
> DSL sentences), the custom form does pop up, as shown in attached file > ss1.gif. > > When I create a rule using the DSL sentence (when there is a vehicle with > engine type {value}), the value is the usual text field. Clicking on it > does not invoke the custom form. Please see

Re: [rules-users] Guvnor custom form not working for DSL sentences

2011-11-01 Thread Michael Anstis
eate a rule using the Guided Editor the usual way (without using > DSL sentences), the custom form does pop up, as shown in attached file > ss1.gif. > > When I create a rule using the DSL sentence (when there is a vehicle with > engine type {value}), the value is the usual text field.

Re: [rules-users] Guvnor with out file system access

2011-11-02 Thread Michael Anstis
I believe it is not possible at present. We are having the same issue getting Guvnor to run in OpenShift... If you managed to re-factor and find a solution please feel free to contribute back to the project :) On 2 November 2011 00:06, rahul <8085.ra...@gmail.com> wrote: > > We have an environm

Re: [rules-users] Guvnor Import .drl Issues

2011-11-04 Thread Michael Anstis
Can you attach a (5.1) repository export to a JIRA and we'll take a look? https://issues.jboss.org/browse/GUVNOR Cheers, Mike On 2 November 2011 20:35, mpinch wrote: > I'm running guvnor 5.1 at the moment. I can export my .drl file just fine. > When I try and import it back into guvnor 5.1 (

Re: [rules-users] guvnor and drl rules file uploading

2011-11-04 Thread Michael Anstis
Have you read the Guvnor User-guide? More specifically the section relating to integration? On 3 November 2011 15:31, gcautiero wrote: > Hello, > > i'm working with different drools template (.drt) on excel raw data files. > I > have an application to generate rules files (.drl) to use it in my

Re: [rules-users] Drools Flex Designer

2011-11-04 Thread Michael Anstis
AFAIK that isn't maintained within the scope of this mailing list. You might have better luck contacting the project's owner: http://code.google.com/u/105387811183481630010/ On 4 November 2011 09:19, ANJALI wrote: > Hi guys , > Iam new to this drools flex designer. > i have seen this link http:

Re: [rules-users] Human Task - Connect to guvnor without using jbpm console

2011-11-06 Thread Michael Anstis
Guvnor exposes a REST API. As for the jBPM questions I don't know - the jBPM forums may provide more information if none is forthcoming here. We are also working to integrate the jBPM console into Guvnor which should be completed soon. sent on the move On 6 Nov 2011 05:33, "S.M.H.Jamali" wrote:

Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Michael Anstis
Hi, AFAIK the BPMN2 editor was a community contribution and support is now limited. The problem you describe is normally caused by an asset being saved and not re-loaded (manually or systematically) before being saved again. We use an optimistic lock and hence once an asset is saved it needs to

Re: [rules-users] Guvnor (5.3.0 Final)- Rule using accumulate with windows:length delivers an unexpected result

2011-11-08 Thread Michael Anstis
I don't see that this problem is explicitly Guvnor's. Have you tried replicating the issue with vanilla DRL and a standalone Drools project? I suspect you'll have the same issue - perhaps somebody more familiar with the workings of sliding windows and accumulate functions can advise further. Wit

Re: [rules-users] Where in DB does Guvnor store "description" of rules?

2011-11-08 Thread Michael Anstis
You might be best looking at the REST API for Guvnor. AFAIK you'd be able to retrieve rules and their meta-data. On 8 November 2011 10:11, Praveen wrote: > Hi, > > Our application expects rule name and its description to be displayed in > the > UI and both of > these are to be retrieved from DB

Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Michael Anstis
Can you confirm if you *close* and *re-open* you are able to *save* again? This would confirm that (somehow) the asset needs to be programmatically re-opened. Not knowing the BPMN2 editor code-base, you might need to look into it and fix a bug. You could raise a JIRA too, but there's no promise

Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Michael Anstis
Great. So your options are: raise a JIRA we will look at at some time, or have a look in the code yourself :) The problem is as I surmised; when saving the object representing the BPMN2 process it needs to be re-loaded\refreshed so subsequent optimistic lock checks succeed. On 8 November 2011 11

Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Michael Anstis
If you develop a fix we'd obviously love to have you contribute it back Why not consider becoming the maintainer of the BPMN2 stuff? :) On 8 November 2011 11:36, ANJALI wrote: > Thanks a lot for ur info > ill try to change the code > > > > -- > View this message in context: > http://dro

Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Michael Anstis
can reproduce the issue, as well > as trying to do this with other assets not just BPMN2 processes. I assume > you are storing your assets embedded into your app via the standalone > servlet, which _is_ Guvnor code ;) > > Thanks. > > On 11/8/11 6:20 AM, Michael Anstis wrote: >

Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Michael Anstis
A Guvnor JIRA. 2011/11/8 Tihomir Surdilovic > On 11/8/11 6:59 AM, Michael Anstis wrote: > > Yes, I know that :) > > However, in the grand scheme of open JIRAs and (I assume) the importance > to the OP of having this fixed as soon as possible them looking themselves >

Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Michael Anstis
being refreshed. 2011/11/8 Tihomir Surdilovic > On 11/8/11 6:40 AM, Michael Anstis wrote: > > If you develop a fix we'd obviously love to have you contribute it back > > Why not consider becoming the maintainer of the BPMN2 stuff? :) > > The integration of jBPM

Re: [rules-users] integrate guvnor UI into your own application

2011-11-09 Thread Michael Anstis
1) You can put a bridge\adapter layer in between your object model and that used in Guvnor, but there is nothing in Guvnor itself. 2) Guvnor does support field expressions in the BRL (Business Rule - Guided Editor). When defining a field constraint select "Expression". There were some good improve

Re: [rules-users] Using Drools with JSP application.

2011-11-10 Thread Michael Anstis
Drools is a library you can use in Java applications. You should therefore be able to reference in your Tomcat web-application by adding the necessary JARS to your WEB-INF/lib folder. Your JSPs should then be able to create or reference a KnowledgeBase, create Sessions and perform the necessary f

Re: [rules-users] Using Drools with JSP application.

2011-11-11 Thread Michael Anstis
Yes you are correct. On 11 November 2011 07:51, sachintaware wrote: > Thank you for the prompt response Mike :) > > What I get by you say is that I should create a Web-Application project in > eclipse and not a Drools project(What traditionally examples show in the > documentation) and import th

Re: [rules-users] When I insert fact to working memery in the rule file, others rule some time can't be fired.

2011-11-11 Thread Michael Anstis
Do you insert a User Fact too? Perhaps seeing the Java side of your code will help. On 11 November 2011 08:18, luke wrote: > Hi, > > When I insert fact to working memery in the rule file, others rule some > time > can't be fired. > > I use the drools rule version is 5.3.0.Final > > call rule en

Re: [rules-users] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Michael Anstis
Something must be wrong. Providing your spreadsheet would be helpful. On 11 November 2011 10:11, hdrews wrote: > I have a decision table with functions but they are not contained in the > generated DRL. > > What have I to do to fix this? > > -- Heinz > > -- > View this message in context: > htt

Re: [rules-users] Specifiying dialect MVEL for rules generate from decision tables

2011-11-11 Thread Michael Anstis
Have you read the user guide? There is a attribute for dialect. On 11 November 2011 10:13, hdrews wrote: > How can I select the dialect for generated rules? > > -- Heinz > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Specifiying-dialect-MVEL-for-rules-generate-from-d

Re: [rules-users] Specifiying dialect MVEL for rules generate from decision tables

2011-11-11 Thread Michael Anstis
ols Expert 5.2 final as reference > ( > http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/html/ch06.html > ). > > Because I could not found a reference I have searched for "dialect" > and could not get a hit. > > Have I read the wrong user guide? &

Re: [rules-users] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Michael Anstis
You have a space after the keyword "Functions ". Removing this solves the problem. 2011/11/11 Heinz Drews > I have reduced the original XLS, but the problem still exists. > > > 2011/11/11 Michael Anstis : > > Something must be wrong. > > > > Pro

Re: [rules-users] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Michael Anstis
d I open a jira? > > > 2011/11/11 Michael Anstis : > > You have a space after the keyword "Functions ". > > > > Removing this solves the problem. > > > > 2011/11/11 Heinz Drews > >> > >> I have reduced the original XLS, but the problem still

Re: [rules-users] Using Drools with JSP application.

2011-11-11 Thread Michael Anstis
That's entirely up to you. You'll need the DRLs to be on the server classpath for the application. There are different ways this can be achieved. Normally, you'd add a folder to the source of the Java Build path, then the DRLs will be in the web applications WEB-INF\classes folder. On 11 Novembe

Re: [rules-users] Guvnor (5.3.0 Final)- Rule using accumulate with windows:length delivers an unexpected result

2011-11-11 Thread Michael Anstis
Are you able to test standalone with Drools 5.3.0.Final, as this is what Guvnor 5.3.0.Final uses. Also, is the standalone DRL identical to that you use in Guvnor? On 11 November 2011 12:56, axel wrote: > *** Update *** > > Meanwhile, I've checked the same rule and test case standalone as Mike >

Re: [rules-users] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Michael Anstis
with "Functions" working I will dig > deeper, > Also looking into the inclusion of "dialect" > > > > 2011/11/11 Michael Anstis : > > It would be best to create a JIRA to record and track the issue. > > > > Are you planning on providing a git pull

Re: [rules-users] Functions not generated from decision tables with Drools 5.2

2011-11-11 Thread Michael Anstis
BTW, if you need a hand setting up your environment just ask. It should be quite straight forward and there is a helpful README.md file that explains the necessary steps. On 11 November 2011 17:10, Michael Anstis wrote: > Hi Heinz, > > I've stayed purposefully quiet on the dia

Re: [rules-users] String length check

2011-11-13 Thread Michael Anstis
Guvnor used to escape all literals with quotation marks before 5.2. There have been numerous fixes to the BRL Guided Editor for 5.2 onwards. I would definitely recommend an upgrade. Can you please advise if you used an expression for your nested accessor or sub-field constraints? Thanks, Mike

Re: [rules-users] Collecting properties in a rule

2011-11-14 Thread Michael Anstis
Something like this? when $t : Town( ) $s : SuperMarket( town == $t, $lid : locationId ) $ls : HashSet( size == 3) from ( Location( locationId = $lid ) ) I suspect Location would have to override equals and hashCode correctly. Once you have some DRL that works I'd suggest moving to G

Re: [rules-users] Adding a custom logo to Drools Guvnor

2011-11-14 Thread Michael Anstis
Nope, nothing obvious missing :) Our move to GWT's Activties & Places has led to the logo becoming a GWT resource and hence compiled into the code-base. What are people's preferences - update documentation, or change screen so logo can be changed by updating an external image file? If we change

[rules-users] Fwd: 5.3.0 Final - Rule using accumulate with windows:length delivers an unexpected result

2011-11-14 Thread Michael Anstis
I'd have to defer to the drools-expert people.. as the problem appears to be with 5.3.0.Final of drools-expert. As a reminder, the DRL failing in 5.3.0.Final (or giving different results to 5.2.0?) is:- rule "Event Processing Evaluation" dialect "mvel" when $list:java.util.List() from collect(

Re: [rules-users] Collecting properties in a rule

2011-11-14 Thread Michael Anstis
init( HashSet set = new HashSet(); ) > action( set.addAll( $m.getIds() ); ) > result( set ) ) > then > System.out.println( $name + " is a three-location town " + $s ); > end > > > > 2011/11/14 Michael Anstis

Re: [rules-users] Guvnor 5.3 : No more "Create New ..." button in "Browse" view ?

2011-11-14 Thread Michael Anstis
It was deliberate AFAIK. The button still exists under "Knowledge Bases". 2011/11/14 Vincent LEGENDRE > Hi all, > > The question is in the subjec : > In 5.2 there was a "create new" button in "browse" panel, which allow > business user to create new assets. > In 5.3, no more button ... > > Is i

Re: [rules-users] Guvnor 5.3 : No more "Create New ..." button in "Browse" view ?

2011-11-14 Thread Michael Anstis
IIRC its because we felt we had an unnecessary duplication. We also plan on changing the remaining button over time too. sent on the move On 14 Nov 2011 19:04, "Vincent LEGENDRE" wrote: > Yep, I saw the button under KB ... > But why ? > > ------ &

Re: [rules-users] Building our own UI for Drools

2011-11-15 Thread Michael Anstis
*Guvnor * The REST API has been most beneficial for others in your situation. The user-guide shows how you can retrieve an asset and store it back again. *Drools Expert * There is a "fluent API" with which you can programmatically construct rules. Furthermore, depending on the degree to which yo

Re: [rules-users] Drools Builder does not close xls-files after compiling to rules. Was: Issues with Eclipse Excel Plugin for Drools Decision Tables

2011-11-15 Thread Michael Anstis
Hi Andreas, Please feel free to create a JIRA https://issues.jboss.org/browse/JBRULES. Please be sure to document exact steps to re-create (including the platform\environment you use). Thanks, Mike 2011/11/11 Andreas Schlüter > Hi all > > Thanks again. Based on the feedback from this list an

Re: [rules-users] Adding a custom logo to Drools Guvnor

2011-11-15 Thread Michael Anstis
OK, we'll add it back for 5.4. https://issues.jboss.org/browse/GUVNOR-1752 On 14 November 2011 19:54, LCode wrote: > >From an end-user perspective I think the option to replace the 'basics' > simply by unpacking the war file is spot on, especially as this is the way > it was in previous version

Re: [rules-users] How to use a temp variable accorss multiple rules?

2011-11-15 Thread Michael Anstis
Pass the output of one rule as a Fact in Working Memory to the other. when Something() then insert( new Output()); end when Output() then //Whatever end On 15 November 2011 13:56, Zhao Yi wrote: > I write some rules to do some calculation. One rule's output is another > rule's

Re: [rules-users] How to use a temp variable accorss multiple rules?

2011-11-15 Thread Michael Anstis
Where ever you prefer. Since it is a transient class used to pass values between rules you could declare it in your DRL. However If the output has some value in your domain model there is an argument to have it as a member of your domain model. My example was contrived and overly simple but it p

Re: [rules-users] What is Entry point and Rule fact?

2011-11-15 Thread Michael Anstis
No, they are different. Perhaps a perusal of the user-guide would help? On 15 November 2011 14:24, Zhao Yi wrote: > What is the different between Entry point and Rule fact? Are they the same > thing? > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/What-is-Entry-po

Re: [rules-users] No rules loaded when reading package from Guvnor

2011-11-15 Thread Michael Anstis
To help isolate the problem, what happens if you try the same but without Spring? i.e. You use the KnowledgeAgent to retrieve the package from Guvnor, create a session, insert facts, fireAllRules etc? On 15 November 2011 16:41, sgo wrote: > Hello all, > > I'm a semi-beginner with Drools and am

Re: [rules-users] Guvnor 5.3 : Guided Rule Editor : mixing formula and field constraint in same pattern makes editor crash

2011-11-15 Thread Michael Anstis
Yes, agreed. Please raise a JIRA, https://issues.jboss.org/browse/GUVNOR, and assign to me. Thanks, Mike 2011/11/15 Vincent LEGENDRE > Hi, > As said in the subject mixing formula and field constraint in same pattern > makes the guided editor crash. > > I had rules in 5.2, which was using such

Re: [rules-users] No rules loaded when reading package from Guvnor

2011-11-16 Thread Michael Anstis
The patch has not been applied yet. @esteban, did you modify to (a) include the other two changes, (b) a test-case? Cheers, Mike 2011/11/16 Esteban Aliverti > I think you are fighting with this known bug: > https://issues.jboss.org/browse/GUVNOR-1699 > > ResourceChangeScanner is marking guvno

Re: [rules-users] No rules loaded when reading package from Guvnor

2011-11-16 Thread Michael Anstis
Take that back. I see ge0ffrey merged On 16 November 2011 17:51, Michael Anstis wrote: > The patch has not been applied yet. > > @esteban, did you modify to (a) include the other two changes, (b) a > test-case? > > Cheers, > > Mike > > > 2011/11/16 Esteb

Re: [rules-users] No rules loaded when reading package from Guvnor

2011-11-16 Thread Michael Anstis
@esteban But the other two Response.ok(...).header(...) should be fixed and submitted as another pull request, please :) And the test - if you have one. :) On 16 November 2011 17:54, Michael Anstis wrote: > Take that back. > > I see ge0ffrey merged > > > On 16 N

[rules-users] Guvnor: Work in progresss - Guided Decision Table editor and Template Data editor

2011-11-16 Thread Michael Anstis
I am refactoring the mergable grid widget, used by the captioned, to an event-based design and have pushed changes to the master branch in github. I pushed the changes as Jervis Liu is completing a major re-organisation of the Guvnor code-base this week and I didn't want to end up with merge confl

Re: [rules-users] Operation of "otherwise" in Decision Table (Guided editor) of Guvnor

2011-11-17 Thread Michael Anstis
Sure. It's a simple (partial) solution for having a rule match in the absence of any other rules matching. It only works for columns with literal values and either the "equals" or "not equals" operator. In essence it builds a "in" or "not in" DRL statement. Section 4.10.1.4 Operation of "otherwi

Re: [rules-users] 400 sorry, a technical error occured: Guvnor 5.3.0

2011-11-18 Thread Michael Anstis
Based upon the log the diabetes related decision table might not be valid. There also appears to be a problem deserialising a BPMN2 process. I suggest you try building and validating the package to try and find errors. sent on the move On 18 Nov 2011 20:52, "gs" wrote: > I am getting this err

Re: [rules-users] Exclude certain rules

2011-11-18 Thread Michael Anstis
Just a random thought but would the declarative agenda (for 5.3?) provide any help? sent on the move On 18 Nov 2011 21:23, "Jamie" wrote: > I don't think you can reference a fact in the enabled condition. There's > also no way to get a reference to the current rule like you can in the RHS, > w

Re: [rules-users] Rules that cumulate on consequence

2011-11-23 Thread Michael Anstis
Why not use a Fact that contains your result? In DRL terms it'd look like this:- rule "one" when $r : Result( $score : score ) Applicant( numberOfLoans > 1 ) then $r.setScore( $score + 5 ); update( $r ); end rule "two" when $r : Result( $score

Re: [rules-users] How to change Guvnor language?

2011-11-23 Thread Michael Anstis
Guvnor is localised to the following locale:- - es_ES - fr_FR - ja_JP - pt_BR - zh_CN The default language for messages etc when no locale is provided (or is unavailable) is English. Provided you are using the downloaded WAR, or you have compiled from source using the "full" profi

Re: [rules-users] Rules that cumulate on consequence

2011-11-23 Thread Michael Anstis
update ( $r ); > end > > -> Note the null check to avoid loops, again ... > > > > Le 23/11/2011 11:22, Geoffrey De Smet a écrit : > > Good idea, > > but note that it will only work properly in a stateless session (which is > most likely in his case). &g

<    1   2   3   4   5   6   7   8   9   10   >