Re: [rules-users] Drools with rules from database

2012-08-23 Thread Michael Anstis
I knew I was on dangerous ground :) Thanks Wolfgang for tying up my loose end. At least you didn't change it to employesalary.color == director which would have confused me ;) On 23 August 2012 19:01, Wolfgang Laun wolfgang.l...@gmail.com wrote: On 23 August 2012 17:08, Michael Anstis

Re: [rules-users] Need assistance: Guvnor 5.3.1 throws null pointer exception when importing repository.xml

2012-08-22 Thread Michael Anstis
From where did the repository file you are importing originate? Some more information is going to be needed for anybody to be able to provide any assistance. sent on the move On 22 Aug 2012 16:38, Nancy Henggeler nancy.hengge...@fblfinancial.com wrote: Need assistance: Guvnor 5.3.1 throws

Re: [rules-users] Specify enumeration for DSL variables?

2012-08-18 Thread Michael Anstis
Thanks Esteban, I'd forgotten about your work on this :( On 17 August 2012 15:33, Esteban Aliverti esteban.alive...@gmail.comwrote: http://docs.jboss.org/drools/release/5.4.0.Final/drools-guvnor-docs/html_single/index.html#d0e1802 Best Regards,

Re: [rules-users] Hiding a column in web guided decision table disables a condition or action

2012-08-17 Thread Michael Anstis
Hi Jason, That is not supported at present, but is a work-around (that is consistent with enum definitions). Please raise another JIRA and I'll look into that too. With kind regards, Mike On 17 August 2012 02:40, jasonxzhong jason.zh...@ellucian.com wrote: Can @{KeyName} be annotated with

Re: [rules-users] Specify enumeration for DSL variables?

2012-08-17 Thread Michael Anstis
Eh? Can you please explain your requirement a bit more. On 17 August 2012 03:09, jasonxzhong jason.zh...@ellucian.com wrote: Is there a way to specify enumeration values or functions for variables in DSL definition? Thanks, Jason -- View this message in context:

Re: [rules-users] Guvnor clustering

2012-08-17 Thread Michael Anstis
This might be helpful: http://blog.athico.com/2011/01/configuring-multiple-guvnor-instances.html On 17 August 2012 03:34, jasonxzhong jason.zh...@ellucian.com wrote: Has anyone tried to set up Guvnor in a clustered configuration, i.e. using more than one instance of Guvnor for high

Re: [rules-users] Hiding a column in web guided decision table disables a condition or action

2012-08-16 Thread Michael Anstis
You don't need an separate BRL Fragment for each line in the DRL. Why not define a BRL Fragment for this:- data : RuleData( controlCode == 123, term = TemplateKey ) You'll then have a column in which to enter the value of term. If the cell the fragment will not be included in the rule. With

Re: [rules-users] Excel Upload of decision table resulting in incomplete rules

2012-08-16 Thread Michael Anstis
This is a limitation of the current import process. A Condition\Pattern spanning multiple condition columns becomes a single free-format DRL BRL Fragment column. BRL Fragments are only included if all value place holders contain a value. In the future we would like to improve the import to build

Re: [rules-users] Can two rules use the same template data?

2012-08-16 Thread Michael Anstis
No this is not possible. Separating Template from Data though would make a good feature. I've raised a JIRA for it here: https://issues.jboss.org/browse/GUVNOR-1929 With kind regards, Mike On 16 August 2012 18:08, dunnlow dunn...@yahoo.com wrote: I have template data that has several

Re: [rules-users] Can two rules use the same template data?

2012-08-16 Thread Michael Anstis
BTW, to clarify this is a Guvnor enhancement. I assume you was meaning Guvnor (...Create New - New Rule Template). Drools Expert Templates can already be used with different data-sets. On 16 August 2012 20:44, Michael Anstis michael.ans...@gmail.com wrote: No this is not possible

Re: [rules-users] How to use reference guided table cell value in BRL fragment using DSL

2012-08-16 Thread Michael Anstis
This is a known limitation: https://issues.jboss.org/browse/GUVNOR-1799 With kind regards, Mike On 16 August 2012 16:55, jasonxzhong jason.zh...@ellucian.com wrote: I am trying to figure out how to use DSL terms in BRL fragment to construct a column in a guided decision table. I have the

Re: [rules-users] Hiding a column in web guided decision table disables a condition or action

2012-08-16 Thread Michael Anstis
Hi, If you add a BRL Fragment column and add Free form drl to that you can use the @{keyname} notation (I just tried and it works fine). BTW, it was a design decision to have a boolean checkbox for BRL Fragments that contain no template keys. The thought being a user might not want the fragment

Re: [rules-users] Hiding a column in web guided decision table disables a condition or action

