Re: [rules-users] java.lang.ArrayIndexOutOfBoundsException at Frame

2012-01-20 Thread Michael Anstis
log; rule ProductTag-FixedSMS when $cdr : CDR(callClassCode == F1 || callClassCode == F2 ) then $cdr.setProductName(fixedsms); end 2012/1/18 Michael Anstis michael.ans...@gmail.com You're going to give a little more information, such as the DRL you're unable to compile

Re: [rules-users] Can we set a default value for emlpty cells in Drools templates

2012-01-20 Thread Michael Anstis
We have also added the ability to use BRL Fragments as columns in the guided Decision tables (for 5.4.0.beta2). http://blog.athico.com/2012/01/guided-decision-table-supports-brl.html You could then define a column as:- $c : Company() Company (this == $c, something = {templateKey} ) In rows

Re: [rules-users] rule dialect issue in local file stream Vs Guvnor

2012-01-20 Thread Michael Anstis
Can you view the package source in Guvnor and report if it shows an explicit dialect? IIRC you are not the first person who has experienced this type of behaviour. sent on the move On 20 Jan 2012 21:52, domingo sprabak...@gmail.com wrote: I have one simple rule, just check the boolean

Re: [rules-users] java.lang.ArrayIndexOutOfBoundsException at Frame

2012-01-18 Thread Michael Anstis
You're going to give a little more information, such as the DRL you're unable to compile. 2012/1/18 mujoko mujoko mujoko.muj...@gmail.com Hi Drools Users, I'm new member, Mujoko. I got issue regarding my rules. Several times got exception when trying to create KnowledgeSession. I used

Re: [rules-users] Large number of rules in Drools

2012-01-17 Thread Michael Anstis
when there are many lines ? Regards Nicolas Héron 2012/1/11 Michael Anstis [hidden email]http://user/SendEmail.jtp?type=nodenode=3650237i=0 Thousands of lines of DRL in a single file represent an issue not just to Guvnor but to anything handling it. The recommendation would be to split

Re: [rules-users] Calling POJO class get Method in BRL

2012-01-16 Thread Michael Anstis
In your rule do the following:- - Add PersonDetails fact - Add Person fact - Add a constraint for PersonDetails.age ( 0 would be a good choice). - Bind age field to a variable (click on field name in the constraint and you're given the choice to set it to a variable) - Add a

Re: [rules-users] Calling POJO class get Method in BRL

2012-01-16 Thread Michael Anstis
Where do you insert a PersonDetails fact? Why do you set the age on Person when you state it'll be in PersonDetails? You'll also need to have a relationship between Person and PersonDetails and include this in your rule. For example (in DRL terms, but possible to create in Guvnor):- $p :

Re: [rules-users] Calling POJO class get Method in BRL

2012-01-16 Thread Michael Anstis
Why do you insert application and p in different sessions? On 16 January 2012 13:08, srinivasasanda srinivasasa...@gmail.com wrote: After your suggestion here is my code, RuleAgent agent = RuleAgent.newRuleAgent(/Guvnor.properties); RuleBase rb =

Re: [rules-users] Application Guvnor integration

2012-01-16 Thread Michael Anstis
Senthil, You seem to be having some problem. Have you tried looking (and adapting) the guvnor-example project that shows the use of change-sets? (git clone guvnor-examples) - git/droolsjbpm/guvnor/guvnor-examples/src/main/java/org/drools/guvnor/examples/mortgage/client On 16 January 2012

Re: [rules-users] Application Guvnor integration

2012-01-16 Thread Michael Anstis
Yay, at long last a Java Stack Trace :) This is a known problem, but one I believe has been fixed for 5.4.0.beta1 - correct me if I am wrong esteban. sent on the move On 17 Jan 2012 07:22, Senthil K kris.senthilku...@gmail.com wrote: Thank you Manstis..I'm able to retrieve the packages and

Re: [rules-users] Deleting more than one rule in Guvnor 5.3

2012-01-13 Thread Michael Anstis
That is not possible, but would be a good idea. We have this JIRA https://issues.jboss.org/browse/GUVNOR-1114 which covers your use-case, but for a different problem. Could you please comment this JIRA with your requirements? On 13 January 2012 14:49, srinivasasanda srinivasasa...@gmail.com

