Re: [rules-users] Decision table call external method

2012-05-10 Thread Michael Anstis
In Guvnor, or just using drools-decisiontables? On 10 May 2012 13:05, SuperGG wrote: > Hi, > > I'm being stuck this past days with a little problem that I hope you will > be > able to help me out. > I'm trying to call a non static method from a class in the action part. > > I have tried to impor

Re: [rules-users] Drools 5.4.0 final

2012-05-08 Thread Michael Anstis
I suspect this week... the final documentation is being completed and then the build will commence. On 8 May 2012 10:11, FlyingEagle wrote: > Hi, > > can anybody tell me, when Drools 5.4.0 will be available as final version? > > Thx > > -- > View this message in context: > http://drools.46999.n3

Re: [rules-users] DRL Query and Guvnor

2012-05-08 Thread Michael Anstis
It is on our "to do" list... https://issues.jboss.org/browse/GUVNOR-1532 On 8 May 2012 01:09, Welsh, Armand wrote: > Any plans to integrate QUERY DRL into guvnor w/o breaking the > global/imports view? (currently using 5.3) > > ___ > rules-user

Re: [rules-users] Updating a user defined error object using drools

2012-05-06 Thread Michael Anstis
My suggestion would be: 1) Ensure you have read the Drools Expert user-guide 2) Insert a new Error fact for each validation error you find (possibly associating the original domain object with the error, it's up to you) 3) Use a Query to retrieve Error objects. sent on the move On 6 May 2012 20:

Re: [rules-users] DSL statements not showing up...

2012-05-05 Thread Michael Anstis
Correct. This is not implemented. You can write your own DSL statements for those constructs. [when]There is a cheese=Cheese() [when]The are no cheeses=not Cheese() etc. On 5 May 2012 16:11, TonyN wrote: > Hi, > > I am not seeing DSL statements when using any of the followings in the > guide

Re: [rules-users] Advanced Enum options not working in Guvnor 5.4 Decision table

2012-05-03 Thread Michael Anstis
I suspect within the next couple of days if everything goes well. On 3 May 2012 05:30, "worldofprasanna" wrote: > Hi Manstis, > > Thanks for the info. And when 5.4.0.Final will be released ? > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Advanced-Enum-options-not-work

Re: [rules-users] Accessing properties of an object within a Nested Collection of a Nested Collection

2012-05-02 Thread Michael Anstis
Since the auto manufacturers data is reasonably static you could also use a "bootstrap" rule that inserts all Parts, Models and Brands from the AutoManufacturer objects inserted by your java code. I assume your rules will probably look at supply or costing decisions updating the static reference d

Re: [rules-users] Accessing properties of an object within a Nested Collection of a Nested Collection

2012-05-02 Thread Michael Anstis
You wouldn't be able to query just the AutoManufacturer record though. You'd need to perform a join across tables, e.g.:- when $p: Part( partVendor == "PV99" ) $m: Model( partsList contains $p ) $b: Brand( brandModels contains $m ) $a : AutoManufacturer( brandsCollection contains $b )

Re: [rules-users] Automatic PDF rule documentation does not include dsl based business rules

2012-05-02 Thread Michael Anstis
GuvnorDroolsDocsBuilder (as of 5.4, it might be different in earlier versions). This extends DroolsDocsBuilder (in drools-verifier). Always happy to receive pull request. :) On 2 May 2012 14:04, ssprick wrote: > To isolate the problem I started with an empty package and copying only > the >

Re: [rules-users] Automatic PDF rule documentation does not include dsl based business rules

2012-05-02 Thread Michael Anstis
Nope, shouldn't matter (or, I'd hope it doesn't!) Please raise a JIRA, https://issues.jboss.org/browse/GUVNOR, and attach your repo export and we'll have a look. Thanks, Mike On 2 May 2012 12:59, ssprick wrote: > Now that I have tested my guvnor config with the mortgages example too, the > do

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread Michael Anstis
Stateful knowledge session with > say 10,000 facts, would it make the web service call slow? > > Thanks very much for the help on the query also…we will look into that. > > Kind Regards > > Ste > > On 2 May 2012, at 11:31, Michael Anstis wrote: > > Does each quot

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread Michael Anstis
Does each quote validation exercise enrich the StatefulKnowledgeSession with other facts that could influence validation of other quotes? If not probably using a StatefulKnowledgeSession per HTTP request might be more simple (with the KnowledgeBase as an application scoped variable). Regarding re

Re: [rules-users] Automatic PDF rule documentation does not include dsl based business rules

2012-05-02 Thread Michael Anstis
What version of Guvnor are you using? I just tried with 5.4.0.CR1 with the "mortgages" example and both the "CreditApproval" and "RegexDslRule" DSL rules were included. With kind regards, Mike On 2 May 2012 10:22, ssprick wrote: > Hi, > > when I try to get a PDF documentation of the rules in