2012-08-16 Thread Michael Anstis
Hi, Unfortunately it is not possible to associate a data-type with a @{key} field at present. In order to do so we'd need to parse the DRL text to determine the Fact\Field to which the key relates (if indeed any). This is a significant enhancement. Being able to set a default value for BRL

Re: [rules-users] expert mailing list

2012-08-15 Thread Michael Anstis
Personally, I don't find the user list high volume. Perhaps re-categorizing the mailing lists we have works better:- - users: newbie type stuff - dev (rename drools-tech?): technical questions (not just implementation) My 2c. On 15 August 2012 00:33, Salaboy sala...@gmail.com wrote:

Re: [rules-users] Guided Rule option not visible in Eclipse

2012-08-15 Thread Michael Anstis
Done (for next release). On 14 August 2012 22:11, Mark Proctor mproc...@codehaus.org wrote: On 14 Aug 2012, at 19:29, dme1 meh...@hotmail.com wrote: Thanks for the detailed response. With the 5.4 plugin I do not see the Guided Rule option, just the Rule Resource, so the screeshot seems

Re: [rules-users] Creating template column in guvnor for attribute value?

2012-08-15 Thread Michael Anstis
Hi, This is somewhere between a bug and an enhancement: Currently the Template Editor does not support template keys for Metadata or Attributes; i.e. your requirement is an enhancement. You can however provide literal values formatted as template keys (e.g. @{xx} as you have discovered); i.e.

Re: [rules-users] How to check if a property IS null ?

2012-08-15 Thread Michael Anstis
Hi, I assume you mean Drools DRL (DSL is something different and none of your examples suggest use of this so far). How about checking for the absence of the Double instead of it being null:- when $product : Product( ) not Double( ) from bookingService.getQty( $product ) I've not tried

Re: [rules-users] otherwise in Excel Decision Table

2012-08-15 Thread Michael Anstis
The use of Otherwise is not supported in XLS at the moment. There is an open JIRA to address this: https://issues.jboss.org/browse/GUVNOR-1278 With kind regards, Mike On 15 August 2012 21:16, dme1 meh...@hotmail.com wrote: Hi, How do I use otherwise in Decision Tables created using Eclipse

Re: [rules-users] Getting Null pointer exception for applying change set

2012-08-14 Thread Michael Anstis
Any particular place you get the NPE? Is variable url null? On 14 August 2012 16:18, Rana ven12...@yahoo.com wrote: Having trouble getting the URL, getting null when getting the ChangeSet file. Please let me know what is the problem. ResourceChangeScannerConfiguration conf =

Re: [rules-users] Guided Rule option not visible in Eclipse

2012-08-14 Thread Michael Anstis
http://docs.jboss.org/drools/release/5.3.0.Final/droolsjbpm-introduction-docs/html_single/index.html#d0e823 It was removed in 5.2 (onwards) ...due to lack of interest and it falling behind On 14 August 2012 16:45, dme1 meh...@hotmail.com wrote: Hi, I have installed Drools v5.4.0 Final. I

Re: [rules-users] Getting Null pointer exception for applying change set

2012-08-14 Thread Michael Anstis
This is a classpath related issue. Please ensure src/main/resources is on your classpath (if running from within Eclipse for example, files within the resources folder are normally excluded). On 14 August 2012 17:12, Rana ven12...@yahoo.com wrote: This is the place I am getting the NPE.

Re: [rules-users] Guided Rule option not visible in Eclipse