Re: [rules-users] Rules for generating calendar events

2012-01-13 Thread Michael Anstis
Based upon the information you have given, yes. sent on the move On 14 Jan 2012 01:49, sverker sver...@abrahamsson.com wrote: Hi I have an application where I want to generate calendar events. Each event will have an attached resource and people will be able to book themselves to this

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-12 Thread Michael Anstis
source of the rules into mysql database? So, in Drools if i create a package, and a rule and go to source-view source am seeing the source of that rule. Is there a way to make that write into a database as such? thanks, Kavitha. On Wed, Jan 11, 2012 at 12:17 PM, Michael Anstis michael.ans

Re: [rules-users] For loop inside a modify block problem

2012-01-11 Thread Michael Anstis
RHS is not DRL syntax but Java or MVEL depending on your dialect. If id is not public you should use it's getter. The same goes for quantity. when $item : Item(param1 != 0, param2 == 0, !(this instanceof SpecialItem)) $gsc : SomeBusinessLogic then $gsc.doSomething($item.getId() );

Re: [rules-users] Large number of rules in Drools

2012-01-11 Thread Michael Anstis
Thousands of lines of DRL in a single file represent an issue not just to Guvnor but to anything handling it. The recommendation would be to split the DRL into individual rules, resulting of thousands of assets in Guvnor. The next question would be if you have thousands of similar rules why not

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-11 Thread Michael Anstis
Patience is a virtue. I assume you've read Guvnor's documentation. It is a marvel what can be found sometimes. On 11 January 2012 18:45, kavita kavithase...@gmail.com wrote: Hi, Can any one provide me an example of how to use Rest API in java/ Grails. Thanks, Kavitha. -- View this

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-11 Thread Michael Anstis
at http://docs.jboss.org/drools/release/5.3.0.Beta1/drools-guvnor-docs/html/ch09.html#d0e1695. But i want to know how to use it with Grails/Java. I am just a beginner to Drools. On Wed, Jan 11, 2012 at 11:47 AM, Michael Anstis michael.ans...@gmail.com wrote: Patience is a virtue. I assume

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-11 Thread Michael Anstis
sethu kavithase...@gmail.com I want it with Grails. Ya just now i looked for this plugin. Let me read the documentation of how to implement. I was just thinking an example would be really helpful if any one has done this before. thanks a lot. On Wed, Jan 11, 2012 at 12:04 PM, Michael Anstis

Re: [rules-users] Fresh Guvnor Install throws ClassNotFoundException

2012-01-10 Thread Michael Anstis
Guvnor doesn't use OSGi. The stack trace suggests the JAR you are has a dependency on OSGi:- org.drools.guvnor.server.contenthandler.ModelContentHandler.getImportsFromJar. The remainder of the stack trace relates to trying to load the imported class. 2012/1/9 Mike Key mi...@zenbitz.com Hi

Re: [rules-users] Template Key in DSL

2012-01-10 Thread Michael Anstis
I still think, in my opinion, it is worthwhile adding the ability to define Template Keys in DSL in Guvnor. A simple (contrived and incomplete example) DSL might be:- [when] There is an insurance policy quote=$p : PolicyQuote( ) [when] Number of previous claims on policy is between {min} and

Re: [rules-users] FactType returns null when creating a java client on Eclipse invoking a rule in Guvnor

2012-01-09 Thread Michael Anstis
What version of Drools Expert and Guvnor are you using? On 9 January 2012 00:47, kachaps4u kachananidha...@gmail.com wrote: Exactly my error too!!! I too followed their documentation.. some one had to find it. My project has ESB in it too.. So I went to the next step in running the uri from

Re: [rules-users] xls decisiontable - unable to resolve method using strict-mode

2012-01-09 Thread Michael Anstis
Have you tried load the XLS into a KnowledgeBase without using a KnowledgeAgent? Trying to narrow down where the issue might be will help (everyone) tremendously. On 5 January 2012 16:40, ollem olle.martens...@digitalroute.com wrote: Hello! I'm using a knowledgeagent to point out a changeset

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread Michael Anstis
Guvnor uses JCR (Jackrabbit or Modeshape). JCR can be configured to store it's binary data in a database. The configuration you make to Guvnor to use a database configures JCR. The resulting tables are of JCRs requirements and needs. As you have discovered JCR has no knowledge of rules. You