Re: [rules-users] Advanced Enum options not working in Guvnor 5.4 Decision table

2012-05-02 Thread Michael Anstis
This feature comes to 5.4.0.Final (it's in 5.4.0.CR1 IIRC). On 2 May 2012 10:01, worldofprasanna wrote: > Hi, > > Am trying to use the Enums which are dependent on other enums (similar to > that of engineType and petrolType example given in the doc). But this > feature works well for Business ru

Re: [rules-users] 5.4.CR1 Guvnor bug?

2012-04-27 Thread Michael Anstis
the Guvnor WAR will also contain the other Drools JARs. sent on the move On 27 Apr 2012 17:01, "Sean Su" wrote: > This is 5.4.0.CR1. Does that have the changes you made? Or there is a > snapshot version somewhere I can use? > > On Fri, Apr 27, 2012 at 11:02 AM, Michael Ansti

Re: [rules-users] 5.4.CR1 Guvnor bug?

2012-04-27 Thread Michael Anstis
yes, what is the repository path and artifacts id? > > thanks > > Sean > > > On Thu, Apr 26, 2012 at 5:28 PM, Michael Anstis > wrote: > >> Hi, >> >> I've had a look at #2 too. >> >> The problem is that you need to build the package before

Re: [rules-users] Using GUVNOR for FUSION RULES

2012-04-27 Thread Michael Anstis
12 12:12, Pellecchia Carolina wrote: > > Hi Mike, > > I couldn't bind a field because the click on the field doesn't work. > concretely, please see attached. > > > Thank you in advance, > Carolina Pellecchia > > > > -- Forwarded message -

Re: [rules-users] Drools Guvnor - validate a rule results in "Unable to Analyse Expression"

2012-04-27 Thread Michael Anstis
Can you create a JIRA https://issues.jboss.org/browse/GUVNOR and attach a repository export please? On 25 April 2012 13:57, FlyingEagle wrote: > Hi folks, > > I have defined some rules in Eclipse and tested with JUnit tests and > everything was fine. > Now I defined the rules in Guvnor and while

Re: [rules-users] Using GUVNOR for FUSION RULES

2012-04-27 Thread Michael Anstis
rules-users-ow...@lists.jboss.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of rules-users digest..." > > > Today's Topics: > > 1. Re: Setting variables in a stateless session (Welsh, Armand) > 2.

Re: [rules-users] 5.4.CR1 Guvnor bug?

2012-04-26 Thread Michael Anstis
version, > and possibly dedicated support? > > Sean > > Sent from my iPad > > On Apr 26, 2012, at 4:44 PM, Michael Anstis > wrote: > > OK. > > #1 is a bug. I have raised a JIRA - > https://issues.jboss.org/browse/GUVNOR-1879. It is a bit of an edge case > but I

Re: [rules-users] 5.4.CR1 Guvnor bug?

2012-04-26 Thread Michael Anstis
OK. #1 is a bug. I have raised a JIRA - https://issues.jboss.org/browse/GUVNOR-1879. It is a bit of an edge case but I've fixed for 5.4.0.Final. #2 I'll attach the provided repository to the existing JIRA. Thanks, Mike On 26 April 2012 20:13, Sean Su wrote: > Attached is the repository expor

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Michael Anstis
> On Apr 26, 2012, at 2:28 PM, Michael Anstis > wrote: > > Yes, if you use 5.4 - this supports BRL fragments as columns. Rule > Templates also support DSLs. > > HOWEVER - and this is probably an issue - DSLs in Guvnor currently only > support literal values. > > So

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Michael Anstis
ast. > > So I am trying to avoid setters if possible. > > Sean > > Sent from my iPad > > On Apr 26, 2012, at 12:49 PM, Vincent LEGENDRE < > vincent.legen...@eurodecision.com> wrote: > > JavaBeans convention : all default constructible and plenty of setters >

Re: [rules-users] Guvnor guided editor and non argument constructor

2012-04-26 Thread Michael Anstis
Seems reasonable enough. On 26 April 2012 14:36, Sean Su wrote: > It seems that the new fact created by the guided editor must be from > the java class that has the default non argument constructor in > Guvnor. There seems no way we can customize it to pass arguments in. > This would force us to

Re: [rules-users] Using GUVNOR for FUSION RULES

2012-04-26 Thread Michael Anstis
eve what is required. With kind regards, Mike On 26 April 2012 15:22, Matteo Cusmai wrote: > Hi Mike, > thanks for suggestion, but i have already read documentation. > > First of all, i cannot define "over window:length(1) from entry-point > lowLevelSensorStream". > Do y

Re: [rules-users] Guvnor 5.3 to Guvnor 5.2

2012-04-26 Thread Michael Anstis
The release notes will tell you. Any reason you need to go back to 5.2 from 5.3? If all your rules are plain text DRL an export from 5.3 and import into 5.2 might be OK. To be honest we don't check for compatibility between repository exports going backwards - obviously old versions can't suppor

Re: [rules-users] Using GUVNOR for FUSION RULES

2012-04-26 Thread Michael Anstis
Yes this is possible with Guvnor 5.2 onwards. The user-guide explains how to use the Guided Rule Editor (but not specifically CEP features). Read that and give it a try - it's reasonably intuitive (not an excuse for poor documentation though) and come back here with questions. With kind regards,

Re: [rules-users] How to query rules to create reports to analyze usage

2012-04-25 Thread Michael Anstis
The OP has not said if he uses Guvnor or not. We can only guess. "Last run date" is a run-time metric. Guvnor only contains design-time metrics. Therefore you'll have to devise your own mechanism using AgendaListener as Wolfgang proposes. "Author" (and other such metadata) is stored in Guvnor and

Re: [rules-users] 'Condition' dialog screen size too narrow (BRL)

2012-04-24 Thread Michael Anstis
Oh, and is your browser window maximized (in case we're doing 80% of window height or something)? On 24 April 2012 19:19, Michael Anstis wrote: > Height is a strange problem though. > > What version of Guvnor are you using? > > > On 24 April 2012 19:02, TonyN wrote: >

Re: [rules-users] 'Condition' dialog screen size too narrow (BRL)

2012-04-24 Thread Michael Anstis
Height is a strange problem though. What version of Guvnor are you using? On 24 April 2012 19:02, TonyN wrote: > ok, Mike..and I think I made a typo. should say 'height' instead of > 'width'... > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Condition-dialog-screen-s

Re: [rules-users] 'Condition' dialog screen size too narrow (BRL)

2012-04-24 Thread Michael Anstis
We have a JIRA to make it so the list is (at least) in a scroll panel. I can't remember the number right now, but it's on our list. We also have another JIRA to make the selection process better too but time is not our friend Feel free to contribute a pull request or wait until the wheels hav

Re: [rules-users] Fwd: Re: make the Guvnor interface into French

2012-04-24 Thread Michael Anstis
ble :) !! >> Did you tag your corrections ? the NWELL ? >> >> >> Message original >> Sujet: Re: [rules-users] make the Guvnor interface into French Date : Fri, >> 6 Apr 2012 21:27:47 +0100 De : Michael Anstis [hidden >> email]<http://

Re: [rules-users] Nested class, BRL and Java (error)

2012-04-23 Thread Michael Anstis
Nope, I meant 5.4.0.Final - as I typed :) Can you create a JIRA (https://issues.jboss.org/browse/GUVNOR) and attach a repository export demonstrating the problem. I can take a look to check it's working as you require with (what will become) 5.4.0.Final. Otherwise, it'll be a bug and need fixing

Re: [rules-users] Guvnor 5.3 to 5.4.0.CR1 DSLVariableValue ClassCastException

2012-04-23 Thread Michael Anstis
This has now been fixed and will be available in 5.4.0.Final (or now in the 5.4.x branch if you care to build from source). https://github.com/droolsjbpm/guvnor/commit/d16783cd16b9a1c1e64dae89c8f4fcf544a4be5c With kind regards, Mike On 22 April 2012 20:47, Michael Anstis wrote: > Hi Este

Re: [rules-users] Nested class, BRL and Java (error)

2012-04-23 Thread Michael Anstis
Hi, This was a bug, but has been fixed for 5.4.0.Final. The only workaround is to move the enumerations to their own class, rather than nest in another Class. https://bugzilla.redhat.com/show_bug.cgi?id=724629 With kind regards, Mike On 23 April 2012 14:12, TonyN wrote: > Hi, > > I have nes

Re: [rules-users] Drools Performance and Maintanability

2012-04-23 Thread Michael Anstis
#1 - Two users, (1) and (2), open the same asset. User (1) saves OK. User (2) will be prevented from saving as their view of the underlying asset is out of date. This is how the optimistic lock pattern works. It is ideal for low con-currency usage patterns, which is how we envisage Guvnor (assets

Re: [rules-users] Unable to view drls in guvnor

2012-04-23 Thread Michael Anstis
There must be something in WAS's log indicating a problem of some sort. Have you tried with a completely clean repository, i.e. delete the repository.xml and repository folder entirely? Since the problem only occurs in your DEV environment (I assume a DEV server somewhere, not your local IDE DEV

Re: [rules-users] Exception when building a template

2012-04-23 Thread Michael Anstis
Hello, Are you using a Rule Template or Decision Table? Your post states "template (decision table)" but these are two different things entirely. That aside, it does sound like a bug - you should either not be able to define invalid column names in Guvnor or we should provide a means to protect a

Re: [rules-users] Drools Performance and Maintanability

2012-04-23 Thread Michael Anstis
In response to a couple if your questions:- 1) Guvnor uses an optimistic lock at the asset (e.g. decision table) level. We do not provide for merging as you describe. 3) Guvnor uses Apache Jackrabbit for persistence. Jackrabbit can be configured to use a database however the schema Jackrabbit use

