Re: [rules-users] Enabling Role Base Authorization in Guvnor.

2011-11-14 Thread Jervis Liu
Manohar Kokkula wrote: > Hi all, > > I am trying to enable the Role Base Authorization in Guvnor after it > was running > fine with the default login mechanism. > But, encountered some problem with the attempt. > I followed given steps: > > > Step 1: > I exploded guvnor-5.2.0.Final-jboss-as-5.1.wa

[rules-users] Enabling Role Base Authorization in Guvnor.

2011-11-14 Thread Manohar Kokkula
Hi all, I am trying to enable the Role Base Authorization in Guvnor after it was running fine with the default login mechanism. But, encountered some problem with the attempt. I followed given steps: Step 1: I exploded guvnor-5.2.0.Final-jboss-as-5.1.war file, got guvnor-5.2.0.Final-jboss-as-5

[rules-users] Building our own UI for Drools

2011-11-14 Thread kapokfly
Due to some reasons (for example, build a consistent UI within our own application, easier to work with our own meta data, don't want SSO etc), we are considering to build our own UI to generate Drools rule file basing on the user input via the UI , has anyone tried this before? Is there any librar

[rules-users] when to use separate drl file , its advantage and disadvantage

2011-11-14 Thread srinivasasanda
Hai EveryOne.. when to use separate drl file, and when not to use, what are advantages and disadvantages, if we tell resource type drl , only that is loaded into inference engine or all rules files will loads. -- View this message in context: http://drools.46999.n3.nabble.com/when

[rules-users] How can I get rule's agenda group name?

2011-11-14 Thread Zhao Yi
I add an AgendaEventListener on a statefulesession. In beforeActivationFired method, I can get a Rule object by BeforeActivationFiredEvent.getActivation().getRule(). If the rule is configured in an agenda group, how can I get the agenda group name from the Rule object? Thanks, Zhao Yi -- View thi

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

2011-11-14 Thread Davide Sottara
I think have already fixed it in a trait-related pull request I'm working on. It also fixes a couple of bugs, including the metadata inheritance problem. Nevertheless, please provide a test case and a JIRA :) Thanks Davide -- View this message in context: http://drools.46999.n3.nabble.com/rules-

Re: [rules-users] programming classes to represent domain in Drools like templates

2011-11-14 Thread Welsh, Armand
Keep in mind that using these Declared Types in DRL will have an impact in high volume systems. Each time a knowledge session is initialized, these classes are dynamically loaded onto the class-path. This dynamic loading (and unloading) subjects your knowledgesession to a large amount of garba

Re: [rules-users] Showstopper issues for Drools Adoption in our organization

2011-11-14 Thread Welsh, Armand
Kapokfly, For issue 1: I have a very similar issue. What I am currently doing, is to pre-load my reference data from DB into my JVM, but I do not load those entities into working memory. Instead, I have the rules written to use the FROM clause in the left hand side of the rule. Example:

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

2011-11-14 Thread LCode
>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 versions. That way I can make some customisations and have the app ready to go without having to understand git, mvn and the rest. 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 ? > > -- > *De: *"Michael Anstis"

[rules-users] drools + AWS

2011-11-14 Thread Bobby Richards
anyone running a drools app or more specifically guvnor on amazon's web service? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

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

2011-11-14 Thread Edson Tirelli
Sorry, but which results exactly are you seeing? Edson 2011/11/14 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?)

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

2011-11-14 Thread Edson Tirelli
Vincent, Fact types are supposed to inherit the @role of their parent classes, so if you define the parent class/interface as an event, all subclasses will inherit the event role. If it is not working like this, it is a bug, but I am pretty sure we have tests for it. Please open a JIRA and p

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

2011-11-14 Thread Vincent LEGENDRE
Yep, I saw the button under KB ... But why ? - Mail original - De: "Michael Anstis" À: "Rules Users List" Envoyé: Lundi 14 Novembre 2011 19:51:43 Objet: Re: [rules-users] Guvnor 5.3 : No more "Create New ..." button in "Browse" view ? It was deliberate AFAIK. The button still exists

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