Re: [rules-users] Inserting rules from guvnor into database

2012-01-05 Thread Michael Anstis
Guvnor saves rules (source and binary packages) using JCR (Jackrabbit or Modeshape). There are no hooks for you to save rules elsewhere. JCR can be configured to persist to a database (this, I believe, is what Thomas eludes to). The schema is as defined by and created by JCR. If you want to save

Re: [rules-users] Interacting with the Editor

2012-01-05 Thread Michael Anstis
Thishttp://www.plugtree.com/guvnor-embed-asset%E2%80%99s-editor-in-your-application/might be of help. On 5 January 2012 04:49, srinivasasanda srinivasasa...@gmail.com wrote: Hi All, I'm looking to interact with the guvnor editor.I've referred

Re: [rules-users] Template Key in DSL

2012-01-05 Thread Michael Anstis
Template keys are unsupported at present in DSL. I hope to be able to address in the near future, but unfortunately cannot commit to exactly when. On 5 January 2012 12:55, srinivasasanda srinivasasa...@gmail.com wrote: Hi, I created a rule template.I also created the DSL. When the Person

Re: [rules-users] Template Key in DSL

2012-01-05 Thread Michael Anstis
This BTW I assume to be in Guvnor :) I don't believe drools-expert supports it either, but I could be mistaken. On 5 January 2012 13:01, Michael Anstis michael.ans...@gmail.com wrote: Template keys are unsupported at present in DSL. I hope to be able to address in the near future

Re: [rules-users] Interacting with the Editor

2012-01-05 Thread Michael Anstis
The StandAloneEditor work was a community contribution. salaboy or esteban might be able to provide specific assistance for your problem. On 5 January 2012 11:27, srinivasasanda srinivasasa...@gmail.com wrote: Thanq Manstis,I've referred and understood the content in the link.But,the u

Re: [rules-users] Template Key in DSL

2012-01-05 Thread Michael Anstis
Wolfgang, I suspect the need arose from within Guvnor. You can define a DSL sentence such [then]Set the rate of interest to {rex} = $loan.setRateOfInterest( {rex} ) Currently in Guvnor you can only enter literal values for DSL variables whereas it'd be good to be able to specify {rex} as a

Re: [rules-users] Retriving Rule Id in Rule Template

2012-01-05 Thread Michael Anstis
I don't understand your requirement. I don't see any post-fixing of IDs in the source nor the data table itself. On 5 January 2012 07:48, srinivasasanda srinivasasa...@gmail.com wrote: Hi All, How to retrieve the cell number(rule id) when i click the load template data. My actual

Re: [rules-users] Error while using the Matrix type Decision Table

2012-01-05 Thread Michael Anstis
My advice would be to step back and check your worksheet with that in the Matrix listener unit test. The error you show is thrown when a column header does not contain a recognised value. On 4 January 2012 17:39, swaroop swaroop.o...@gmail.com wrote: Laune, I did check for the spaces, couldnt

Re: [rules-users] Error while using the Matrix type Decision Table

2012-01-05 Thread Michael Anstis
https://github.com/droolsjbpm/drools/blob/master/drools-decisiontables/src/test/java/org/drools/decisiontable/SpreadsheetCompilerUnitTest.java https://github.com/droolsjbpm/drools/blob/master/drools-decisiontables/src/test/resources/data/CustomWorkbook.xls On 5 January 2012 15:46, Michael Anstis

Re: [rules-users] Error while using the Matrix type Decision Table

2012-01-05 Thread Michael Anstis
Sure. Project: drools-decisiontables Class: org.drools.decisiontable.SpreadsheetCompilerUnitTest Test: testLoadCustomListener On 5 January 2012 15:29, swaroop swaroop.o...@gmail.com wrote: Michael, Can you specify the repository/trunk locn where i can find worksheet under Matrix Listener

Re: [rules-users] Resource Change Scanner Service modified date error

2012-01-05 Thread Michael Anstis
To avoid confusion, I would recommend a new JIRA be raised for this issue (if it is different to the one already documented). Can you provide a unit test to demonstrate the issue too please? 2012/1/5 Esteban Aliverti esteban.alive...@gmail.com I think there is a mistake in redhat's bugzilla.