2012-08-14 Thread Michael Anstis
Hello, Eclipse only has the text based DRL rule editor. This is guided in the sense that it has (should have, I've not looked recently) auto-complete. GWT is Google Web Toolkit and is used by Guvnor; hence the statement GWT based Guided Editor in Guvnor. The editor that has been removed was

Re: [rules-users] Getting Null pointer exception for applying change set

2012-08-14 Thread Michael Anstis
Strangely it appears it works no better than before; you have simply moved the error from a malformed classpath reference to a malformed file-system reference. The proximate cause is now Caused by: java.net.MalformedURLException: unknown protocol: d. The path

Re: [rules-users] DRL to Decision Table

2012-08-10 Thread Michael Anstis
There is none with which I am aware of; however there might be something in the community. The concept has been loosely spoken about within the Drools team however nothing more concrete. Wait to see if there are replies from anybody else before drawing your conclusion. With kind regards, Mike

Re: [rules-users] Decision table help

2012-08-10 Thread Michael Anstis
In DRL terms this is quite simple:- when $instance1 : ObjA( $mailID : mailId ) ObjA( this != $instance1, mailId != $mailId ) then ... This translates to a XLS decision table like this:- | CONDITION | CONDITION | CONDITION|

Re: [rules-users] Web decision tables (Guvnor)

2012-08-10 Thread Michael Anstis
Hi Stephen, You've made my afternoon ;) The operation of otherwise is rather dumb. It does not have any understanding of what groups of rows it is meant to limit it's search of values to construct the not in part. As you have discovered, in your case, the Account column has no significance

Re: [rules-users] guvnor 5.4 final turning off authentication

2012-08-10 Thread Michael Anstis
Guvnor 5.4 uses Seam 3 whereas Guvnor 5.3 used Seam 2. At the same time the org.drools.guvnor.server.security.NilAuthenticator was removed. AFAIK you should be able to copy org.drools.guvnor.server.security.DemoAuthenticator and have it authenticate regardless of user credentials.

Re: [rules-users] How to define keywords that represent objects(in facts) to be able to use in rules

2012-08-09 Thread Michael Anstis
If the values are dynamic and the Fact/Field static for a keyword you could consider using a Template or Decision Table, where for example a single column represents a Fact/Field and the user simply provides the values. I am surprised to read you found DSL had to be defined for every Condition or

Re: [rules-users] Guvnor: Accessing Bound Variable in Then Statement

2012-07-27 Thread Michael Anstis
Hello, Please advise which version of Guvnor you are using. Please also provide a few explicit examples where behavior is not as you'd expect (screen shots of the rule and a few words would be cool). Thanks, Mike On 26 July 2012 20:42, Vann_the_Red aba...@ntelx.com wrote: Hello. I started

Re: [rules-users] Using global variable in DRL file

2012-07-26 Thread Michael Anstis
Try reading the Drools Expert User Guide section about the use of Globals :) Globals are not Facts to be reason in the Left-Hand-Side (WHEN) part of a rule. Either use the Global (assuming it contains static data) and initialize it correctly from within Java code (see the User Guide) or insert

Re: [rules-users] How to make available declarative model to all packages.

2012-07-26 Thread Michael Anstis
I have tried with 5.4.0.Final and found everything to work as required. These are the steps I followed (which don't appear out of the ordinary):- 1) Create new Declarative Model (let's call in GADM) in Global Area 2) Define GADM. 3) Save GADM. 4) Create new Package (called P1) 5) Create new

Re: [rules-users] Using global variable in DRL file

2012-07-26 Thread Michael Anstis
So, you have multiple CSVBeanAgent's (created from a text file somewhere). These are stored in a Map created in Java called globals. Where do you actually set the global in WorkingMemory: See http://docs.jboss.org/drools/release/5.4.0.Final/drools-expert-docs/html/ch04.html#d0e4482 .

[rules-users] Guvnor 5.4.0.Final and JBoss AS 7.1.1.Final

2012-07-26 Thread Michael Anstis
Hi, There have been a few messages recently suggesting there are problems running Guvnor 5.4.0.Final on JBoss AS 7.1.1.Final. I had a check and this is what I found:- 1) Downloaded guvnor-5.4.0-Final.zip from Drools website 2) Unzip 3) Deploy guvnor-5.4.0.Final-jboss-as-7.0.war to JBoss AS

Re: [rules-users] Guvnor Integration with Eclipse Issue !!

2012-07-26 Thread Michael Anstis
Different versions of the Eclipse Plugin and Guvnor is definitely a problem you will want to eliminate. I had no problem finding a download the the Eclipse Plugin: http://download.jboss.org/drools/release/5.4.0.Final/droolsjbpm-tools-distribution-5.4.0.Final.zip. There was a change made in 5.4

Re: [rules-users] Guvnor Integration with Eclipse Issue !!

2012-07-26 Thread Michael Anstis
You need Guvnor 5.4 and the Eclipse Plugin 5.4. Both are available here: http://www.jboss.org/drools/downloads On 26 July 2012 14:26, abhinay_agarwal abhinay_agar...@infosys.com wrote: hey mike, thankz for the reply.. but i m using the plugin which yu supplied..i need a plugin for GUVNOR

Re: [rules-users] Guvnor Integration with Eclipse Issue !!

2012-07-26 Thread Michael Anstis
I notice that the Drools download page has a link to older versions. Maybe, just maybe, there's a slight chance following the link will lead you to what you seek. I don't know it must be worth a try. The internet is full of these links and they seem to go to useful places. With kind regards,

Re: [rules-users] How to make available declarative model to all packages.

2012-07-25 Thread Michael Anstis
OK, great I understand :) What version of Guvnor are you using? On 25 July 2012 07:18, rodolphio m.rindflei...@gameartstudio.de wrote: Hi manstis, I allready have made the 2 steps you mentioned above. This is not the problem. The problem is the following step 3: Going to the Edit tab in

Re: [rules-users] Guvnor search for rules based on fact attributes