Re: [rules-users] Guvnor 5.3 to 5.4.0.CR1 DSLVariableValue ClassCastException

2012-04-22 Thread Michael Anstis
>> Am 22. April 2012 12:20 schrieb manstis [via Drools] >> <[hidden email] <http://user/SendEmail.jtp?type=node&node=3930246&i=0>>: >> >> > https://issues.jboss.org/browse/GUVNOR >> > >> > sent on the move >> > >> > On 22 Apr 20

Re: [rules-users] Guvnor 5.3 to 5.4.0.CR1 DSLVariableValue ClassCastException

2012-04-22 Thread Michael Anstis
https://issues.jboss.org/browse/GUVNOR sent on the move On 22 Apr 2012 11:12, "Michael Anstis" wrote: > Hi, > > I bet it is that change that causes the problem! > > Can you please raise a JIRA on GUVNOR (bit JBRULES) and attach a > repository export showing the prob

Re: [rules-users] Guvnor 5.3 to 5.4.0.CR1 DSLVariableValue ClassCastException

2012-04-22 Thread Michael Anstis
Hi, I bet it is that change that causes the problem! Can you please raise a JIRA on GUVNOR (bit JBRULES) and attach a repository export showing the problem? We will have to fix for 5.4.0.Final. sent on the move On 22 Apr 2012 10:39, "jemka" wrote: > Hello, i have noticed following poblem bet