Re: [rules-users] Large number of rules in Drools

2012-01-04 Thread Michael Anstis
As an aside to Wolfgang's comments, it is possible to import DRL into Guvnor. Select Create New Package-Import from DRL file. 2012/1/4 Wolfgang Laun wolfgang.l...@gmail.com 20K rules is not excessive, and this number alone should not cause out-of-memory exceptions. Mainly, this is due to

Re: [rules-users] Using hashmap in guided decision table in Guvnor

2012-01-04 Thread Michael Anstis
This is not possible at present. 5.4.0 should bring the ability to use DRL fragments (either guided or free-format) as column definitions. A free-format DRL column would provide what you need. In the meantime, you might be able to consider using Templates in 5.3 that already provide the ability

Re: [rules-users] GUVNOR-1731 and GUVNOR-1732

2011-12-22 Thread Michael Anstis
Both are scheduled for FUTURE work. Neither are considered urgent from our perspective as we have other higher priority work to complete first. If these issues cause you problems we are always happy to accept community pull requests. With kind regards, Mike 2011/12/22 gpa...@tsys.com Any

Re: [rules-users] drl file importing problem intoGuvnor5.2

2011-12-22 Thread Michael Anstis
It sounds like a bug to me. Can you raise a JIRA (https://issues.jboss.org/browse/GUVNOR). With kind regards, Mike On 22 December 2011 22:48, domingo sprabak...@gmail.com wrote: Hi, Thanks for your attention!!!.. I have a simple rule as follows ... import com.sample.Message; dialect

Re: [rules-users] Repository import

2011-12-22 Thread Michael Anstis
Not as far as I know, but it would be a good idea. Jervis, IIRC the REST API doesn't provide for import of such coarse grained artifacts (i.e. a whole repository)? What do you think? 2011/12/23 gpa...@tsys.com Is it possible to push a repository import into a Guvnor instance? What I am

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-21 Thread Michael Anstis
. https://issues.jboss.org/browse/GUVNOR-1792 I hope I can make a pull request soon :) Cheers, Toshiya -- *From: *Michael Anstis michael.ans...@gmail.com *To: *Rules Users List rules-users@lists.jboss.org *Sent: *Wednesday, December 21, 2011 6:29:55 AM *Subject

Re: [rules-users] Action

2011-12-21 Thread Michael Anstis
Just to add to what salaboy wrote, *all* LHS are evaluated as Facts are inserted. If I am not mistaken, ruleflow-group (like agenda-group) only controls what activations (RHS) on the agenda caused by the evaluation of the LHS are executed. On 21 December 2011 15:24, Mauricio Salatino

Re: [rules-users] Decision Tables Examples

2011-12-21 Thread Michael Anstis
The horizontal implementation is in org.drools.decisiontable.parser.xls.ExcelParser. If you look at the processSheet method you'll see it scans rows to build the decision table. A vertical implementation would need to obviously scan columns (and a pull request for a community contribution would

Re: [rules-users] Decision table multiple sheets...

2011-12-21 Thread Michael Anstis
Using a KnowledgeBuilder defaults to using org.drools.decisiontable.DecisionTableProviderImpl. This in turn uses org.drools.decisiontable.SpreadsheetCompiler that delegates to org.drools.decisiontable.parser.xls.ExcelParser in its compile method. The delegation uses a ExcelParser constructor that

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-20 Thread Michael Anstis
a getter and a setter - my misundestanding. M On 19/12/2011 16:19, Michael Anstis wrote: I'm not clear on what you are saying. We reflect the methods of existing beans:- - If the member has a getter it is available in the LHS - If the member has a setter it is available in the RHS

Re: [rules-users] decisiont table web editor

2011-12-20 Thread Michael Anstis
Sorry but 5.1.1 is unlikely to be supported. From what you describe I suspect there is a bug, however we are not likely to backport. Guvnor 5.3.0.Final is far superior to Guvnor 5.1.1 with regard to decision table support and 5.4.0.beta1 even more so. I would suggest you upgrade. With kind

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-19 Thread Michael Anstis
You are not mistaken. For POJO models we use reflection (class.getMethods) to determine whether a Type's methods members are available in the LHS or RHS or both, according to Java Bean conventions. Declarative models have their members available in both the LHS and RHS by default as we generate

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-19 Thread Michael Anstis
how do we allow the user to set the value? Of course my comments are from a Guvnor perspective, if you mean to change the way declared types work, then... well, we'll have to change Guvnor anyway :) 2011/12/19 Mark Proctor mproc...@codehaus.org On 19/12/2011 16:04, Michael Anstis wrote: You

Re: [rules-users] WorkingMemoryFileLogger question

2011-12-18 Thread Michael Anstis
All file based loggers can split their content into multiple files when the number of recorded events surpasses a given threshold. It should be quite simple to modify this to be able to pause logging and resume to a new file when unpaused. sent on the move On 18 Dec 2011 18:02, Mark Proctor

Re: [rules-users] XML Rule Language.Please help

2011-12-15 Thread Michael Anstis
This is probably a question the answer for which could best be researched on Google (other search engines are available). A SAR is a Service MBean that allows you to integrate arbitrary services to JBoss AS as MBeans. I'd therefore suggest you read up on using MBeans. I won't even pretend to

Re: [rules-users] Can we make our kbase object available from one context to another context (one application to another webservice)

2011-12-15 Thread Michael Anstis
See my reply to your other email. On 15 December 2011 14:16, srinivasasanda srinivasasa...@gmail.com wrote: Hi Sir, I have another Problem Please try to give some suggestion. how can i provide my Kbase object loaded with all packages is at one context , and can i make it available to

Re: [rules-users] Eval0Invoker : java.lang.NullPointerException

2011-12-15 Thread Michael Anstis
What does the full trace show? getBuilder().toString() should dump the cause for the failure to build the package. Or, iterate the collection calling the getMessage() on each error and see what it says. On 15 December 2011 14:55, Venkat ven12...@yahoo.com wrote: Hi Manstis, I am now getting

Re: [rules-users] Get GuidedDecisionTable from Guvnor

2011-12-15 Thread Michael Anstis
Populate it from what? The obvious answer would be to use GuidedDecisionTable52 (and related classes) API direct, but that's not what I suppose you are looking for? There was some debate (on IRC) recently whether /source should return DRL or something else. @Geoffrey (de Smet), did you change

Re: [rules-users] Eval0Invoker : java.lang.NullPointerException

2011-12-15 Thread Michael Anstis
Without seeing your full code I suspect you have more than one Customer in Working Memory. From what you have provided message Electric Service Interfaces are required can only be thrown by one rule, that has only one condition - checking a Customer object. Also message PAN Device list cannot be

Re: [rules-users] Get GuidedDecisionTable from Guvnor

2011-12-15 Thread Michael Anstis
this? Thanks, 2011/12/15 Michael Anstis michael.ans...@gmail.com Populate it from what? The obvious answer would be to use GuidedDecisionTable52 (and related classes) API direct, but that's not what I suppose you are looking for? There was some debate (on IRC) recently whether /source should

Re: [rules-users] Rules firing during insert ?

2011-12-15 Thread Michael Anstis
That is correct. Rules LHS is evaluated as rules are inserted. Calling fireAllRules() causes the activations on the agenda (caused by evaluation of the LHS) to be executed. On 15 December 2011 16:00, freejava freeja...@gmail.com wrote: Hello, When I insert the object in the Statefulsession

Re: [rules-users] Eval0Invoker : java.lang.NullPointerException

2011-12-15 Thread Michael Anstis
Yikes! This I had not even noticed. Customer and ServiceContext should both be inserted as Facts. Some rules might need to be re-written:- rule Customer null check rule no-loop true salience 1000 when not ( Customer() ) then throw new

Re: [rules-users] Eval0Invoker : java.lang.NullPointerException

2011-12-15 Thread Michael Anstis
Yes, you should not be using globals to hold information you want to reason over. You can try re-writing the combined check to something like this:- rule Customer and Service Context null check rule no-loop true salience 1000 when not ( Customer() and ServiceContext() )

Re: [rules-users] Can we make our kbase object available from one context to another context (one application to another webservice)

2011-12-15 Thread Michael Anstis
OK, let me step back. Do you mean contexts of page, request and application in a single web-application, or different contexts (i.e. applications) on a web-server? If the latter why would you want to do that? Isn't it likely different applications require different KnowledgeBases. In this

Re: [rules-users] Get GuidedDecisionTable from Guvnor

2011-12-15 Thread Michael Anstis
Sorry Vincent, nothing personal :) Obviously everyone is free to assist in the community :) 2011/12/15 Vincent Legendre vincent.legen...@eurodecision.com 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,