[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 ? _

[rules-users] Bug in org.drools.core.util.DateUtils after changing value of drools.dateformat?

2011-11-14 Thread prasad.deshpande
Hi, I need to change value of system property drools.dateformat dynamically. If I change the property, I still get error while executing rule 15:49:21,828 ERROR [STDERR] Unable to create a Field value of type 'ValueType = 'Date'' and value '"01-11-2011"' : [Rule name='EFP_14'] java.lang.IllegalA

Re: [rules-users] jbpm 3.2.x verssion .....

2011-11-14 Thread Sumeet Karawal
Its ok Mauricio, I didn't find it harsh at all, thanks for the help. :) Regards, Sumeet From: Mauricio Salatino

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

2011-11-14 Thread Michael Anstis
Thanks Wolfgang, quite how I missed the "collect" in my DRL I don't know :( 2011/11/14 Wolfgang Laun > The rule below assumes that markets is List in Town and ids is > List in a Market. > > It does not rely on Market or even Location objects being facts, and > there's no problem if a location id

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

2011-11-14 Thread Wolfgang Laun
The rule below assumes that markets is List in Town and ids is List in a Market. It does not rely on Market or even Location objects being facts, and there's no problem if a location id is re-used in another town. rule findThree when $t: Town( $name: name, $markets: markets ) $s: HashSet(

[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 hierarchy

Re: [rules-users] jbpm 3.2.x verssion .....

2011-11-14 Thread Mauricio Salatino
Sumeet, Marco, Sorry I didn't want to be harsh with my response :) Cheers 2011/11/14 Marco Rietveld > Summeet (and others), > > As mentioned, this is indeed a *drools* (user) mailing list. > > The proper mailing lists for jbpm (3, 4 or 5) are: > > jbpm-us...@lists.jboss.org (for these types

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

2011-11-14 Thread sachintaware
Hello Hi Thomas,thanks for the explanation,but I am not that a good java developer to work it out based on the theoretical explanation.That's the reason I asked for examples. I think I will have to stop as I am really getting stuck at this and spending more time then it should be. Anyways,thanks

Re: [rules-users] jbpm 3.2.x verssion .....

2011-11-14 Thread Marco Rietveld
Summeet (and others), As mentioned, this is indeed a drools (user) mailing list. The proper mailing lists for jbpm (3, 4 or 5) are: jbpm-us...@lists.jboss.org     (for these types of questions) jbpm-us...@lists.jboss.org     (for developers and people wh

Re: [rules-users] jbpm 3.2.x verssion .....

2011-11-14 Thread Marco Rietveld
Hi Summeet, jbpm 3.2.x works with jBoss AS 5.1 -- and obviously also with Drools 5.3, since there's no overlap between those two versions of jbpm and drools. I'm not sure if Drools 5.3 works with jBoss AS 5.1, although I think it does. There is a diff

Re: [rules-users] [Planner] CachedMoveFactory drive to Corrupted undo move

2011-11-14 Thread ge0ffrey
In the manual, read "delta score calculation". That gets broken somehow. Drools 5.1 had a bug that broke that, fixed since 5.2. you're probably changing a fact without doing wm.update -- View this message in context: http://drools.46999.n3.nabble.com/Planner-CachedMoveFactory-drive-to-Corrupted-

[rules-users] How to use RepositorySessionUtil.getRepository()?

2011-11-14 Thread Praveen
Hi All, I am using below piece of code from a standalone system to access the Rules repository. RulesRepository repository = RepositorySessionUtil.getRepository(); But we are getting RulesRepository Exception as below: org.drools.repository.RulesRepositoryException at org.drools.reposit

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

2011-11-14 Thread Swindells, Thomas
Drools is just a java library implementing some logic. The question you are asking is basically how do I write a JSP web application that uses some none JSP specific logic. It's not really any different to how you would write a JSP web app to read some records from a database, do some processing

Re: [rules-users] [Planner] CachedMoveFactory drive to Corrupted undo move

2011-11-14 Thread npiedeloup
I have test in TRACE mode, and I don't know what I can do with this error. In this test I have activated some Constraints. I've got a "The presumedScore (0hard/-500soft) is corrupted because it is not the realScore (0hard/-450soft)" I've got some questions : - When this error was launch ? - In

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

2011-11-14 Thread sachintaware
Hi Mike Waiting to hear from you.I am stuck a bit on these issue. Please point me to some example,for drools integrated with a simple jsp web-application(even standalone will do.). I want to display the result of rules on some UI(A web console,like Html-jsp).Is it possible?If yes,how?? Thanks an

Re: [rules-users] How to run an agenda group multiple times?

2011-11-14 Thread Wolfgang Laun
Consider this scenario: insert facts, rules r, s, t in group G are activated set focus for agenda group G set focus for agenda group G fireAllRules rules r, s fire rule t fires and inserts a fact so that rule u in G is activated rule u fires G is popped from the stack - no more rule

Re: [rules-users] How to run an agenda group multiple times?

2011-11-14 Thread FrankVhh
What Davide is saying is correct, as is your quotation of the docmentation. I'll try to rephrase Davide's explanation: the group should be activated twice, but the rules aren't necessarily fired. The conditions (incl. rule attributes) should still match before anything fires. Zhao Yi wrote: > >

Re: [rules-users] programming classes to represent domain in Drools like templates

2011-11-14 Thread santiago carbonell
Thanks Estaban This is what I need it, -- View this message in context: http://drools.46999.n3.nabble.com/programming-classes-to-represent-domain-in-Drools-like-templates-tp3506503p3506618.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

Re: [rules-users] How to run an agenda group multiple times?

2011-11-14 Thread Zhao Yi
According to Drools export document, *Each time setFocus() is called it pushes that Agenda Group onto a stack. When the focus group is empty it is popped from the stack and the focus group that is now on top evaluates. An Agenda Group can appear in multiple locations on the stack. * If I run setF

Re: [rules-users] programming classes to represent domain in Drools like templates

2011-11-14 Thread Esteban Aliverti
If you don't want to define your model as Java classes you can define it in drl syntax: http://docs.jboss.org/drools/release/5.3.0.Final/drools-expert-docs/html_single/index.html#d0e3390 Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com

[rules-users] programming classes to represent domain in Drools like templates

2011-11-14 Thread santiago carbonell
Hi, I'm new in drools and I'm doing some test with this fantastic engine. With Drools, I've loaded a drl file with some rules and ran with drools engine and works perfect, but I got to preset/programming some classes in Java about the domain where rules worked. I'd like to load this domain, this

[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] 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

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

2011-11-14 Thread axel
Thanks Mike. So, now I've included Drools 5.3.0 Final in my Eclipse Drools Project too and discovered the same problem as in Guvnor with my example. There is a difference between 5.2.0 Final (works well) and 5.3.0 Final (fails) in my case. Is there a major change with event processing with slidi

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