Re: [rules-users] Using Enum list in the guvnor

2012-04-18 Thread Michael Anstis
move On 18 Apr 2012 22:50, "Sean Su" wrote: > I tried "Literal value" first. but it only gives me the text field and an > OK button. That was when I switched to expression. > > Now what do I miss here :)? > > On Wed, Apr 18, 2012 at 5:42 PM, Michael Anstis

Re: [rules-users] Using Enum list in the guvnor

2012-04-18 Thread Michael Anstis
Our messages are crossing over :) Let me know if use of "literal value" solves your problem... otherwise I'll stay quiet for now ;) On 18 April 2012 22:46, Michael Anstis wrote: > I am going out on a limb here too, so please correct me if my assumption > is wrong (but as

Re: [rules-users] Using Enum list in the guvnor

2012-04-18 Thread Michael Anstis
tIF object? If the latter just add the EventIF Fact Type. On 18 April 2012 22:43, Michael Anstis wrote: > The type of EventIF.eventType is EventType. Therefore literal values will > be the enums members. > > > On 18 April 2012 22:42, Michael Anstis wrote: > >> The pr

Re: [rules-users] Using Enum list in the guvnor

2012-04-18 Thread Michael Anstis
The type of EventIF.eventType is EventType. Therefore literal values will be the enums members. On 18 April 2012 22:42, Michael Anstis wrote: > The problem appears to be your use of an expression in the right-hand side > of the "equal to" comparison. If you choose "Liter

Re: [rules-users] Using Enum list in the guvnor

2012-04-18 Thread Michael Anstis
model. On 18 April 2012 22:35, Sean Su wrote: > Please give a try to this version. I probably did not save the changes. > > Sean > > > On Wed, Apr 18, 2012 at 5:28 PM, Michael Anstis > wrote: > >> I opened the "Overlapping Test" rule and it has no content\de

Re: [rules-users] Using Enum list in the guvnor

2012-04-18 Thread Michael Anstis
quot;Event". On 18 April 2012 22:28, Michael Anstis wrote: > I opened the "Overlapping Test" rule and it has no content\definition. > > Am I missing something? > > > On 18 April 2012 22:12, Sean Su wrote: > >> Yes, it has been uploaded onto the repository,

Re: [rules-users] Using Enum list in the guvnor

2012-04-18 Thread Michael Anstis
; > Attached is the exported repository. The rule is in the > ...rules.overlappingrules package. > > Thanks > > Sean > > > On Wed, Apr 18, 2012 at 5:09 PM, Michael Anstis > wrote: > >> Yes, just the repository export will be fine. Provided you have uploaded &

Re: [rules-users] Using Enum list in the guvnor

2012-04-18 Thread Michael Anstis
yet but plan to do so if we can pass the evaluation > phase. > > Would the zip file exported from Guvnor (plus the jar POJO model) be good > enough? If yes, I can send over. > > thanks > > Sean > > On Wed, Apr 18, 2012 at 4:54 PM, Michael Anstis > wrote: > >&g