Re: [rules-users] Eval0Invoker : java.lang.NullPointerException

2011-12-15 Thread Michael Anstis
What is RegistrationDeregistrationPersistence? Is it a Fact to be reasoned over or a verification service? If a verification service I *would* use this as a global changing your rule to:- rule User Name validation check rule when $serviceContext : ServiceContext()

Re: [rules-users] Can we make our kbase object available from one context to another context (one application to another webservice)

2011-12-15 Thread Michael Anstis
Across web-applications or single-application page\request\session? On 15 December 2011 17:55, srinivasasanda srinivasasa...@gmail.com wrote: Hi Manstris, Exactly right , i want to i want same thing -- View this message in context:

Re: [rules-users] Get GuidedDecisionTable from Guvnor

2011-12-15 Thread Michael Anstis
. Therefore, the parser can't unmarshall that XML into a valid GuidedDecisionTable52 instance. Regards, 2011/12/15 Michael Anstis michael.ans...@gmail.com Sorry Vincent, nothing personal :) Obviously everyone is free to assist in the community :) 2011/12/15 Vincent Legendre vincent.legen

Re: [rules-users] Store a Map in Country Enumeration

2011-12-14 Thread Michael Anstis
What version of Guvnor are you using? Can you try with 5.3.0.Final? If the problem remains can you raise a GUVNOR JIRA with a self contained test and repository export? sent on the move On 14 Dec 2011 06:41, srinivasasanda srinivasasa...@gmail.com wrote: Hi Manstis, I created enumeration for