2012-07-25 Thread Michael Anstis
drools-verifier (the scaffolding thereof at least) could be used in principle. drools-verifier builds an AST of a rule's definition that is then evaluated by some bundled validation\verification rules. In principle you could use the AST and your own rules to perform a search. Guvnor uses JCR

Re: [rules-users] Using Global Model for all packages

2012-07-24 Thread Michael Anstis
Sounds like there's a problem :( Could somebody please raise a JIRA (for Guvnor) and provide full details of exactly what the problem is (including a repository export, if possible). With kind regards, Mike On 24 July 2012 13:20, Vincent LEGENDRE vincent.legen...@eurodecision.comwrote:

Re: [rules-users] How to make available declarative model to all packages.

2012-07-24 Thread Michael Anstis
TBH, I don't understand what it is you are having problems with: this thread seems to have gone full-circle. As Esteban states, to share a model in multiple Guvnor packages you need to: 1) Create a model in the Global Area 2) Create a mode in the individual package (choosing to import from Global

Re: [rules-users] Web guided Decision table

2012-07-20 Thread Michael Anstis
What version of Guvnor are you using? It is impossible to define the DRL you show below with pre-5.4. Pre-5.4 you have to have a field constraint on the pattern (even if it's this != null). Add conditon-Add pattern-Customer (binding\variable $cc)-Add field, this-Add operator, is not null. With

Re: [rules-users] Web guided Decision table

2012-07-20 Thread Michael Anstis
Eh? That doesn't make sense. Please post a screen shot of your decision table (with the header expanded so I can see your column definitions) and the result of Show source for it. On 20 July 2012 13:55, abhinay_agarwal abhinay_agar...@infosys.com wrote: hi mike, actually i have values in my

Re: [rules-users] Web guided Decision table

2012-07-20 Thread Michael Anstis
Other than the ways that have already been suggested on this thread? No. On 20 July 2012 14:11, abhinay_agarwal abhinay_agar...@infosys.com wrote: thankz mike, not equal to null helped !! can yu suggest me a way of using setFocus() in DT ? -- View this message in context:

Re: [rules-users] Web guided Decision table

2012-07-19 Thread Michael Anstis
If you're using 5.4 you can add a BRL Action column and use a free-format DRL fragment. Prior to 5.4 the above is not possible. In which case an alternative might be to use Rule Templates instead. On 19 July 2012 13:02, abhinay_agarwal abhinay_agar...@infosys.com wrote: by what i see predicate

Re: [rules-users] How handle exception thrown while looping in DRL file

2012-07-17 Thread Michael Anstis
You haven't asked any questions, merely stated you have an error message. Try posting some supporting code (DRL, related Java etc) it might help people. On 17 July 2012 10:03, ashwindrool ashwin.khandelwa...@gmail.com wrote: Thnks for Replying , Plz give some idea in above issue. -- View

Re: [rules-users] How handle exception thrown while looping in DRL file

2012-07-17 Thread Michael Anstis
When you say the loop works fine, do the System.out's print what you expect? On 17 July 2012 10:34, ashwindrool ashwin.khandelwa...@gmail.com wrote: Sorry Mike,Laune I am handling 100thousand records for that i am using CSV file and converting those records into objects which i am using for

Re: [rules-users] Drools Guvnor - question on mortgages package in guvnor-distribution-5.4.0.Final

2012-07-13 Thread Michael Anstis
The mortgages example uses a declarative model, not a POJO JAR model. There will be an asset for the model. On 13 July 2012 08:46, Ravikiran ravikiran.kaka...@gmail.com wrote: Hi, I have deployed drools-guvnor.war version 5.4.0 in Jboss AS 7. When i launch the guvnor for the first time, it

Re: [rules-users] Do any developers drool have any simple easy work they want a hand with?

2012-07-13 Thread Michael Anstis
Might I suggest your friend looks at Drool's JIRA list: https://issues.jboss.org/browse/JBRULES Pick something they feel they understand and would like to tackle. Join us on IRC for guidance. Of course, your friend might prefer to help with a project that uses Drools... In which case might I

Re: [rules-users] Customizing Drools Guvnor

2012-07-12 Thread Michael Anstis
Read the Guvnor user guide? On 12 July 2012 07:52, arup arup4u2...@gmail.com wrote: Hi all, Can u tell me how can i add a fresh rule using Rest api to the guvnor??? -- View this message in context: http://drools.46999.n3.nabble.com/Customizing-Drools-Guvnor-tp4018616.html Sent from

Re: [rules-users] Rule refiring issue !

2012-07-12 Thread Michael Anstis
or do yu need more data ?? Rules 2 and 3 in their entirety would be a good starting point. On 12 July 2012 09:27, abhinay_agarwal abhinay_agar...@infosys.com wrote: rule rule1 agenda-group 1 salience 0 when $a : Account() $h :

Re: [rules-users] Rule refiring issue !

2012-07-12 Thread Michael Anstis
What rules are in agenda-group 3? On 12 July 2012 09:58, abhinay_agarwal abhinay_agar...@infosys.com wrote: rule rule1 agenda-group 1 salience 0 when $a : Account() $h : HashMap(!(this[Aggregate_Balance]=5)) then setFocus(2) end rule

Re: [rules-users] Problem in deploying GUNVOR

2012-07-11 Thread Michael Anstis
Have you tried 5.4.0.Final? The log below suggests you are using 5.4.0.CR1. On 11 July 2012 07:53, elena_nard...@libero.it elena_nard...@libero.itwrote: Hi all, I am trying to deploy GUVNOR 5.4.0 on TOMCAT 6.0.35 but I met the following error: 11-lug-2012 8.44.17

Re: [rules-users] Error occured when replacing commons-lang2.4 with commons-lang3-3.1 in Guvnor 5.4.0 Final

2012-07-11 Thread Michael Anstis
The class required by Guvnor, org.apache.commons.lang.StringUtils, doesn't exist in 3-3.1. It has been renamed org.apache.commons.lang3.StringUtils in 3-3.1. On 11 July 2012 12:15, chrisLi shengtao0...@163.com wrote: Hi, All I am using Guvnor 5.4.0 Final with Tomcat 6.0.35. And I wanted

Re: [rules-users] DEPLOYMENTS Guvnor IN ERROR

2012-07-05 Thread Michael Anstis
We don't build a version of Guvnor 5.4 that will run on JBoss AS 5.0.1 out of the box only AS 7.x. Different AS's bundle different JARs and different versions thereof so we had to limit the out of the box configurations we provide. We provide for JBoss AS7, JBoss EAP 5.1 and Tomcat 6.0. With

Re: [rules-users] decision Tables - Operators - starts with/end with??

2012-07-04 Thread Michael Anstis
This is not possible with 5.2. With 5.4 you can create a decision table with a column defined as a BRL fragment (guided rule editor). This will allow you to use matches or sounds like. Matches could also be used to emulate starts with or ends with given the correct regular expression. This JIRA

Re: [rules-users] Guvnor Help !!

2012-07-04 Thread Michael Anstis
You don't need to create a global. You do however need to add an import for the class in the POJO JAR. This can be accomplished on the same screen. Ensure you save the package after adding the import. Ideally, when importing a POJO model from the Global Area, the imports should be added

Re: [rules-users] Expanding Rule Template with template data from database

2012-07-03 Thread Michael Anstis
No. Expansion is performed within Guvnor at package compilation time. Currently this is limited to the data entered within Guvnor. Feel free to raise a JIRA requesting this feature (or any external source for that matter) at https://issues.jboss.org/browse/GUVNOR (no promise as to when it will

Re: [rules-users] GUVNOR 5.4 JBOSS v4.2.3 deployment error

2012-07-02 Thread Michael Anstis
The WAR you have used targets JBoss AS 7.x. We do not test Guvnor 5.4.0.Final on JBoss AS 4.x and will not do so. Regrettably, should you need to use JBoss AS 4.x, you will need to find your own solutions (although there may be other community members who can help). We needed to package as

Re: [rules-users] convert drl file to rf?

2012-06-29 Thread Michael Anstis
AFAIK, you are correct. A DRL file contains rules and related constructs (declarative types, functions, queries etc). A BPMN2 file (or it's legacy RuleFlow predecessor) contains a process definition. The two represent different concepts and cannot be converted between each other. With kind

Re: [rules-users] Guvnor Help !!

2012-06-28 Thread Michael Anstis
The Global Area is a container for assets you might like to share across different packages. For example, you might have a POJO Model that you want to use in two different packages. Assets in the Global Area are *not* in packages unless you import them into the package. Rules are assets so the

Re: [rules-users] Drools verifier

2012-06-28 Thread Michael Anstis
Strange I recall this very same question being asked numerous times in the past week. Whilst a fan of Bill Murray, in particular the film Ground Hog Day, I have no wish to relive your question on a continual loop. Download drools-verifier, look at the code, ask directed questions; i.e. what

Re: [rules-users] Guvnor Help !!

2012-06-27 Thread Michael Anstis
Think of the Global Area as a place where assets can be stored to share across packages. When you build a package assets linked from the Global Area will be included. This package is the KnowledgeBase, the runtime, with which rules will lead to activations. It is impossible to upload FACTS to

Re: [rules-users] Drools verifier

2012-06-27 Thread Michael Anstis
Strange I recall this very same question being asked numerous times in the past week. Whilst a fan of Bill Murray, in particular the film Ground Hog Day, I have no wish to relive your question on a continual loop. Download drools-verifier, look at the code, ask directed questions; i.e. what

Re: [rules-users] Drools-guvnor simple example Help

2012-06-25 Thread Michael Anstis
How do you know what set of rules need to be executed? Do you make the decision based upon the business-transaction or Object types, or Object properties? I only ask as you may not need to worry about which rules run and which do not if you can differentiate at the Object level. For example:-

Re: [rules-users] Does Guvnor Support Traits?

2012-06-22 Thread Michael Anstis
Guvnor only supports traits in technical rules (which are effectively free-format DRL, i.e. text). I think traits are still considered experimental at this stage (Sotty, Mark can you confirm?) so we'd be reluctant to introduce better UI support at this time. The need to add at some stage has

Re: [rules-users] Does Guvnor Support Traits?

2012-06-22 Thread Michael Anstis
Hi Benjamin, Your assumptions are correct - not so green after all :) Technical Rules are just plain text DRL, so whatever drools-expert supports is possible. TBH, I've not heard of anybody else using traits (or attempting to) in Guvnor, so any feedback would be great. AFAIK, experimental

Re: [rules-users] Does Guvnor Support Traits?

2012-06-22 Thread Michael Anstis
Thanks Davide, your comments are much appreciated. sent on the move On 22 Jun 2012 22:52, Davide Sottara dso...@gmail.com wrote: Experimental means it has not been tested thoroughly yet, so it might be subject to improvements and even some language changes. Also, it means that the docs are

Re: [rules-users] Issue with Guvnor 5.4.0 Final 'View Source'

2012-06-20 Thread Michael Anstis
I've not personally seen this before. How does it look on Fire Fox or Chrome? On 20 June 2012 18:54, TonyN tony.n.ngu...@boeing.com wrote: I am experiencing this issue with source viewing in the Guvnor (5.4.0 Final). The text are all 'right' justified (please see pic attached) 5.2.0 Final

Re: [rules-users] Issue with Guvnor 5.4.0 Final 'View Source'

2012-06-20 Thread Michael Anstis
Ok, that's great. At least it isn't systematic. Could you please raise a JIRA (for GUVNOR) and we'll take a look pull requests are always welcome too :) sent on the move On 20 Jun 2012 21:37, TonyN tony.n.ngu...@boeing.com wrote: HI Mike, Firefox 10.0.4 works fine...I don't have Chrome

Re: [rules-users] guvnor-distribution-5.4.0.Final problem

2012-06-16 Thread Michael Anstis
? Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Sun, Jun 17, 2012 at 12:45 AM, Michael Anstis michael.ans...@gmail.com wrote: If you receive Guvnor from the Drools download page it is not a Red Hat product

Re: [rules-users] Hibernate Configuration with Drools 5.4

2012-06-15 Thread Michael Anstis
Your requirement is not clear. What do you want to store in a database? Rules, Facts? Is 50,000 records in one of my decision tables 50k rows or 50k facts? If facts what makes you thinking moving them from in-memory objects to a database will bring any performance gains? On 15 June 2012 07:38,

Re: [rules-users] Guvnor: Dependent Enumeration loosing value

2012-06-15 Thread Michael Anstis
It most certainly sounds like a bug, please create a JIRA and attach a repository showing the problem. sent on the move On 15 Jun 2012 15:28, Sandjaja, Dominik dominik.sandj...@it-motive.de wrote: ** Hi everybody, I use the advanced, dependent enumeration concepts of the Guvnor DSL as

Re: [rules-users] jsp, java and drl file

2012-06-14 Thread Michael Anstis
Drools provides an excellent user-guide. Plenty in there relating to Globals and Queries if I remember correctly. On 14 June 2012 17:58, Brajesh brajesh4...@gmail.com wrote: Hello manstis Thanks for your fast reply but can you provide me a small piece of code what you said theoretically so

Re: [rules-users] Programatically filled Enum not getting loaded

2012-06-13 Thread Michael Anstis
Sounds like a bug to me. Please raise a JIRA at https://issues.jboss.org/browse/GUVNOR, including a self-contained repository export and your description below. With kind regards, Mike On 13 June 2012 16:47, Sandjaja, Dominik dominik.sandj...@it-motive.dewrote: ** I use Guvnor 5.4.0 with

Re: [rules-users] can't put formula on Guvnor screen

2012-06-09 Thread Michael Anstis
As far as I am concerned, yes. Use the URL I included in my previous email. sent on the move On 9 Jun 2012 06:04, zeeshan zeeshan.spr...@gmail.com wrote: Hi Mike ! Will it be OK to go with *5.5.0-SNAPSHOT*.?? Is formula part in 5.5.0-SNAPSHOT of THEN working..?? Thanks ! --

Re: [rules-users] Quality of ruleflow with drools verifier???

2012-06-08 Thread Michael Anstis
I guess that depends on how you define quality. On 8 June 2012 09:00, paco fifi_nji...@yahoo.fr wrote: Hello everybody, I'm using Drools-verifier to verify the qualities of the rules. But I'd like to know how to use it to verify the quality of the ruleflow(all rules in any ruleflow)

Re: [rules-users] can't put formula on Guvnor screen

2012-06-08 Thread Michael Anstis
This is the commit that fixes is: https://github.com/droolsjbpm/guvnor/commit/eed225c10df8b95404f801f1af7c353299b9ae6e I am downloading the SNAPSHOT from https://hudson.jboss.org/jenkins/job/guvnor/lastSuccessfulBuild/artifact/and will try. I can confirm (again) that it works as expected using

Re: [rules-users] can't put formula on Guvnor screen

2012-06-08 Thread Michael Anstis
Download complete. Deployed guvnor-5.5.0-SNAPSHOT-tomcat-6.0.war to Tomcat 6.0.30. Ran. Works OK. Am I missing something? On 8 June 2012 20:54, Michael Anstis michael.ans...@gmail.com wrote: This is the commit that fixes is: https://github.com/droolsjbpm/guvnor/commit

Re: [rules-users] guvnor repo with Oracle issue

2012-06-06 Thread Michael Anstis
Guvnor uses JCR that provides the means to store its content in a database. The generated repository configuration file defines table prefixes to try to eliminate potential name clashes. If importing into a schema that has pre-existing objects (that you cannot destroy) you could try changing the

Re: [rules-users] guvnor repo with Oracle issue

2012-06-06 Thread Michael Anstis
Hi Jim, droolsjbpm-build-bootstrap\README.md contains some recommendations (all be it not specifically for web-server configutation). Building with maven we recommend: -Xms256m -Xmx1024m -XX:MaxPermSize=512m Running from within Eclipse we recommend: -Xms512m -Xmx2048m -XX:MaxPermSize=512m

Re: [rules-users] guvnor repo with Oracle issue

2012-06-05 Thread Michael Anstis
Are you able to determine which object already existed? Oracle's log should give some more information. What version of Oracle are you using too? On 5 June 2012 18:53, jnorris james.nor...@pb.com wrote: Hi All, I'm trying to get the drools-guvnor web-app (5.4.0.Final) to work with Oracle.

Re: [rules-users] Guvnor WS Constraints not getting activated

2012-06-05 Thread Michael Anstis
Working Sets do not function for decision tables, only the web-guided BRL editor. Please feel free to raise a JIRA requesting the enhancement: https://issues.jboss.org/browse/GUVNOR Event better, roll up your shirt sleeves, get involved and submit a pull request :) With kind regards, Mike On

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

2012-06-05 Thread Michael Anstis
It should in theory be a relatively simple enhancement. Please feel free to request such an enhancement: https://issues.jboss.org/browse/GUVNOR. A pull request providing such functionality is always welcome :) Feel free to come along to #guvnordev if you need some guidance. With kind regards,

Re: [rules-users] need help or any links customizing guvnor

2012-06-01 Thread Michael Anstis
By Category Home Mortgage Eligibility rule Underage and then click on open, you get this screen using which you can create/edit the rule graphically. Thanks, Abdullah On Tue, May 29, 2012 at 12:29 AM, Michael Anstis michael.ans...@gmail.com wrote: Do you want to add a new editor to Guvnor, or use

Re: [rules-users] Drools Decision Table, multiple actions accumulation

2012-06-01 Thread Michael Anstis
You cannot merge multiple ACTION columns into a single DRL statement. If your individual key components can be bound as individual CONDITION Colum constraints the ACTION need only contain the value. sent on the move On 1 Jun 2012 21:18, chsekhar chandrasekha...@gmail.com wrote: In the

Re: [rules-users] Drools Decision Table, multiple actions accumulation

2012-06-01 Thread Michael Anstis
But each column became a separate DRL fragment ;) but glad to read you got it working :) One for me to remember. Thanks Vincent sent on the move On 2 Jun 2012 01:47, chsekhar chandrasekha...@gmail.com wrote: I was able to merge data from multiple ACTION columns in decision table. First