Re: [rules-users] Using Enum list in the guvnor

2012-04-18 Thread Michael Anstis
Yes, but perhaps not specifically for your use-case. What version of Guvnor are you using? I assume you are using a DSL? Can you provide a self-contained repository export? sent on the move On 18 Apr 2012 21:36, "Sean Su" wrote: > Has anyone here successfully used Enum in the guided editor in

Re: [rules-users] Unable to view drls in guvnor

2012-04-18 Thread Michael Anstis
Please explain a little more. I assume you created a new POJO Model Asset in Guvnor and attached your JAR. How did you add DRLs from RAD to Guvnor? On 18 April 2012 05:18, arup wrote: > Hi all, > > I have my guvnor deployed in WAS. Now i added the POJO model and drls from > RAD(rational app de

Re: [rules-users] Sir, Seekin your's Help on Drool

2012-04-18 Thread Michael Anstis
Emailed me directly too... some people do nothing to help themselves. sent on the move On 18 Apr 2012 11:20, "Wolfgang Laun" wrote: > San, > > (1) Do NOT post the same thing four times. > > (2) Do NOT start with decision tables. After one month you should be > able to write a simple rule in DRL

Re: [rules-users] Drools crash on simple drl

2012-04-17 Thread Michael Anstis
It's the right place :) It sounds like a bug (to me) :( The core engine developers are trawling through a bunch of urgent bugs for other requirements and may not answer here immediately. If you've not heard anything in a week of two, I'd go banging on the door again... With kind regards, Mike

Re: [rules-users] custom lib in guvnor

2012-04-17 Thread Michael Anstis
AFAIK you should just be able to import your framework JAR (as a POJO model file, I'd think) and call methods on it's members. TBH, I'm not sure on static methods vs instance methods so you might be opening a can or worms that needs fixing... It'd be great to get some feedback though, so whatever

Re: [rules-users] Unable to Load Enum Data into Template

2012-04-16 Thread Michael Anstis
Have you tried 5.4.CR1? Like I said, there was a bug that has been subsequently fixed. 5.2.0.Final saw the introduction of the new grid used for Template data. 5.3.0.Final saw some major improvements on enumerations in the Guided Rule Editor. Unfortunately it introduced the regression you report

Re: [rules-users] "java.lang.AbstractMethodError: org.jbpm.marshalling.impl.ProcessMarshallerImpl.init" while unmarshalling statefulknowledgesession

2012-04-16 Thread Michael Anstis
There was a dramatic change to the marshalling of binary packages for 5.4.CR1. AFAIK this would mean any existing binary package in Guvnor would need to be rebuilt. Downgrading JARs to older versions would effectively remove the marshalling change and hence restore compatibility of older binary as

Re: [rules-users] Can i see a Decision Table in Tempate (like:each row one Decision Table)

2012-04-16 Thread Michael Anstis
With 5.4.CR1 you can define a decision table with BRL fragments as columns. This is probably what you are after. sent on the move On 16 Apr 2012 08:13, "srinivasasanda" wrote: > Hi > > I have a doubt Please let me know whether it is possible or not. > There is a option in guvnor create "new rul

Re: [rules-users] Unable to Load Enum Data into Template

2012-04-16 Thread Michael Anstis
What version of Guvnor are you using? There was a bug that was fixed in 5.4.CR1 - I am not sure of the exact version, but it was probably before this. sent on the move On 16 Apr 2012 07:53, "srinivasasanda" wrote: > Hi All, > I was able to create Enumeration 'MyEnum.age': ['30', '20']and

Re: [rules-users] WS Custom Form not working in Guvnor

2012-04-12 Thread Michael Anstis
The source is available in github: https://github.com/droolsjbpm/guvnor It should be as simple as:- git clone g...@github.com:droolsjbpm/guvnor.git mvn clean install -PfullProfile You can make it much quicker by skipping tests and just targeting Mozilla:- git clone g...@github.com:droolsjbpm/g

Re: [rules-users] WS Custom Form not working in Guvnor

2012-04-12 Thread Michael Anstis
It's only in the master branch at the moment (just missed CR1 by a day or two). It'll be in 5.4.0.Final but that won't be for a couple of weeks (at best I guess). On 12 April 2012 14:56, sams wrote: > I raised a defect in addition to 1867 but its probably redundant and can be > killed. > > What

Re: [rules-users] Runtime jitting exception while inserting facts

2012-04-12 Thread Michael Anstis
Did you build the binary package in Guvnor? There was a big change to the serialization of packages in Drools Expert. On 12 April 2012 14:08, sumatheja wrote: > Hi I tried deploying guvnor 5.4 CR1 on jboss 7.1.1 final. I downloaded the > package and tried running the program using it. I'm getti

Re: [rules-users] WS Custom Form not working in Guvnor

2012-04-12 Thread Michael Anstis
have a custom form available in the Guided Rule Editor you need to select Edit->Select Working Set (or something like that). With kind regards, Mike On 12 April 2012 10:09, Michael Anstis wrote: > This looks like a bug. > > Please can you raise a JIRA (https://issues.jboss.org/b

Re: [rules-users] WS Custom Form not working in Guvnor

2012-04-12 Thread Michael Anstis
This looks like a bug. Please can you raise a JIRA (https://issues.jboss.org/browse/GUVNOR). Thanks, Mike On 11 April 2012 17:27, sams wrote: > I can provide all the info - select a Fact type, select a field, provide > and > URL, and provide height and width. Click OK then File | Save changes

Re: [rules-users] Writing really short rules

2012-04-11 Thread Michael Anstis
Another file, yes. Your original enquiry suggested you'd use a separate DSL or decision table so I assumed another file was acceptable. Sorry. sent on the move On 11 Apr 2012 20:52, "Adam Warski" wrote: > > manstis wrote > > > > What about a rule template? > > > > You can also create rules fro

Re: [rules-users] Writing really short rules

2012-04-11 Thread Michael Anstis
What about a rule template? You can also create rules from a CSV based decision table - or if your more adventurous write your own Listener (see the dtable docs). On 11 April 2012 19:57, Adam Warski wrote: > Hello, > > I have some near-tabular data which I would like to write down as rules. > T

Re: [rules-users] https://issues.jboss.org/browse/GUVNOR-579

2012-04-10 Thread Michael Anstis
Yes CEP is supported in Guvnor. See the Release Notes for 5.2 here . There is also a blog post here

Re: [rules-users] Using Decision Tables as Lookup Tables

2012-04-10 Thread Michael Anstis
Hmmm... the only way I can see this is possible (i.e. with the use of accumulate) is to use transient facts:- *This can be set-up with a decision table quite easily (and ValuedRegion can be a declarative type that extends Region adding the "value" field) * rule "setup ValuedRegions - using a decis

Re: [rules-users] make the Guvnor interface into French

2012-04-06 Thread Michael Anstis
Hi Quentin, The droolsjbom-build-bootstrap\README.md is a good source (and kept up to date). The simplest (and preferred) approach might be to fork the github repository, apply your changes and submit a pull request. Please see here

Re: [rules-users] Return List of Fired Rule Name from Decision table

2012-04-05 Thread Michael Anstis
Are your decision tables in XLS or Guvnor. If XLS then you can use any Java in the ACTION. If Guvnor, we support this in 5.4.CR1 (adding "free-format" DRL ACTION columns). On 5 April 2012 13:56, srinivasasanda wrote: > Hi, > > when a rule fires i am storing the rule name in Result field of typ

Re: [rules-users] Usings joins in decision tables

2012-04-05 Thread Michael Anstis
Hi, I assume you mean XLS decision tables, but if you mean in Guvnor the same principle applies. Something like this should be OK:- CONDITION | CONDITION Header | SubHeader $a : id != {param}

Re: [rules-users] drl problem

2012-04-02 Thread Michael Anstis
Rational Application Developer? The generated DRL (from using Guvnor 5.2) is flawed, so it won't run anywhere. If you write the DRL by hand it should work on 5.2 (I don't believe there have been any major enhancements since then that would affect what you want). If you can use Guvnor 5.4 (the ge

Re: [rules-users] drl problem

2012-04-02 Thread Michael Anstis
If you must use 5.2 you can try using "from" to access the PhoneTypecode, rather than (I assume) an expression:- $p : Phone( ) $tc : PhoneTypecode( ... ) from $p.phoneTypeCode etc. On 2 April 2012 16:36, Michael Anstis wrote: > Unfortunately this appears to be a problem with 5.2.

Re: [rules-users] drl problem

2012-04-02 Thread Michael Anstis
Unfortunately this appears to be a problem with 5.2. There is an additional space in "phoneTypeCode .tc" which should read "phoneTypecode.tc". I have confirmed this does not happen in 5.4.CR1 (and possibly earlier):- 1.|rule "r2"2.|dialect "mvel"3.|when4.|Phone( $ac : areaCode, $

Re: [rules-users] drl problem

2012-04-02 Thread Michael Anstis
Can you "View source" and paste it? Also, what version of Guvnor are you using? Please also include your actual class model - not that I assume to be the case. Thanks, On 2 April 2012 15:53, arup wrote: > thanks manstis. i tried as u said. but when i'm adding this rule to guvnor > and trying

Re: [rules-users] drl problem

2012-04-02 Thread Michael Anstis
Assuming:- Phone() { String number; PhoneTC phoneTc; } PhoneTC() { String tc; } Then something like this should work:- when Phone( $n1 : number, $tc : phoneTc.tc ) Phone( number == $n1, phoneTc.tc != $tc ) then On 2 April 2012 15:19, arup wrote: > Hi, > i'm having some problems(mo

Re: [rules-users] parametrized rules

2012-04-02 Thread Michael Anstis
Sure, look at using Templates. On 2 April 2012 15:18, Tim van Heugten wrote: > Hi all, > > I'm new to Drools, and wonder how I can most cleanly write down rules for > the following. > > (For the sake of example) Say I have an object that needs to be processed > season-dependent. I basically need

Re: [rules-users] Clarification of how the Persistence Manager works

2012-03-29 Thread Michael Anstis
Hi Denis, 1) Guvnor generally persists data whenever the user performs any CRUD operation on an asset. 2) Guvnor does not provide any runtime knowledge services (are you using something else like drools-server, drools-camel etc)? 3) This relates to 2). Perhaps you need to explain 2) and 3) a li

