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

2012-03-19 Thread Vincent LEGENDRE
Hi Instead of using a workaround, did you have a look to rule templates ? - under guvnor : http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-guvnor-docs/html_single/index.html#d0e1143 - drl :

Re: [rules-users] drools arithmetics without eval()

2012-03-14 Thread Vincent LEGENDRE
And what if you perform the count in some java methods (a session listener on inserted objects which updates a big map?) and then only use resulting counters in rules ? If you have to use rules to compute the counters (for instance because it is not always as simple, or if you want to keep the

Re: [rules-users] drools arithmetics without eval()

2012-03-14 Thread Vincent LEGENDRE
Yes, it should But this kind of rule implies that a PortfolioProduct has a unique contribution in a unique counter (when prodCounted becomes true, the PortfolioProduct won't be counted anymore). And I am not sure whether this kind of rule is more efficient than an accumulate or a query (it

Re: [rules-users] Is it possible XML Rules in Drools?

2012-02-20 Thread Vincent Legendre
Using such old version will certainly bring you more problems, may be even with XML rules ... May be you should consider using the XML format of a BRL file (Guided rules in Guvnor) or guided decision tables. This XML format is the XStream format for corresponding internal objects, but this

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

2012-02-12 Thread Vincent LEGENDRE
Yes, there is me ! I even have a fresh newly updated french file (for 5.3.0.Final version), as the one in actual guvnor date from my last translation for 5.1 (parts are french, parts are english, which does not look very good) . I was thinking of updating the former JIRA with the new file ?

Re: [rules-users] Protection from malicious rules

2012-02-09 Thread Vincent Legendre
The then part is java. Your question can thus be reformulated as preventing java code for doing dangerous operations. One of basic solution is to run your java code (containing drools or not) under a specific user (not root) that only have rights for some specific folders. As I think you

Re: [rules-users] Building Guvnor - Required Java version?

2012-01-25 Thread Vincent Legendre
The last time (Nov.2011) I tried to use drools 5.3.Final with java 7 (normal use, not building), it has not worked at all. Strange because https://issues.jboss.org/browse/JBRULES-3163 is saying that this is fixed, for 5.3.Final ... in december (ie after the 5.3.Final release date!). Le

Re: [rules-users] Declarative fact model or Java?

2012-01-20 Thread Vincent LEGENDRE
With Guvnor, you can also use working set (see here ) to restrict the availiable fields to expose to a business user, by selecting class and/or fields of an existing class, and even more (businnes contraints on values, with rules). The only problem I see with working sets, is that you must

Re: [rules-users] eclipse: No RuleTable cells in spreadsheet.

2012-01-05 Thread Vincent Legendre
It happends as soon as your project is set as a Drools project. What you can is cutting your project in 2 sub-projects : - One for rules, tagged as a Drools project, - Another pure java project, containing eventually some normal XLS, which is used as a dependancy for your drools project

Re: [rules-users] Rules Hello Evalution

2011-12-22 Thread Vincent LEGENDRE
Have a look there too : http://drools.46999.n3.nabble.com/quot-Rule-Id-quot-for-a-Drools-Rule-td2914385.html or use a WorkingMemoryEventListener and a AgendaEventListener together to set the name for all freshly inserted objects. ___ rules-users

Re: [rules-users] Action

2011-12-21 Thread Vincent LEGENDRE
First solution is the one I use almost all times, and moving facts from a session to another is far less costly than propagating facts for rules that will never be fired... The second solution could be great too, but I am not sure that it will cut all propagations. If you have this : rule

Re: [rules-users] Rules Hello Evalution

2011-12-21 Thread Vincent LEGENDRE
I bet this : your error list is the same instance, shared in all Party objects... Am I right ? And why do you need to pass drools to your appendMessage method ? Do you modify (insert/update/retract some objects) the WM inside this method ? Be very careful if you do that (especially if you said

Re: [rules-users] Working memory batch insert performance

2011-12-20 Thread Vincent Legendre
There is a recent post on poor performance from a simple join that highligths almost the same questions : because insert trigger RETE propagation, time to insert depends on rules complexity. May be you can start by looking at your rules to optimise them (see the previous post for some tips).

Re: [rules-users] 答复: Working memory batch insert performance

2011-12-20 Thread Vincent Legendre
[mailto:rules-users-boun...@lists.jboss.org] *代表 *Vincent Legendre *发 送时间:*2011年12月20日22:01 *收件人:*Rules Users List *主题:*Re: [rules-users] Working memory batch insert performance There is a recent post on poor performance from a simple join that highligths almost the same questions : because insert

Re: [rules-users] Get GuidedDecisionTable from Guvnor

2011-12-15 Thread Vincent Legendre
Hi all, I'm not listed in people you would like to answer, but there is something that could be the main problem here. In your URL, you use source, so it is normal that you get the corresponding DRL in response : String

Re: [rules-users] Get GuidedDecisionTable from Guvnor

2011-12-15 Thread Vincent Legendre
into a valid GuidedDecisionTable52 instance. Regards, 2011/12/15 Michael Anstis michael.ans...@gmail.com mailto:michael.ans...@gmail.com Sorry Vincent, nothing personal :) Obviously everyone is free to assist in the community :) 2011/12/15 Vincent Legendre vincent.legen...@eurodecision.com

Re: [rules-users] Get GuidedDecisionTable from Guvnor

2011-12-15 Thread Vincent Legendre
iano Gonzalez a crit: according tohttp://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html/ch09.html#d0e2735 the functionality already exists 2011/12/15 Vincent Legendre vincent.legen...@eurodecision.com ok, so there is another

Re: [rules-users] Inserting Facts from Json Format

2011-12-08 Thread Vincent LEGENDRE
Transform you JSON into java object, and insert it in the session before calling fireAllRules : Object obj = your_JSON_2_Object_convert_method(); session.insert(obj); session.fireAllRules(); - Mail original - De: ihabo01 ihab...@gmail.com À: rules-users@lists.jboss.org Envoyé:

Re: [rules-users] Fusion : must declare @role(event) for all class hierarchy ?

2011-11-28 Thread Vincent LEGENDRE
Well, after trying and trying to reproduce with a simpler case, @role is always correctly inherited. But in my application, it seems not, or may be it is another problem. I have 3 classes : ChantierEvent (the main mother class) and its 2 subClasses : InitEvent and DisposeEvent When I declare

Re: [rules-users] Fusion : must declare @role(event) for all class hierarchy ?

2011-11-28 Thread Vincent LEGENDRE
Hi Edson, and thanks for answering ? - are the fact types (classes) in the same package or different packages? Different packages. But I tried this on my little sample (put the sub-class in another package than the mother class), and this works ? - Are the declaration(s)/rules in the same

Re: [rules-users] Fusion : must declare @role(event) for all class hierarchy ?

2011-11-28 Thread Vincent LEGENDRE
Tried to load my fusion package before any others. Same problem - Mail original - De: Vincent LEGENDRE vincent.legen...@eurodecision.com À: Rules Users List rules-users@lists.jboss.org Envoyé: Lundi 28 Novembre 2011 19:48:03 Objet: Re: [rules-users] Fusion : must declare @role(event

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

2011-11-23 Thread Vincent Legendre
It will work properly in a stateless session ... in sequential mode ... may be. This rule for instance, will loop by itself (and all other will also loop), in a stateless or statefull session : rule one when $r : Result( $score : score ) Applicant( numberOfLoans 1 )

Re: [rules-users] How to use contains with a function

2011-11-23 Thread Vincent Legendre
I think this could work : *rule*verify time *when* $now: java.util.Date() from getTimeByID(ETimeID.NOW) $tc: TaskContext(times *contains*$now) *then* //something *end* or an eval : *rule*verify time *when* $tc: TaskContext(eval(

Re: [rules-users] multi-factor rule

2011-11-23 Thread Vincent Legendre
Or you can use Guvnor tables and otherwise special value (see doc on tables under guvnor) Le 23/11/2011 17:14, FrankVhh a écrit : Hi, If you do not want to check for all alternative cases, you might need a showstopper to stop the firings of unwanted rules. This can be achieved by

Re: [rules-users] Exclude certain rules

2011-11-18 Thread Vincent LEGENDRE
If you want to modify the enabled property of a rule according to facts in WM, why don't you add a first condition on that fact ? If the problem is to groups some rules under this condition, you can use rule inheritance (extends keyword) : all LSH of parent rule will be inherited by child

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

2011-11-16 Thread Vincent LEGENDRE
Editor : mixing formula and field constraint in same pattern makes editor crash Yes, agreed. Please raise a JIRA, https://issues.jboss.org/browse/GUVNOR , and assign to me. Thanks, Mike 2011/11/15 Vincent LEGENDRE vincent.legen...@eurodecision.com Hi, As said in the subject mixing formula

Re: [rules-users] Fusion : must declare @role(event) for all class hierarchy ?

2011-11-15 Thread Vincent LEGENDRE
Strange ... When trying to build a minimal sample that reproduce my problem ... well ... did not manage to reproduce ... I will try to find out why my first attempt is different from my minimal sample now ... Will get back here asap. ___ rules-users

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

2011-11-15 Thread Vincent LEGENDRE
? 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 vincent.legen...@eurodecision.com wrote: Yep, I saw the button under KB ... But why ? De: Michael Anstis

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

2011-11-15 Thread 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 constructions, ie normal constraint for normal tests, and sometime a formula (which transform into in-pattern eval(...)) These rules cannot

[rules-users] Fusion : must declare @role(event) for all class hierarchy ?

2011-11-14 Thread Vincent LEGENDRE
Hi all We are using Fusion to make some simplification and grouping on some events. We have several classes of events, all derivated from a top-level class . With fusion version 5.3 (and 5.2 too), we must declare the @role(event) for the top-level class, but also for all its classes

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

2011-11-14 Thread 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 it on purpose ? Is it a bug ? Is there a way to get it back ? Does it appears only under some conditions ?

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

2011-11-14 Thread Vincent LEGENDRE
? It was deliberate AFAIK. The button still exists under Knowledge Bases. 2011/11/14 Vincent LEGENDRE vincent.legen...@eurodecision.com 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

Re: [rules-users] Issues with Eclipse Excel Plugin for Drools Decision Tables

2011-11-09 Thread Vincent LEGENDRE
Don't use eclipse to edit Excel files. Use Excel. I've never managed to make this OLE editor works well (but it is a long long time I did not retry, although I don't think there is any major evolution of this editor since then) . You can instruct Eclipse to use Excel to edit your .xls files (see

Re: [rules-users] Bugs in Drools 5.3.0 break Fusion event processing

2011-11-09 Thread Vincent LEGENDRE
Just wondering : does these problems happends because you use clocks and jobs, or is it general to fusion 5.3 ? Did not migrate my project on 5.3 for now. So do you think there is a risk, knowing that I only use very basic fusion features ? - Mail original - De: Edson Tirelli

Re: [rules-users] Issues with Eclipse Excel Plugin for Drools Decision Tables

2011-11-09 Thread Vincent LEGENDRE
Eclipse does not lock files, none of them, including xls ... May be you have an excel process still in execution (not killed by buggy OLEEditor) that keeps some locks ? OOTB Eclipse ? don't know what it is, but may be the problem is here ? I do use Excel spreadsheet in real applications. But

Re: [rules-users] Enumerations for nested classes

2011-11-09 Thread Vincent LEGENDRE
bug : https://issues.jboss.org/browse/GUVNOR-1573 fixed in 5.3 But I think you does not need your second enum. Guvnor will infer that (in 5.3). - Mail original - De: gab acque_profo...@yahoo.it À: rules-users@lists.jboss.org Envoyé: Mercredi 9 Novembre 2011 19:26:00 Objet: [rules-users]

Re: [rules-users] Data Modeling for medical expert system

2011-11-08 Thread Vincent Legendre
You can use dynamic enums in Guvnor (that create dynamic populated listboxes). See guvnor's doc chapter 1.4.2.4.8. Data enumerations (drop down list configurations) For your case where number of items are really huge, you may consider using custom editors (again, in Guvnor), and implement a

Re: [rules-users] Regarding verstions of Drools-Guvnor...

2011-11-04 Thread Vincent Legendre
I already used differents versions of drools like you describe without big problems. The only real problem is if you use some 5.2 new features that can't be handled by previous runtimes versions. The inverse is more safe: guvnor, which is the rule editor, having lower version than runtime.

Re: [rules-users] Get previous fact from working memory.

2011-10-06 Thread Vincent Legendre
rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Vincent LEGENDRE Consultant Snior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Tl. : +33 (0)

Re: [rules-users] Get previous fact from working memory.

2011-10-06 Thread Vincent Legendre
like in plain java : declare the type of your new variable before its name ... Event $e = new Event(...); insert($e); ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Get previous fact from working memory.

2011-10-06 Thread Vincent Legendre
.org https://lists.jboss.org/mailman/listinfo/rules-users -- Vincent LEGENDRE Consultant Snior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Tl. : +33 (0)1 39 07 12 40 Direct

Re: [rules-users] Package snapshots in Guvnor have wrong list of rules

2011-09-30 Thread Vincent LEGENDRE
Because it is done like that : - Do the compilation, by filtering assets given to a package builder, and store the corresponding KB as a binary object - Then, but only then, create the snapshot, by copying all resources to a 'snapshot' part of repo So the compilation and snapshot actions

Re: [rules-users] Guvnor Repository Report

2011-09-28 Thread Vincent Legendre
Yes you can do all that (but don't know about getting history infos). A old post from Jervis Liu linked to more info on REST API here http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html and http://community.jboss.org/wiki/AtomPubinterfaceforGuvnor But you may start by using the

Re: [rules-users] Condition syntax to access Map

2011-07-28 Thread Vincent LEGENDRE
Hi all, I agree with W. : NPE should be the default, and null cases behaviour should be planned by programmers. But I am not sure about using a new operator in rules (and do the update in Guvnor ...). Why not using some drools annotations on the getter specifying the behaviour of an eval on

[rules-users] enums and subclass under guvnor : no listbox

2011-07-26 Thread Vincent LEGENDRE
Hi all I have two simple classes : The parent class has a field that is an enum. The other class inherits from the parent class. Under Guvnor, everything is OK for the parent class : when I add a constraint on the enum field, I see a listbox with enum values But for sub-class, the same

Re: [rules-users] [Drools4]: Filter executed rules by *.drl file

2011-07-20 Thread Vincent LEGENDRE
Control facts could be a good solution if a execution (of rules) can use some multiple DRL, and if you are using a lot of facts. For example, if you want to do DRL1 and then DRL5 (because of some logic) on the same facts, in that order, you can add control rules to your KB that set/update

Re: [rules-users] Dynamic facts

2011-07-19 Thread Vincent Legendre
AFAIK, there never was any logic for restricting updates of the Rete structures according to individual field-oriented change notifications. As far I remember, JRules does. And it could be great to add/restore this possibility in drools (is there a JIRA somewhere where we can vote?). For

Re: [rules-users] [Drools4]: Filter executed rules by *.drl file

2011-07-19 Thread Vincent Legendre
In my opinion, for 300 drl files, the better is to use a specific KB for each DRL (or some KAgent). This way you don't have to pollute your rules with control facts (and you can eventually re-use some part of DRL files into multiple context KB), and the RETE is tightened to the strict minimum

Re: [rules-users] repository in 5.2.M2 crashes in 5.2.Final because of decision table serialization

2011-07-13 Thread Vincent Legendre
Mike 2011/7/12 Vincent LEGENDRE vin

Re: [rules-users] Rule error

2011-07-13 Thread Vincent Legendre
ling list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Vincent LEGENDRE Consultant Sénior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Tél.

[rules-users] repository in 5.2.M2 crashes in 5.2.Final because of decision table serialization

2011-07-12 Thread Vincent LEGENDRE
Hi all We tried to use the 5.2.Final version of Guvnor, but the compilation fails with an error saying that class dtable does not exists. After looking more depply, it appears that the XML storage format has changed in 5.2.Final : - root XML is now  decision-table52 instead of dtable

Re: [rules-users] repository in 5.2.M2 crashes in 5.2.Final because of decision table serialization

2011-07-12 Thread Vincent LEGENDRE
org.drools.ide.common.server.util.RepositoryUpgradeHelper to convert from GuidedDecisionTable to GuidedDecisionTable52. We had to make some essential changes for Guvnor 5.2 to support CEP operators on the guided decision table. With kind regards, Mike 2011/7/12 Vincent LEGENDRE vincent.legen...@eurodecision.com

Re: [rules-users] Guvnor another few questions...

2011-07-07 Thread Vincent Legendre
Some other comments *Prediates How-to in Guvnor :* You can use predicates in the dialog box for editing a condition column. There are 3 radio buttons for value, formula, and predicate *Templates VS tables* : Template are more flexible ... may be ... may be not. First, in templates in

Re: [rules-users] Guvnor another few questions...

2011-07-07 Thread Vincent LEGENDRE
Ideally I'd like to implement tabular templates where a column can be any DRL fragment with place-holders for values and the data is listed in the rows below. It's on the to do list. Great! If the whole column's DRL fragment generation is conditioned by the non-empty cell, that's fine.

Re: [rules-users] Guvnor another few questions...

2011-07-07 Thread Vincent LEGENDRE
Yes, but that looks like a very very limited version of the literal value. I really don't see any benefit in the predicate, other than being a shortcut for choosing a field literal value = true or false... am I missing something here? Yes, I think you are missing some things. You can write

Re: [rules-users] Guvnor 5.2 CR1 under IE8

2011-06-22 Thread Vincent Legendre
Done : https://issues.jboss.org/browse/GUVNOR-1485 I have tried with previous versions too, to see where the problem appears. - 5.2.0 M2 and CR1 are the same for this problem : replaced icons are hidden in some place - 5.2.0 M1 : even main page icons (top banner and search tab at least)

[rules-users] Guvnor 5.2 CR1 under IE8

2011-06-20 Thread Vincent LEGENDRE
Hi all I was using firefox for Guvnor, every thing was well. But here, users use IE 8, and under IE8, Guvnor displays some strange list of icons in place of some other icons : - validate rule dialog : in place of the check (or error icon) : a big image containing all icons - new rule

Re: [rules-users] Two drools that validate the same instance in one Guvnor package

2011-06-17 Thread Vincent Legendre
Hi, First of all, you can create 2 packages in Guvnor and then use the 2 different URL according to what KB (ie package) you want to launch, exactly the same way you did before with DRL files. I don't think this is a bad practice in the case of two distinct use-cases, except if the two DRL

[rules-users] Guvnor 5.2 CR1 : problem with collect in guided editor

2011-06-14 Thread Vincent LEGENDRE
Hi all We gave a try with the CR1 version, and see that all collect clauses appears in grey and are not editable (such conditions are also not deletable). Everything was OK with the M2 version (rules were edited with this version). It is quite strange because all the collect condition is

Re: [rules-users] Guvnor 5.2 CR1 : problem with collect in guided editor

2011-06-14 Thread Vincent LEGENDRE
in a Rule not in your model. Having the import implicit was causing a lot of other problems that were more invisible to the user. With kind regards, Mike On 14 June 2011 10:00, Vincent LEGENDRE vincent.legen...@eurodecision.com wrote: Hi all We gave a try with the CR1 version, and see

Re: [rules-users] Custom-Operator - No access to FactHandles?

2011-06-10 Thread Vincent Legendre
-- Vincent LEGENDRE Consultant Snior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Tl. : +33 (0)1 39 07 12 40 Direct : +33 (0)1 39 07 26 16 www.eurodecision.com

Re: [rules-users] Concatenating rule conditions

2011-05-25 Thread Vincent Legendre
Not sure of what you exactly ... If you want to combine tests, you can write this : Rule test filter When $cm: ConditionMatrix() $document: ArrayList() from collect ( Document (user.isPrivateName == $cm.isPrivateName, Payment.isLegal == $cm.isLegal) ) Then //do

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

2011-05-11 Thread Vincent LEGENDRE
Category info is not returned at the moment. But this should be a very quick fix, let me see when I can find time. Though the fix will only be available in 5.3.Snapshot. Ok, but the better is to add a filtered build directly on the server (otherwise I will have to listing everything and

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

2011-05-06 Thread Vincent Legendre
Thanks ! Will try that more seriously next week and report back results ... If I want to add the filtered compiled package query to Guvnor, what would be the entry point in the code ? ___ rules-users mailing list rules-users@lists.jboss.org

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

2011-05-05 Thread Vincent LEGENDRE
04:48:45 Objet: Re: [rules-users] Guvnor service to compile part of a package ? 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

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

2011-05-05 Thread Vincent LEGENDRE
I am not sure if I understand you correctly. You want to return a compiled package binary based on certain criteria or you want to return individual assets based on certain criteria? The main objective is the first one : get compiled package including filtred assert on certain criteria But

[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

[rules-users] Sequential mode and partial propagations

2011-04-19 Thread Vincent LEGENDRE
Hi All This post is to continue an interresting (to me) discussion started there : https://issues.jboss.org/browse/JBRULES-46 This was about my remark about a backward-chaining mode that could be used to allow sequential mode to handle some kind of RETE updates (first rules could then

Re: [rules-users] endless loop even with no-loop

2011-03-24 Thread Vincent Legendre
If you don't want to change your rules (add conditions, controls facts ...), you can set an AgendaFilter that only accepts rules not executed yet. If your rules are not chaining (ie one rule changes an attribute that trigger another rule), you should use sequential mode. Le 24/03/2011 10:27,

Re: [rules-users] Drools java program on Apple Ipad?

2011-03-21 Thread Vincent Legendre
Just wondering. But what about Android ? Does anyone already make drools work on it ? Le 19/03/2011 04:54, Lucas Amador a écrit : To have a minimal Java support you have to jailbreak your iPhone/iPad and install jamVM using the console. The last time I tried the compiler wasn't able to compile

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread Vincent Legendre
And what about ruleflow-group ? There is no network filtering for that too ? The ruleflow-group behaves like an agenda filter, but still evaluate all nodes ? Could we imagine setting tags to nodes, and stop propagation for node that does not declare the current task tag ? Le 21/03/2011

Re: [rules-users] Limiting rule evaluation--not firing

2011-03-21 Thread Vincent Legendre
rules are actually activated in what order. Thomas *From:*rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] *On Behalf Of *Vincent Legendre *Sent:* 21 March 2011 13:34 *To:* Rules Users List *Subject:* Re: [rules-users] Limiting rule evaluation--not firing

Re: [rules-users] Problems with Guided Rule Editor in Eclipse

2011-03-16 Thread Vincent Legendre
.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Vincent LEGENDRE Consultant Snior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Tl. : +33 (0)1 39 07 12 40 Direct : +33 (0)

Re: [rules-users] Can business people write rules?

2011-03-16 Thread Vincent Legendre
Le 15/03/2011 22:53, jwest a écrit : However, I don't know how to make this first line more complex using the guided editor. For example, you can hover on the second line of the rule and click on it and the shown dialog pop ups, allowing me to make this line more complex through adding

Re: [rules-users] Problems with Guided Rule Editor in Eclipse

2011-03-16 Thread Vincent Legendre
I was pretty sure to have seen something about sample BRL from Guvnor appears in error in eclipse. I can find some on JIRA, but never the same problem I have ... May be on another forum, but not JIRA ... Anyway, my problem is using DSL in BRL opened with eclipse plugin Guided Editor. Seems

Re: [rules-users] Guvnor and drools implementation - questions

2011-03-08 Thread Vincent Legendre
Yes i created rueles with guided editor and it's working with my attribute. is there a way to remove empty, entrySet, keySet, clone,... herited from Map. So i would have only the attribute i have defined? Don't make the POJO extends Map, but containing a map. i have always used drl file

Re: [rules-users] Guvnor and drools implementation - questions

2011-03-07 Thread Vincent Legendre
I've just created 2 class like you show me with some changes to fit and test all (timestamp are long in fact, i have put int, double and string as well) In the second class you don't need the attributes as members, because Drools uses get / set methods to deduce them, and anyway you never use

Re: [rules-users] Guvnor and drools implementation - questions

2011-03-04 Thread Vincent Legendre
For your problem of different instances of a map : If you want to match 2 maps, and compare them, your have to set a placeholder in your DSL to set the variable's name [when]The property {key:ENUM:Map.properties} of the map *{mapVar}* is {value}=*{mapVar} *: Map((this[{key}] == {value}))

Re: [rules-users] Guvnor and drools implementation - questions

2011-03-04 Thread Vincent Legendre
I just tried to make a pojo. But i will have to do a single Pojo called Map with all the properties? Right now i had 4 Enum. Here i will have to have all in the same POJO with name Map. No. Don't name the Pojo Map ... And create as much Pojo that you have different enums. Make them extend a

Re: [rules-users] Guvnor and drools implementation - questions

2011-03-03 Thread Vincent Legendre
list for attributes of the Map. Would it be possible to create a Pojo for Map or would it be in conflict with the Map of Java? Thank you for your time

Re: [rules-users] Guvnor and drools implementation - questions

2011-03-01 Thread Vincent Legendre
Le 01/03/2011 15:39, ioda100 a écrit : Thanks for your quick answer Esteban. 1) Ok i will have a look at DSL. In fact in my map i know all the properties (about 200). It would be cool to be able to have a drop down list with all these attributes as when we do it with objects for which we

Re: [rules-users] Object updated as rules are running

2011-02-25 Thread Vincent Legendre
g/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Vincent LEGENDRE Consultant Snior EURODECISION

Re: [rules-users] Who writes your rules? Dev vs. BA

2011-02-03 Thread Vincent Legendre
Just to bounce on DSL considerations For me DSL as they are provided in guided editor are not suitable for real-life projects, because : - parsing is too simple, and then force the rule writer to have a good idea of how it work, and what is behind the DSL phrase they use. - the guided

Re: [rules-users] Who writes your rules? Dev vs. BA

2011-02-01 Thread Vincent Legendre
My own feelings about that is yes, rules writer must know the objects they manipulate. So, to answer your question, if the object model is very technical, Devs must write rules. If not, BA can do. The main point is how much technical is your model objects. If you are starting a fresh new

Re: [rules-users] qualified identifiers in constraints: not commutative?

2010-12-31 Thread Vincent Legendre
ules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Vincent LEGENDRE Consultant Snior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Tl. : +33 (0)1 39 07 12 40

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

2010-12-31 Thread Vincent Legendre
p. Is drools scheduler the right tool for this job or could you suggest something better? Thank you for any insights you all have. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mail

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

2010-12-31 Thread Vincent Legendre
all of this suppose that the "100% sold" amount of click is a constant ... Le 31/12/2010 12:23, Vincent Legendre a écrit : Hi, If I understand well :    - you have only one ad at a time, displayed at least 10 minutes and at

Re: [rules-users] Same rules applies twice

2010-11-08 Thread Vincent Legendre
rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Vincent LEGENDRE Consultant Sénior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES T

Re: [rules-users] Activate/Deactivate parts of the rule sets

2010-10-28 Thread Vincent Legendre
-- Vincent LEGENDRE Consultant Snior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Tl. : +33 (0)1 39 07 12 40 Direct : +33 (0)1 39 07 26 16 www.eurodecision.com

Re: [rules-users] List of valid values

2010-10-19 Thread Vincent Legendre
listinfo/rules-users -- Vincent LEGENDRE Consultant Snior EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Tl. : +33 (0)1 39 07 12 40 Direct : +33 (0)1 39 07 26 16

Re: [rules-users] Get rid of redundant conditions in combined rules.

2010-10-19 Thread Vincent Legendre
___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users _______ rules-users mai

Re: [rules-users] Matching strings in two arrays

2010-09-29 Thread Vincent Legendre
Hi, In your fisrt post you mentionned that the test is ti check that your array contains ALL 3 string. Thus this is not a OR, but a AND Using Thomas trick which consist in given elements as facts, you could use a rule that looks like this : rule XYZ $p : MyContext ClassName(parent

Re: [rules-users] 4.x to 5.1.0 Rule migration issue

2010-09-28 Thread Vincent Legendre
Hi, The follwing error seems to mean that context is defined twice. May be that "context" is a reserved global variable in drools 5. Try to remane it in your rule, and check doc for more explanations

Re: [rules-users] Drools API for uploading Model JAR into package

2010-09-24 Thread Vincent Legendre
Hi, May be you can use the WebDav part of Guvnor, just like the Eclipse plugin does to synchronise files. But I don't know if Guvnor will then be updated automatically, or if you must go into package configuration and validate. May be you can create a new

[rules-users] category rules in Guvnor packages

2010-09-22 Thread Vincent Legendre
Hi all, I can't make my rules inherit from category rules. I saw a JIRA reporting a malfunction for this, but it shoud be corrected. I am using version 5.0.1 I tried a category rule writen un DRL, or in BRL. Same for rules that should inherit the LHS (tested with pure DRL, BRL ...) from one of

Re: [rules-users] category rules in Guvnor packages

2010-09-22 Thread Vincent Legendre
cked in the 5.1 trunk, and it is the same code for that method), and for the ordering constraint. Let me know your feelings about that. Le 22/09/2010 14:44, Vincent Legendre a crit: Hi all, I can't make my rules inherit from category rules. I saw a JIRA reporting a mal

<    1   2