Re: [rules-users] Looking for Drools audit tool

2012-05-31 Thread Michael Anstis
drools-verifier is the usual suggestion for such things. It comes bundled with a set of validation\verification rules but you can add your own too. On 31 May 2012 08:42, paco fifi_nji...@yahoo.fr wrote: I am looking for something that can help me to detect the following errors: redundancies,

Re: [rules-users] DRL to XML transformation

2012-05-31 Thread Michael Anstis
The XML format produced by XmlDumper is an XML representation of various internal Descriptors used by Drools Expert and only supports features up to 4.0 It is unfortunately not the same as that stored internally in Guvnor (which is simply a XStream representation of Guvnor's internal model).

Re: [rules-users] Looking for Drools audit tool

2012-05-31 Thread Michael Anstis
This https://community.jboss.org/wiki/DroolsVerifier and Google are probably your best bets. On 31 May 2012 13:22, paco fifi_nji...@yahoo.fr wrote: Thank yyou very much. But can you tell me where can I find documentation and examples about Drools verifier? Thanks Paco -- View this

Re: [rules-users] getting mismatched '==' error

2012-05-29 Thread Michael Anstis
I suspect it is caused by the spreadsheet validations you have enabled for rows 19 onwards, columns E and F. Try removing these - as they look to be a hang-over from (presumably) basing the workbook on an existing example somewhere. On 29 May 2012 11:31, zeeshan zeeshan.spr...@gmail.com wrote:

Re: [rules-users] Getting error in my Decision Table

2012-05-28 Thread Michael Anstis
It's because rows 31-34 contain [6;99] whereas your condition just shows policyYear == $param so you're getting DRL like Commission( policyTear == [6;99] ) On 28 May 2012 13:27, zeeshan zeeshan.spr...@gmail.com wrote: Hi ! I am getting error in my decision tableplease verify it...I am

Re: [rules-users] need help or any links customizing guvnor

2012-05-28 Thread Michael Anstis
Do you want to add a new editor to Guvnor, or use a Guvnor editor in your own application? On 28 May 2012 19:51, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Hi, I am new to drools guvnor. I was able to create simple drl file and run from classpath and from guvnor too using url. I

Re: [rules-users] referencing the incoming objects vs the matching object

2012-05-25 Thread Michael Anstis
Assuming TYPE_1 is the opposite of TYPE_2 and not just a difference it should work. What is opposite is perhaps difficult to define as there is probably some semantics involved: up\down, left\right, yes\no. These have well defined meanings and hence we can say with some certainty that these are

Re: [rules-users] can't put formula on Guvnor screen

2012-05-24 Thread Michael Anstis
It should be working in 5.5.0.beta1. 5.4.0.Final is what we released. I would not recommend using 5.4.0.beta1 as it is pre-release and some of it's internals could have changed for 5.4.0.Final (and later). Consequentially, and I believer other community members have been caught out this way,

Re: [rules-users] How to put Power in Formula box of THEN ?

2012-05-24 Thread Michael Anstis
The THEN part is either (depending upon the rule's dialect) a Java or MVEL code block. Java defines the ^ operators as a bitwise exclusive or. I suspect you should probably use Math.pow. Math is in the java.lang package so you shouldn't need to explicitly import. With kind regards, Mike On 24

Re: [rules-users] How to put Power in Formula box of THEN ?

2012-05-24 Thread Michael Anstis
Formula box should be OK, but check the generated DRL. On 24 May 2012 11:50, zeeshan zeeshan.spr...@gmail.com wrote: Hi Mike and many thanks for replying ! shall I use *Math.pow* in free form DRL of THEN or can I use in Formula Box...??? thanks !! -- View this message in context:

Re: [rules-users] How to put Power in Formula box of THEN ?

2012-05-24 Thread Michael Anstis
The variables in the RHS's DRL aren't prefixed with $ as they are in the LHS. sent on the move On 24 May 2012 13:52, zeeshan zeeshan.spr...@gmail.com wrote: Hi Laune and thanks for replying !! *1.* I am using *5.4.0 Beta* 1... I also tried by using *Math.pow* as Mike posted above but by

Re: [rules-users] How to put Power in Formula box of THEN ?

2012-05-24 Thread Michael Anstis
I still see a sumAssured without $ on line 6. sent on the move On 24 May 2012 14:35, zeeshan zeeshan.spr...@gmail.com wrote: Hi Mike ! I tried with prefix $ too on the RHS, still giving error *[DeathBenefitRule] Unable to Analyse Expression $deathBenefit.setSumAssured(

Re: [rules-users] Can we retrieve the rules as XML from guvnor using java code?

2012-05-24 Thread Michael Anstis
It is true Guvnor stores some asset types as XML internally. There is however no schema (we simply use XStream to serialise) and it most certainly is not compliant with any industry standard on rule representation (if indeed there is a single well defined open standa sent on the move On 24 May

Re: [rules-users] Can we retrieve the rules as XML from guvnor using java code?

2012-05-24 Thread Michael Anstis
oops... hit send too soon... ...open standard, although OMG is working on a Decision Model Notation standard that will help with the interchange of some types). So, in short, the answer is no. sent on the move On 24 May 2012 16:01, Michael Anstis michael.ans...@gmail.com wrote: It is true

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