Re: [rules-users] Guvnor jackrabbit session issue?

2012-03-29 Thread Michael Anstis
What version of Guvnor do you use? Can you provide step by step instructions to replicate, from installation of a fresh repository (or deployment of Guvnor) to seeing the problem? sent on the move On 29 Mar 2012 16:34, "drdaveg" wrote: > I am moving some working Eclipse-developed code to Guvno

Re: [rules-users] drl execution problem

2012-03-29 Thread Michael Anstis
e.g. add an ID field to Person that is incremental in value on subsequent "people" person1: Person( $firstName1: firstName, $id : id ) person2: Person( firstName != $firstName1, id > $id ) This ensures only one match of person1 and person2 will occur, not person2 and person1. On 29 March 2012 12

Re: [rules-users] Eclipse Agenda View

2012-03-29 Thread Michael Anstis
This would be customary:- KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newThreadedFileLogger(ksession, "path-to-log-file", 100); Of course, you could be having a problem with something completely different... On 29 March 2012 10:39, youssef azbakh wrote: > Hello, > I used Work

Re: [rules-users] Eclipse Agenda View

2012-03-29 Thread Michael Anstis
I don't fully understand the problem you are seeing, however it is best to use the ThreadedFileLogger if you want the log to update whilst you debug. On 29 March 2012 10:15, Hassan wrote: > Hi guys, > > I want to see what is going in my drools application so, I declared a > logger > file, by imp