Re: [rules-users] Store a Map in Country Enumeration

2011-12-14 Thread Michael Anstis
No, I'd encourage you to try 5.3.0.Final first. There were fixes in the area you are experiencing the issue. On 14 December 2011 08:46, srinivasasanda srinivasasa...@gmail.com wrote: I'm using Guvnor 5.3.0 CR1.Should i raise JIRA?? -- View this message in context:

Re: [rules-users] Eval0Invoker : java.lang.NullPointerException

2011-12-14 Thread Michael Anstis
Please provide your rules. On 14 December 2011 17:51, Venkat ven12...@yahoo.com wrote: Hi, I am new to Drools and I have read about it and not mastered yet. I have written some rules and junit to test it. The rules works good and passes the test if ran individually, but if ranned all at

Re: [rules-users] drools variable

2011-12-14 Thread Michael Anstis
No, but it was mentioned on irc today that you can work around by creating a global and assigning your working memory to it. Use the global in your LHS. sent on the move On 14 Dec 2011 19:59, freejava freeja...@gmail.com wrote: Hello, I am a newbie to drools and I have a question on the

Re: [rules-users] Eval0Invoker : java.lang.NullPointerException

2011-12-14 Thread Michael Anstis
If PANDevice is null the eval will through a NPE. Salience controls the order in which activation are executed not the order rules' LHSs are evaluated. All rules' LHSs are evaluated as the facts are inserted. sent on the move On 14 Dec 2011 20:23, Venkat ven12...@yahoo.com wrote: Hi Laune,

Re: [rules-users] drools variable

2011-12-14 Thread Michael Anstis
Sorry, it's our internet relay chat channel, #drools. I forget the DNS name but details are on our website. It can be quicker sometimes than the mailing list but does depend in who's online at the time. sent on the move On 14 Dec 2011 20:48, freejava freeja...@gmail.com wrote: Micheael,

Re: [rules-users] Guvnor data enumeration issue

2011-12-13 Thread Michael Anstis
No they are not fixed yet. I moved the two items to GUVNOR's JIRA:- https://issues.jboss.org/browse/GUVNOR-1730 https://issues.jboss.org/browse/GUVNOR-1731 On 13 December 2011 09:59, srinivasasanda srinivasasa...@gmail.com wrote: Is that issue is solved..Please help me if that bug is

Re: [rules-users] Store a Map in Country Enumeration