Re: [rules-users] drl execution problem

2012-03-29 Thread Michael Anstis
I suspect Person 1 and Person 2, plus Person 2 and Person 1 are matching. Try putting a sysout in the RHS showing the people matched to confirm. sent on the move On 29 Mar 2012 08:16, "arup" wrote: > i have one drl like below: > > rule "FirstNameDifference" > no-loop true > lock-on-active true

Re: [rules-users] how to use not in oparator in guided decision table in 5.2 version of Guvnor ?

2012-03-28 Thread Michael Anstis
This is not possible in 5.2 In 5.4 you can use BRL fragments as columns (consequentially free-form DRL too). This is not an unreasonable expectation though, so please open a JIRA and I'll endeavor to add as soon as possible (but not back-port to 5.2). https://issues.jboss.org/browse/GUVNOR With

Re: [rules-users] Import statement in WebGuided DecisonTable

2012-03-28 Thread Michael Anstis
The view source for the package shows *all* DRL including imports, globals, rules etc. The view source for an individual asset just shows the rule (or whatever) DRL. You don't normally need to worry that the decision table source does not show an import - unless you are retrieving the source throu

Re: [rules-users] Import statement in WebGuided DecisonTable

2012-03-28 Thread Michael Anstis
Sure. You need to add the import statement to the package (in which the Web Guided Decision Table asset resides) definition. Click on the package (where in the LHS "Knowledge Bases" tree view), click on "Edit" tab and add the required import in the top section. On 28 March 2012 13:46, srinivasas

[rules-users] Drools & jBPM:Guvnor - Improved default value handling

2012-03-27 Thread Michael Anstis
Michael Anstis has sent you a link to a blog: Changes to the Guided Web Decision Table's default value editors for CR1. Blog: Drools & jBPM Post: Guvnor - Improved default value handling Link: http://blog.athico.com/2012/03/guvnor-improved-default-value-handling.html -- Powered b

Re: [rules-users] [rules user] different behavior on double type

2012-03-27 Thread Michael Anstis
FYI, 5.4 (beta 2) allows you to use B and I as BigDecimal and BigInteger respectively in LHS DRL (and RHS if using MVEL) so you can write: MyFact( myBigDecimal == 99.9B ) sent on the move On 27 Mar 2012 08:16, "Wolfgang Laun" wrote: > On 27/03/2012, Zeke wrote: > > Whether the comparison is p

Re: [rules-users] The rule language. More about the agenda-group and ruleflow-group attributes

2012-03-24 Thread Michael Anstis
Don't forget the use of Agenda Groups as you first suspected. For all intents and purposes they work the same as RuleFlowGroups but don't need a jBPM process. sent on the move On 24 Mar 2012 13:54, "Maxim Kolchin" wrote: > Oho! It'll help me. > > Thank you! > > Max > > > 2012/3/24 Mauricio Sala

Re: [rules-users] Guvnor "Repository Configuration" not available under "Administration"

2012-03-23 Thread Michael Anstis
Firstly, I assume you're using a version of Guvnor that supports it - 5.3 onwards IIRC. Secondly, I think you need Admin permissions. On 23 March 2012 15:12, devan.vanree...@gmail.com wrote: > Hi there, > > I am unable to find the "Repository Configuration" under "Administration" > on > Guvnor.

Re: [rules-users] Data comparing in CONDITION column decision table

2012-03-22 Thread Michael Anstis
s. On 22 March 2012 09:40, Vincent Legendre wrote: > Thanks for the warning, some old bugs appears clearer now !!! > > Is it planned in a near future to only exclude the constraint and not the > whole fact pattern ? > To me, it seems more accurate to do this way. > > Le

Re: [rules-users] Performance gain by upgrading Drools Expert from 5.1 to 5.3

2012-03-21 Thread Michael Anstis
It would probably be beneficial to include the tests you run; otherwise - if tuning is possible - it'd be difficult to know what to suggest. Interestingly only test 9 appears slower whereas the others are up to x2 faster. I wouldn't consider this as mixed results. I also find it interesting how y

Re: [rules-users] Setting strictTyping/strongTyping modes

2012-03-21 Thread Michael Anstis
I'd assume the rule regarding how to annotate a POJO for use as an event apply. i.e. Declare a type of the same name in the same package with no members other than the applicable annotation. I could be wrong however. On 21 March 2012 20:19, Wolfgang Laun wrote: > Yeah, but where would I put th

Re: [rules-users] Guvnor and DB2

2012-03-21 Thread Michael Anstis
Hi, You are on the correct mailing list for Drools Guvnor. However it may not be the most helpful list for issues configuring JCR to use DB2. Based upon the lack of helpful response I assume this to be true. You could try a JCR (I assume you're using the default Apache JackRabbit?) mailing list.

Re: [rules-users] Metadata in Guvnor-created rules

2012-03-20 Thread Michael Anstis
n it sounds like I should be able to log project time to build > it, as it would be valuable to my current client. > > Steve > > > On Mar 19, 2012, at 10:02 PM, Michael Anstis > wrote: > > The "Metadata" under the "Attributes" tab is stored in the JCR

Re: [rules-users] Metadata in Guvnor-created rules

2012-03-19 Thread Michael Anstis
The "Metadata" under the "Attributes" tab is stored in the JCR repository and does not form part of the KnowledgeBase. You can add metadata that is part of the KnowledgeBase using using the "Show options" at the bottom of the Guided Rule Editor and adding metadata. This metadata appears in rules

Re: [rules-users] Data comparing in CONDITION column decision table

2012-03-19 Thread Michael Anstis
This is true, but be aware that if a cell value in the Template data is empty the whole Fact Pattern is omitted. For example:- rule "Discount @{row.rowNumber}" when Account( $v : @{field} != null ) $c : Customer( @{field} == $v , accno == @{accno} ) then $c.setDiscount(1); end If

Re: [rules-users] Using Character typed properties in Drool 5.3

2012-03-16 Thread Michael Anstis
AFAIK it fixes various regressions, but we have a reasonably complex dependency hierarchy so user-beware. sent on the move On 17 Mar 2012 01:06, "julia" wrote: > Great Will MVEL 2.1.0.drools9.jar work with guvnor5.3? > > -- > View this message in context: > http://drools.46999.n3.nabble.com

Re: [rules-users] Using Character typed properties in Drool 5.3

2012-03-16 Thread Michael Anstis
I believe Mario is also releasing another version of MVEL on Monday, but drools9 might contain fixes for Characters. sent on the move On 17 Mar 2012 00:13, "Edson Tirelli" wrote: > > Try updating to MVEL 2.1.0.drools9.jar that Mario released a few days > ago. There are many fixes in there.

Re: [rules-users] Doubt when modifying facts on an action

2012-03-16 Thread Michael Anstis
The Decision Table parser only adds the Fact type to the generated rule if it has at least one constraint. There is a workaround (although I've not tried it):- CONDITION | CONDITION | CONDITION | ACTION --

<    3   4   5   6   7   8   9   10   11   12   >