2011-12-13 Thread Michael Anstis
You *should* be able to have your backend service return values as display=value. TBH, I've not tried it personally but the internal mechanics should be the same. I'd be interested in your feedback so we can schedule improvements if necessary. On 13 December 2011 13:10, srinivasasanda

Re: [rules-users] Dynamic Fact(field) Generation in Declarative Model

2011-12-08 Thread Michael Anstis
I've spent some time trawling grepcode and to be honest cannot find any classes that look to achieve what you need in 5.0.1. Why use such an old version? Your like if going to be difficult, asproven by the general lack of answers to the many questions you have been asking. On 7 December 2011

Re: [rules-users] target directory checked in?

2011-12-08 Thread Michael Anstis
Hmm... I just tried this, which worked a treat:- manstis@manstis-ThinkPad-T510 Desktop [] $ mkdir test manstis@manstis-ThinkPad-T510 Desktop [] $ cd ./test manstis@manstis-ThinkPad-T510 test [] $ git clone g...@github.com: droolsjbpm/drools.git Cloning into drools... remote: Counting objects:

Re: [rules-users] target directory checked in?

2011-12-08 Thread Michael Anstis
/b0dd7d463f4840100c31b780e21d38a0bd89d87f I saw it yesterday and fixed it: https://github.com/droolsjbpm/drools/commit/61adf24d75bb867102ef3d5dd585eb49e8f58b82 https://github.com/droolsjbpm/drools/commit/845104196e5db4eb37dd7f7eea454a5cb0857039 Op 08-12-11 10:40, Michael Anstis schreef: Hmm... I just tried this, which

Re: [rules-users] Dynamic Fact(field) Generation in Declarative Model

2011-12-08 Thread Michael Anstis
Section 9.2 REST API of Guvnor's documentation gives examples. The URL pattern /packages/{packageName}/assets will provide a list of assets. You'll probably have to iterate the result to find an asset of the correct format (org.drools.guvnor.client.common.AssetFormats contains a list). URL

Re: [rules-users] Dynamic Fact(field) Generation in Declarative Model

2011-12-06 Thread Michael Anstis
Package org.drools.guvnor.client.asseteditor.drools.factmodel contains the model (class FactMetaModel represents a Fact type). org.drools.guvnor.server.contenthandler.drools.FactModelContentHandler handles the conversion to DRL. These packages are as they are named in the current git master

Re: [rules-users] How can I get Rule Id

2011-12-06 Thread Michael Anstis
Nope, rules don't have ID sent on the move On 6 Dec 2011 13:58, srinivasasanda srinivasasa...@gmail.com wrote: Does every rule will have Unique Id(it has unique name).In the same way,does it have any unique name?If so,How can i retrieve that Id? Can you please suggest me in this. Thanks

Re: [rules-users] target directory checked in?

2011-12-06 Thread Michael Anstis
What is the git URL you used? drools-rulem1 does not match any of ours at https://github.com/droolsjbpm 2011/12/6 Laird Nelson ljnel...@gmail.com I just did a git pull on the drools repositories and noticed that at least one of the projects has the target directory checked in. Was this

Re: [rules-users] Guvnor Versioning - eclipse plug-in

2011-12-05 Thread Michael Anstis
Oh bugs sure, I think it should work as you expect too. Can you raise a JIRAs for each of your individual problems at https://issues.jboss.org/browse/GUVNOR and we'll get round to them as soon as we can Unfortunately we cannot really advise *when* we may get to fix them... but community

Re: [rules-users] Dynamic Fact(field) Generation in Declarative Model

2011-12-05 Thread Michael Anstis
Guvnor's screens to define a declarative Fact Model simply generate DRL. Guvnor isn't as dynamic as the use-case you describe and hence we don't have the same issues. The API is what has already been discussed: create a DRL, use KnowledgeBuilder or KnowledgeAgent to load these resources into

Re: [rules-users] How to delete fact in Guvnor?

2011-12-04 Thread Michael Anstis
On the package editor screen there is a menu option to archive the package. If you want to subsequently delete the package you need to visit the Archive option within the Administration section on the left hand side menu structure. sent on the move On 4 Dec 2011 05:32, softweave

Re: [rules-users] Guvnor inheritance

2011-12-01 Thread Michael Anstis
Firstly, no you are not missing anything :) What you describe does not sound like inheritance: more of a fall through of assets from a top level package to lower sub-packages. The Global Area would provide what you might be looking for - a place where assets can be shared with other packages.

Re: [rules-users] Guvnor hates me

2011-12-01 Thread Michael Anstis
So, our Eclipse users have been very quite on this one :( If you're able to document steps to replicate exactly what you're experiencing we can try to have a look in more detail... but in reality time is not our friend :( With kind regards, Mike 2011/11/28 Ronald Albury ronalb...@gmail.com

Re: [rules-users] removing reference to Global Data Model from Drools Package in Guvnor

2011-12-01 Thread Michael Anstis
Interesting indeed, and something I was hoping somebody was going to easily remedy. However, it appears that this is perhaps a gap that should be closed. Can you please raise a JIRA at https://issues.jboss.org/browse/GUVNOR. Thanks, Mike On 23 November 2011 07:21, Welsh, Armand

Re: [rules-users] Guvnor inheritance

2011-12-01 Thread Michael Anstis
/01/2011 05:48 PM, Michael Anstis wrote: Firstly, no you are not missing anything :) Hm, I kind of had hoped What you describe does not sound like inheritance: more of a fall through of assets from a top level package to lower sub-packages. Yes, that's what I mean, and I could make up

Re: [rules-users] Retrieving all Packages that are present in Drools Guvnor console

2011-11-30 Thread Michael Anstis
I gather you want to display the packages and rules in your own application. I would recommend use of the REST API. The Guvnor documentation has examples. On 30 November 2011 04:41, srinivasasanda srinivasasa...@gmail.com wrote: Yes Mansits,I need to display the four packages which are present

Re: [rules-users] Retrieving all Packages that are present in Drools Guvnor console

2011-11-29 Thread Michael Anstis
Can you explain more what you want to achieve? Do you mean you want to show the content of four packages in Guvnor at once, or you have your own application? If you have your own application I'd recommend looking into the REST API available in Guvnor to retrieve a list of packages and their

Re: [rules-users] Guvnor Hates Me

2011-11-27 Thread Michael Anstis
Hi Ronald, I am sorry to hear you are having such difficulties, but glad you have reported them back to us so that we may help it fix where applicable. I'll defer on 1) and 2) for now in case somebody with greater experience with the Eclipse interface answers, but I assume you are using WebDav?

Re: [rules-users] Guvnor hates me

2011-11-26 Thread Michael Anstis
Guvnor only adds fields with getters for use in the LHS (and setters for use in the RHS). Ideally the field would be a Java enumeration (that Guvnor would allow use of). Alternatively you can define a Guvnor enumeration for the field in question. Please feel free to raise a JIRA

Re: [rules-users] Calling drools from Javascript

2011-11-26 Thread Michael Anstis
If you can choose the Java Script engine, ie it is not necessarily a browser implementation, you could try Mozilla Rhino - which AFAIK is the basis of Java 6's scripting implementation. If the Java Script application is client side in a browser use of a web service of some description would be

Re: [rules-users] Guvnor hates me

2011-11-25 Thread Michael Anstis
What version of Guvnor are you using? There has been problems with some if the older versions requiring (at least) a browser refresh but AFAIK this is fixed in 5.3 sent on the move On 25 Nov 2011 18:38, Ronald Albury ronalb...@gmail.com wrote: Newbie issue: I created a package, com.scs.test

Re: [rules-users] Guvnor hates me

2011-11-25 Thread Michael Anstis
Yes that would be the case. Creating the model asset merely make the container. You upload/attach the content and then save. I hope you and Guvnor become good friends ;) sent on the move On 25 Nov 2011 20:24, Ronald Albury ronalb...@gmail.com wrote: I found it. It is not enough to import

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

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

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

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

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

2011-11-23 Thread Michael Anstis
of setScore() and then add 1 general rule to accumulate all those ScoreDiffs and put the resulting score into the Result. Op 23-11-11 10:56, Michael Anstis schreef: Why not use a Fact that contains your result? In DRL terms it'd look like this:- rule one when $r : Result( $score

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

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

Re: [rules-users] Exclude certain rules

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

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

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

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

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

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

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

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

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

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