Re: [rules-users] Action Object and Condition Object in XLS DTABLE

2013-05-22 Thread Michael Anstis
Add an additional CONDITION for ActionObject. You'll need to probably add a constraint for this != null and put an X in the rows; e.g. CONDITION $a : ActionObject this != null X X On 22 May 2013 09:55, Ramon Buckland ra...@thebuckland.com wrote: Hi. I am working on Drools 5.5.0.Final and

Re: [rules-users] understanding the use of Functions in Guvnor

2013-05-21 Thread Michael Anstis
Use of functions are not integrated into Guvnor's guided editors. You will have to use free-format DRL sections and functions as documented in Drools Expert user guide. On 21 May 2013 19:22, IPatel ishita.pa...@usbank.com wrote: Anyone out there who know why i cannot see my method on the drop

Re: [rules-users] Jboss Business Rules Management System (BRMS)

2013-05-17 Thread Michael Anstis
Which version of BRMS? On 17 May 2013 12:54, abhinay_agarwal abhinay_agar...@infosys.com wrote: May I know which version of drools is bundled in Jboss Business Rules Management System (BRMS) ? Thanks, Abhinay -- View this message in context:

Re: [rules-users] Jboss Business Rules Management System (BRMS)

2013-05-17 Thread Michael Anstis
5.3 On 17 May 2013 13:06, abhinay_agarwal abhinay_agar...@infosys.com wrote: I am sorry I wanted to know about guvnor version, which version of guvnor do i get ? -- View this message in context:

Re: [rules-users] [uberfire-users] Configurable and Reusable Editor

2013-05-17 Thread Michael Anstis
All Drools and jBPM components use the Uberfire framework. Any individual component can be used in isolation (subject to inclusion of any dependencies) by any other Uberfire compliant application. Vice-versa any 3rd party Uberfire compliant component can be used within the Kie Workbench

Re: [rules-users] Use of the binding variable

2013-05-09 Thread Michael Anstis
There are no licensing fees if you download and use the JBoss community version: http://www.jboss.org/drools/downloads You can buy maintenance/support from Red Hat; and I believe there are other companies providing paid-for support. On 9 May 2013 15:13, IPatel ishita.pa...@usbank.com wrote:

Re: [rules-users] Restricting the items included in a snapshot

2013-05-08 Thread Michael Anstis
I believe the ability to use selectors when building SNAPSHOTS was added to 5.5 by a community member. You could write your own that persisted the list of assets included in the latest build and use that when making the SNAPSHOT. I don't believe it is possible with 5.3. On 7 May 2013 20:28, Lance

Re: [rules-users] Error deploying Guvnor 6.0.0.Beta1 on Tomcat 7

2013-04-22 Thread Michael Anstis
I am looking into issues with running Drools Workbench 6.0 (the new name for old Guvnor) on Tomcat at the moment. I hope to have any fixes completed for Beta2 (release starting this week). On 19 April 2013 15:20, maunakea satishn...@gmail.com wrote: I was excited to try out Guvnor 6.

Re: [rules-users] Guvnor 5.5.0.Final with IE and Firefox issues

2013-04-19 Thread Michael Anstis
Both issues you report have been fixed on the 5.5.x and master branches. There is a JIRA for the template issue but I forget the number. There was a fix provided by a commumity member for the Guided Rule Editor issue on IE. I believe 5.6 will be released soon (but I've heard that for the last

Re: [rules-users] How can we import a jar of POJO clases with Guvnor 6.x

2013-04-18 Thread Michael Anstis
Yes it is very different in 6.0. Drools Workbench for 6.0 moves to using Kie Projects (that are the project structure for Drools). A Kie Project is a standard Maven project.To add JARs you need to import them into Drools Workbench's Maven Repository. This can be done from the Administration

Re: [rules-users] How can we import a jar of POJO clases with Guvnor 6.x

2013-04-18 Thread Michael Anstis
a change to match the 6.0 Kie mechanism. On 18 April 2013 13:47, Charles Moulliard ch0...@gmail.com wrote: I think that I know the response but could we use drools-6.x with guvnor 5.5.x as we have a client which prefers the old Web GUI of Guvnor ? On 18/04/13 13:59, Michael Anstis wrote: Yes

Re: [rules-users] NullPointerException when using bean property which happens to be a Enum name

2013-04-18 Thread Michael Anstis
Please raise a JIRA for Guvnor and attach your model JAR. I will take a look. On 18 Apr 2013 18:50, Sean Su sean.x...@gmail.com wrote: yes. you are correct. On Thu, Apr 18, 2013 at 1:28 PM, Stephen Masters stephen.mast...@me.comwrote: Shouldn't that have been: $foo : Foo (myEnum ==

Re: [rules-users] facing problem in KnowledgeAgent

2013-04-18 Thread Michael Anstis
Is there a package in Guvnor called org.sample and is there a type called NumberTest in it? Has the package been built in Guvnor? Sorry for wrong reply Line 34 is Object obj = factType.newInstance(); -- View this message in context:

Re: [rules-users] facing problem in KnowledgeAgent

2013-04-17 Thread Michael Anstis
What is line 34? On 17 April 2013 14:04, himansh himanshsrivast...@yahoo.com wrote: Hi, I am new in guvnor, please help me my code are bellow package com.sample; import org.drools.KnowledgeBase; import org.drools.RuleBase; import org.drools.WorkingMemory; import

Re: [rules-users] Deploy package across several Drools-Guvnor servers (unattended)

2013-04-16 Thread Michael Anstis
If you want to replicate design-time artifacts too then configuring Guvnor to use a database and replicating the database to each location might be your best option. If you only want to replicate the runtime artifacts (i.e. a compiled package) you should be able to use a KnowledgeAgent to

Re: [rules-users] Fire specific rules deployed in guvnor that reside in the same package

2013-04-10 Thread Michael Anstis
Yes, all clear now. With http://127.0.0.1:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/myPackage/LATESTyou will get the whole package; including decisiontable1.xls and decisiontable2.xls. How do you load

Re: [rules-users] Fire specific rules deployed in guvnor that reside in the same package

2013-04-10 Thread Michael Anstis
Building a package (where ever) will include all rules. In your case, in both XLS files. You showed this code at the begining:- quote I use this code: public static KnowledgeBase readKnowledgeBase() throws Exception { UrlResource resource = (UrlResource) ResourceFactory

Re: [rules-users] Rule-Id for a Drools Rule

2013-04-10 Thread Michael Anstis
UUID used by Guvnor is static. It does not change. UUID is not available at the Drools runtime (i.e. when you have created a KnowledgeBase). UUID will not exist in 6.0. On 10 April 2013 03:36, abhinay_agarwal abhinay_agar...@infosys.com wrote: I wasn't aware of the fact that people use

Re: [rules-users] Fire specific rules deployed in guvnor that reside in the same package

2013-04-10 Thread Michael Anstis
OK.. I think the URL you are using is wrong (for the single rule). I think it should be something like this: http://127.0.0.1:8080/drools-guvnor/org.drools.guvnor.Guvnor/packages/myPackage/assets/decisiontable1 See

Re: [rules-users] Fire specific rules deployed in guvnor that reside in the same package

2013-04-10 Thread Michael Anstis
If you use .../assets/decisiontable1/source you get DRL and not the XLS. You can then use ResourceType.DRL. Mentioning because if the name of the asset is a variable (and who knows, perhaps not always a XLS) you won't need to change your code. On 10 April 2013 15:34, ciberg2

Re: [rules-users] Fire specific rules deployed in guvnor that reside in the same package

2013-04-10 Thread Michael Anstis
We'll need to look at your DRL. On 10 April 2013 15:41, ciberg2 joaoguerr...@gmail.com wrote: I tried that just now and I get this exception: Caused by: org.drools.compiler.DroolsParserException: Unexpected exception raised while parsing. This is a bug. Please contact the Development team :

Re: [rules-users] Fire specific rules deployed in guvnor that reside in the same package

2013-04-10 Thread Michael Anstis
The source I'd expect to be text and be DRL. The dropbox was a binary file. On 10 April 2013 15:52, ciberg2 joaoguerr...@gmail.com wrote: This is the file I get using http://localhost:8080/drools-guvnor/rest/packages/myPackage/assets/decisiontable1/source

Re: [rules-users] Fire specific rules deployed in guvnor that reside in the same package

2013-04-10 Thread Michael Anstis
ok, it's my mistake this time :) I re-read the REST docs and if the asset is binary /source returns the XLS.. shame :( Forget my last suggestion. On 10 April 2013 16:09, ciberg2 joaoguerr...@gmail.com wrote: The file I uploaded it's exactly what I obtain when using the URL

Re: [rules-users] Rule-Id for a Drools Rule

2013-04-10 Thread Michael Anstis
There is no replacement. In 6.0 your best approach would be to write a class that @Observes ResourceRenamedEvent and bundle it into the WAR. The event contains old path and new path. On 10 April 2013 16:04, abhinay_agarwal abhinay_agar...@infosys.com wrote: hi mike, Here is a scenario,

Re: [rules-users] Fire specific rules deployed in guvnor that reside in the same package

2013-04-09 Thread Michael Anstis
The rules in a XLS file form a Decision Table. Each row in the XLS would compile into a separate rule. I suspect the asset you have created in Guvnor is called rule1 and represents a single XLS file. Without seeing the XLS file it is impossible to comment further, but I suspect again that it

Re: [rules-users] Rules Firing / Java Objects Not Manipulated

2013-04-09 Thread Michael Anstis
Facts inserted into WorkingMemory within rules are not automagically added to anywhere else. To retrieve Facts created inside rules there are different options available; the simplest probably being to use a global that is a collection. You can add new Facts to the global inside rules' RHS and

Re: [rules-users] guvnor 5.5 problems on Internet Explorer

2013-04-03 Thread Michael Anstis
Do you mean the last comment In addition to it, business rules using Guided editor are also not getting created in IE9? That has been fixed on the 5.5.x branch on github. The original problem reported about BRL Fragments has not been fixed. Was a JIRA raised for it? On 3 April 2013 05:43,

Re: [rules-users] Can an Object inside a map be used in guvnor

2013-04-02 Thread Michael Anstis
Yes, add a BRL Fragment column, then add a Free Format DRL. Any values you want in the decision table should be entered as @{variable} (ignoring the quotation marks if you don't need them). ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Status of GuvnorNG

2013-04-01 Thread Michael Anstis
Hello, I assume you created a new project? Did you enter GAV (Group, Artifact and Version) information on the pom.xml editor and save it first? We know we have to tighten that up. That information is mandatory. sent on the move On 1 Apr 2013 05:33, calcacuervo calcacue...@gmail.com wrote:

Re: [rules-users] Status of GuvnorNG

2013-04-01 Thread Michael Anstis
1, 2013 at 5:34 AM, Michael Anstis michael.ans...@gmail.comwrote: Hello, I assume you created a new project? Did you enter GAV (Group, Artifact and Version) information on the pom.xml editor and save it first? We know we have to tighten that up. That information is mandatory. sent

Re: [rules-users] Guvnor REST APIs - what rule features are supported?

2013-03-31 Thread Michael Anstis
The REST API is primarily for CRUD operations; it is not a programmatic API to assemble rules and as such your comments about calendars and salience etc are not provided in the REST API. You can however, and as some do, download the source for a rule, deserialise this into Guvnor's *internal*

Re: [rules-users] Use of contains operator in DRL Guvnor

2013-03-26 Thread Michael Anstis
Why are you not able to use contains in Guvnor? IIRC it is a supported operator on the Guided Rule Editor, Guided Template Editor and Guided Decision Table. On 26 March 2013 13:25, abhinay_agarwal abhinay_agar...@infosys.com wrote: hi, I am afraid but you will have to use free form DRL for

Re: [rules-users] Guvnor enumerations

2013-03-26 Thread Michael Anstis
Rikkola more troubles with the improved enum editor. :( Can you please take a look at (we'll need to ensure it's good for 6.0 and possibly 5.6). Thanks, Mike On 26 March 2013 16:34, Stephen Masters stephen.mast...@me.com wrote: There seem to be a few bugs with Guvnor

Re: [rules-users] Guvnor enumerations

2013-03-26 Thread Michael Anstis
you raise JIRAs for these issues please? We'll need to ensure they're fixed for 6.0 (and 5.6 when it appears - no, I don't know the timing.. before you ask!!) With kind regards, Mike On 26 March 2013 16:56, Michael Anstis michael.ans...@gmail.com wrote: Rikkola more troubles with the improved

Re: [rules-users] Can an Object inside a map be used in guvnor

2013-03-22 Thread Michael Anstis
Hello, Using Guvnors guided features you cannot create constructs like this: HashMap(this[amount]!=null) The only solution is to use a free-format DRL fragment (in either the Guided Rule Editor, Guided Template Editor or Guided Decision Table). With Guided Templates and Guided Decision Tables

Re: [rules-users] Can an Object inside a map be used in guvnor

2013-03-22 Thread Michael Anstis
Sure. If you use a use a BRL Fragment in a decision table you can define a column using the Guided Rule Editor. Template Keys added to field constraints (or free-format DRL) in the BRL Fragment become columns in the decision table. When adding a new column to the decision table click on the

Re: [rules-users] Guvnor + Oracle 10g

2013-03-22 Thread Michael Anstis
The root cause appears to be Caused by: java.lang.OutOfMemoryError: Java heap space in the stack trace you provided. Try increasing your xmX setting. On 22 March 2013 13:05, abhinay_agarwal abhinay_agar...@infosys.com wrote: hi , I was trying to connect my guvnor to oracle 10g database, but

Re: [rules-users] Guvnor + Oracle 10g

2013-03-22 Thread Michael Anstis
Different error? sent on the move On 22 Mar 2013 19:34, abhinay_agarwal abhinay_agar...@infosys.com wrote: hi mike, Done that still of no use ! -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Oracle-10g-tp4022991p4023006.html Sent from the Drools: User forum

Re: [rules-users] validation error on Template

2013-03-20 Thread Michael Anstis
That doesn't sound very good ;) Stephen are you able to try with the latest code on the 5.5.x branch? If that fails too.. can anybody share some more specifics? I tried with the mortgages example with 5.5.x code and it worked OK. On 20 March 2013 17:07, Stephen Masters stephen.mast...@me.com

Re: [rules-users] validation error on Template

2013-03-20 Thread Michael Anstis
com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses 849E40F8AB3433FC72A4400B5D294122.cache.html:9894http://mgi-jboss4:48080/guvnor/org.drools.guvnor.Guvnor/849E40F8AB3433FC72A4400B5D294122.cache.html Steve On 20 Mar 2013, at 17:14, Michael Anstis michael.ans

Re: [rules-users] validation error on Template

2013-03-20 Thread Michael Anstis
Hello, 5.6.x (from the 5.5.x branch) is rumored. I don't have any time scales available, but it's sooner than later. On 20 March 2013 18:05, Stephen Masters stephen.mast...@me.com wrote: Well spotted! So I guess the answer is that rule templates just don't work in 5.5.0.Final. Mike - Is

Re: [rules-users] Temporal operator related business rule using Drools Guvnor

2013-03-19 Thread Michael Anstis
Make sure you Fact type has been marked as an event. If you are using a Declarative Model you can add the annotation to the type in Guvnor. If you are using a POJO model you will still need to annotate it as an event in Guvnor using a Declarative Model that extends your POJO. This is covered in

Re: [rules-users] Temporal operator related business rule using Drools Guvnor

2013-03-19 Thread Michael Anstis
IIRC you will need to annotate the type using a Declarative Model in Guvnor and not using the package header (which is in reality exploiting a hack to include arbitrary DRL). Guvnor 6.0 does not have this limitation and marking a Type as an event either via the guided Declarative Model editor or

Re: [rules-users] API for reading and writing rules

2013-03-19 Thread Michael Anstis
Rules are DRL that is a String. Where and how you choose to store the String is up to you. Please try to explain what you want to achieve a little more. On 19 March 2013 12:49, kurrent93 kurren...@gmail.com wrote: HI all Is there any samples or documentation for reading and writing of

Re: [rules-users] validation error on Template

2013-03-19 Thread Michael Anstis
What version of Guvnor are you using? sent on the move On 19 Mar 2013 19:27, IPatel ishita.pa...@usbank.com wrote: Hi I am having the same problems. When i click on the Load Template Data button nothing happens. Please let me know if you were able to solve the issue. -- View this

Re: [rules-users] validation error on Template

2013-03-19 Thread Michael Anstis
Ok. Thanks. I'll take a look tomorrow. sent on the move On 19 Mar 2013 20:03, IPatel ishita.pa...@usbank.com wrote: i am using 5.5 as well -- View this message in context: http://drools.46999.n3.nabble.com/validation-error-on-Template-tp4022828p4022897.html Sent from the Drools: User

Re: [rules-users] validation error on Template

2013-03-19 Thread Michael Anstis
Hello, I tried with the latest 5.5.x branch code and could not replicate the issue you both report. These are the steps I followed:- 1) Create a new Rule Template 2) Add a Fact Type 3) Add a Field constraint, with the value defined as a Template Key. 4) Change Template Key name 5) Click OK 6)

Re: [rules-users] Ignore subsequent conditions in a Decision Table based on previous condition

2013-03-12 Thread Michael Anstis
If a CONDITION (or ACTION for that matter) is not to apply for a given rule you should be able to simply leave the cell empty. CONDITION CONDITION CONDITION ACTION Y result1 N N Y

Re: [rules-users] Is it possible to compare the hashmap values in Drools Spreadsheet

2013-03-05 Thread Michael Anstis
Hello, This is by design, see https://github.com/droolsjbpm/drools/blob/master/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/ActionType.java#L179 If a cell value contains some textquotation marksome textquotation markmore text the quotation marks are assume to be part of

Re: [rules-users] Is it possible to compare the hashmap values in Drools Spreadsheet

2013-03-05 Thread Michael Anstis
The code I linked is within them drools-decisiontable module; it was for your information. Add EscapeQuotes false to the RuleSet properties and your XLS should translate to the DRL you expect. On 5 March 2013 14:43, kareemsk7 shaikabdul.kar...@igate.com wrote:

Re: [rules-users] Fill dependent dropdown lists based on a web decision table

2013-02-28 Thread Michael Anstis
Did you read the Advanced section? This talks about how you can use an external source of data for enumerations in Guvnor. I thought this is what you wanted? On 28 February 2013 10:16, peach_wyss peach_w...@yahoo.com wrote: hy thanks for your answer. 1) I think you have misunderstood me.

Re: [rules-users] DB2 and Guvnor

2013-02-25 Thread Michael Anstis
You are mixing your requirements. You can configure Guvnor's use of JCR (Jackrabbit) to use a database. In this case JCR will create new tables as required by JCR. Retrieving external data using from requires you, the application author, to write helper classes that can retrieve data from any

Re: [rules-users] Fill dependent dropdown lists based on a web decision table

2013-02-25 Thread Michael Anstis
Look at how to use advanced enums in Guvnor's User Guide. sent on the move On 26 Feb 2013 07:33, peach_wyss peach_w...@yahoo.com wrote: Hi I'm using Drools and Guvnor in our project. We have the following Data Model (simplified): - Object C - has a List - has a List I need to build an

Re: [rules-users] KnowledgeAgent: impossible to add a map for a null resource! skiping.

2013-02-22 Thread Michael Anstis
If it works OK when ran as a standalone Java application but not when deployed on a server I suspect the problem is that your ChangeSet.xml cannot be found. A stack trace would be helpful. On 18 February 2013 20:00, anikulin antonni...@gmail.com wrote: Hi I've configurated KnowledgeAgent

Re: [rules-users] KnowledgeAgent: impossible to add a map for a null resource! skiping.

2013-02-22 Thread Michael Anstis
Now we learn you are presumably using Switch Yard.. Are you sure the problem does not lay there? I also assumed, when you said you had ran the code as a regular Java application, that you was still using change sets. The more I read the more I learn. Unfortunately I have no Switch Yard

Re: [rules-users] Decision table layouts

2013-02-21 Thread Michael Anstis
Hello, Both XLS and Guvn'rs web-guided decision tables only support horizontal layouts. Vertical remains on our to do list. If the training material originated from the presentations I've done on decision tables then the intent was just to illustrate different layouts, but not what is

Re: [rules-users] Decision table layouts

2013-02-21 Thread Michael Anstis
I will try to leave feedback. So now as you said horizontal layouts are supported, how can I get a column on the left (in the place of Description) as I see in the horizontal layout example? thanks On Thu, Feb 21, 2013 at 4:32 AM, Michael Anstis michael.ans...@gmail.comwrote: Hello

Re: [rules-users] Decision table layouts

2013-02-21 Thread Michael Anstis
type and Applicant age are aligned. Also how the Action columns are aligned. http://www.slideshare.net/ge0ffrey/2011-0329-london-decision-tables-in-depth thanks On Thu, Feb 21, 2013 at 10:16 AM, Michael Anstis michael.ans...@gmail.com wrote: There is (or should be!) a green + icon

Re: [rules-users] Unable to find rules package

2013-02-19 Thread Michael Anstis
If you paste the URL into a browser do you get the Pkg file to download? sent on the move On 19 Feb 2013 19:45, IPatel ishita.pa...@usbank.com wrote: Hi I have following code to load the package into knowledgebase. However i am getting FileNotFound error. KnowledgeBuilder kbuilder =

Re: [rules-users] POJO.jar Format for upload a fact model (basic question)

2013-02-18 Thread Michael Anstis
The JAR must be a regular Java JAR file. There were issues on older versions of Guvnor that meant that once a JAR had been uploaded you needed to restart the web-server, but I believe this has been resolved. Building the package should give you all validation errors. The warning icon, I assume

Re: [rules-users] Guvnor Calendars

2013-02-15 Thread Michael Anstis
Are you downloading the SNAPSHOT for testing? If you added calendars after the SNAPSHOT was taken they will not be in the SNAPSHOT. You would need to take a new SNAPSHOT. On 15 February 2013 17:05, anikulin antonni...@gmail.com wrote: Thanks for suggestion, but i suppose it's not a fault of

Re: [rules-users] Query on web services and database stuff

2013-02-14 Thread Michael Anstis
Firstly a correction. Drools rule engine otherwise known as Drools Expert does not use JCR by default. Guvnor (Drools rule authoring and management web applicafion) does use JCR as its persistent store. JCR is better thought of as a hierarchical data store than a (R)DBMS. That said Drools Expert

Re: [rules-users] Questions about Drools runtime Guvnor

2013-02-14 Thread Michael Anstis
Hello, Q1 : How can Drools runtime (Knowledge builder / base) gets/collects *.brl, .drl files from Guvnor (using REST api, ) ? It should be possible to use KnowledgeBuilder with URL resources to retrieve *source* from Guvnor's REST API. Many Guvnor assets are stored in an internal format

Re: [rules-users] Guvnor Web-guided DecisionTable - calls function with parameters from cells values

2013-02-14 Thread Michael Anstis
You could try using a combination of BRL Fragments and DSL. Define your DSL as the expression: [when]My calendar is between {p1} and {p2)=eval( myCal.isInInterval({p1}, {p2}) and use the DSL in a BRL Fragment. With kind regards, Mike On 14 February 2013 09:13, nbe42 nbe...@gmail.com wrote:

Re: [rules-users] guvnor 5.5 - Guided decision tables (web based)

2013-02-12 Thread Michael Anstis
This looks to be entirely correct. In the first case you are inserting a new Applicant (that I assume is the class you've added the setLst method to), but you are trying to invoke the method with an integer parameter. The same failure could be expected in Java. In the second case you do not have

Re: [rules-users] guvnor 5.5 - Guided decision tables (web based)

2013-02-12 Thread Michael Anstis
You've not described what you are tying to achieve. If you can explain what it is you want the rules to do we might be able to advise an approach. On 12 February 2013 11:26, Aditi Hardas aditi.har...@gmail.com wrote: Hi Mike , Thx for your response.I have added a String type list in my

Re: [rules-users] Mapping to '==' in enumeration

2013-02-12 Thread Michael Anstis
Hi, You need to escape the = with double \\ For example: ['a\\=5=expression1', 'a\\=5*2=expression2'] Operators already have a human readable form within Guvnor. Why do you need to replicate the behaviour? With kind regards, Mike On 12 February 2013 11:55, rjr201 rich.j.ri...@gmail.com

Re: [rules-users] Not Able to create a condition BRL fragment

2013-02-11 Thread Michael Anstis
What was the ACTION you created in the BRL Fragment (e.g. set value on new fact, set value on existing fact etc)? From the DRL you are trying to set a field on f2 but f2 is not bound to a fact pattern anywhere (that I can see)... so this is a problem, but I need to understand how you managed to

Re: [rules-users] Not Able to create a condition BRL fragment

2013-02-11 Thread Michael Anstis
Hello, This looks like a bug. The PayTypeDepositFund is not being added as a Fact to the when part of rules as it doesn't not have any constraints. As it is not added you should not be able to use it's binding in the then part of the rule. A work-around would be to add a constraint to

Re: [rules-users] guvnor 5.5 problems on Internet Explorer

2013-02-11 Thread Michael Anstis
Do you get any errors in your servers' log? Do functions operator OK with FireFox or Chrome? On 11 February 2013 15:51, moldoe dan...@daxtechnologies.com wrote: I just installed guvnor 5.5 Final and cannot open any Business Rule asset that uses Guided Editor. I'm looking at the rules that

Re: [rules-users] guvnor 5.5 problems on Internet Explorer

2013-02-11 Thread Michael Anstis
Hmmm... seems like there is an issue with IE8 and IE9. I've read that other web applications have problems with IE8/IE9 running in a compatibility mode and that the normal advice is to ensure IE is not running in a compatiblity mode. If all else fails, please raise a JIRA at

Re: [rules-users] Not Able to create a cindition BRL fragment

2013-02-10 Thread Michael Anstis
You are doing everything correctly, but there appears to be a bug of some form or other. Can you try with either Chrome or Firefox, so we can isolate whether this is a problem with Guvnor on IE9? sent on the move On 11 Feb 2013 06:41, Aditi Hardas aditi.har...@gmail.com wrote: Hi , I am

Re: [rules-users] Guvnor-5.5

2013-02-08 Thread Michael Anstis
a look at the tech stack under 6.0 yet. Now I'm going to have to brush off my WAS skills. My JEE bloatware app server experience is mostly with WebLogic. :) On 7 Feb 2013, at 22:22, Michael Anstis michael.ans...@gmail.com wrote: Hi Stephen, We're asked how to run Guvnor on WebSphere quite

Re: [rules-users] Uploading JAR using REST

2013-02-07 Thread Michael Anstis
Rich, I suspect we don't invalidate the cache containing package+models when a new model is pushed via REST. The only work around would be to restart Guvnor. Jliu, Could you please have a quick look (at 5.5.x) and confirm this is the case. On 7 February 2013 12:37, rjr201

Re: [rules-users] Guvnor-5.5

2013-02-07 Thread Michael Anstis
Drools Expert is just a Java library and should work on WebSphere as well as any other (to the best of my knowledge, but always happy to learn something new!) Guvnor is really the issue as we do not have an off the shelf distribution targeting WAS (not that we wouldn't want to, but nobody in the

Re: [rules-users] Guvnor-5.5

2013-02-07 Thread Michael Anstis
weeks, and I was thinking of finding myself a little OS project to work on. :) Steve On 7 Feb 2013, at 15:23, Michael Anstis michael.ans...@gmail.com wrote: Drools Expert is just a Java library and should work on WebSphere as well as any other (to the best of my knowledge, but always happy

Re: [rules-users] Guvnor-5.5

2013-02-06 Thread Michael Anstis
I cannot answer your first question as I have no experience of using Guvnor on WebSphere. However, please note being a JBoss Project we are likely to target our own application servers; but that said we do have a WAR build specific for Apache Tomcat too. We'd love to accept Pull Requests from

Re: [rules-users] XStreamAlias

2013-01-30 Thread Michael Anstis
This day and age, when most people are presented with information with which they are unfamiliar they tend to turn, almost without exception, to the internet. I, being like most people, typed @XStreamAlias into my favorite serach engine and was presented with an abundance of answers. On 30

Re: [rules-users] Custom UI to create rules and inserting them via REST API

2013-01-29 Thread Michael Anstis
DRL assets in Guvnor are stored as plain text. You should be able to use the REST API to create a new DRL type asset and POST the text. On 29 January 2013 08:40, Esteban Aliverti esteban.alive...@gmail.comwrote: As far as I know, there is no API for DRL creation. Best Regards,

Re: [rules-users] Custom UI to create rules and inserting them via REST API

2013-01-29 Thread Michael Anstis
Hello, If your UI needs to be able to edit existing rules authored with it then you'll need to convert from the persistent format back to whatever model your UI uses. Guvnor already has this, as you have found, with it's *internal* BRL format and related classes. Guvnor stores RuleModel as XML

Re: [rules-users] Custom UI to create rules and inserting them via REST API

2013-01-29 Thread Michael Anstis
IDK if we have a REST method to delete an asset. Jervis might be able to advise.. I've pinged him. On 29 January 2013 10:47, benq2188 bengisag...@gmail.com wrote: Thanks Mike, My UI needs to be able to edit/delete/insert rules authored, and rules authored in my UI won't also be edited in

Re: [rules-users] Stateful Session giving major issues

2013-01-26 Thread Michael Anstis
You show the rules. You show extraction of Facts from a HashMap. You do not show the Fact's values. Why should we therefore believe the rule should activate? On 26 January 2013 11:46, starfish15 pooja.gh...@accenture.com wrote: Hi laune, I am sorry, i didnt understand the ISSUE much. What

Re: [rules-users] business guided rule editor

2013-01-24 Thread Michael Anstis
Great, thanks for sharing that with us. If you care to share some more information we might be able to be more constructive with our response. Was the rule created in the same version of Guvnor as with which you are trying to open it? Is there an error shown to the user? Is there an error in

Re: [rules-users] business guided rule editor

2013-01-24 Thread Michael Anstis
You'll need to install the Guvnor WAR on a supported application server. It is possible to embed the guided rule editor into your own web application but you'd still need Guvnor running to serve the editor. On 24 January 2013 12:00, neha.gupta19 neha.gupt...@wipro.com wrote: can i install

Re: [rules-users] Guvnor - what is Author on top right corner

2013-01-24 Thread Michael Anstis
Strange isn't it? ;) This was the preliminary work for Perspectives that never really made it into Guvnor 5.5.x and lower. 6.0 has Perspectives so expect to see something similar that works :) On 24 January 2013 17:59, droolist satishn...@gmail.com wrote: Hello, I have Guvnor 5.5. When I

Re: [rules-users] Drools Guvnor Repository Reports

2013-01-24 Thread Michael Anstis
Have you tried reading Guvnor's documentationhttp://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html_single/index.html#d0e3485 ? There's a large section relating to REST calls. On 24 January 2013 18:20, Aseem Belsare aseem.bels...@gmail.com wrote: Hi, I wish to obtain the

Re: [rules-users] How to convert java file into .drl file containing java logic as rules

2013-01-22 Thread Michael Anstis
Translating Java to DRL would be a manual task you'd need to undertake. There is no out of the box support for that. On 22 January 2013 09:32, ashwindrool ashwin.khandelwa...@gmail.com wrote: HI , I want to convert *java class *containg simple to complex logic into *.drl *file containg rules

Re: [rules-users] DSL Enumerations

2013-01-22 Thread Michael Anstis
Unfortunately this is not possible. Dependent enumerations at present work only on a single line. On 21 January 2013 16:26, rjr201 rich.j.ri...@gmail.com wrote: Hi, I'm creating a DSL with dropdown boxes that are populated by enumerations. I have so far had success in making one drop down

Re: [rules-users] Change Scanner does not start

2013-01-18 Thread Michael Anstis
A ServletContextListener might be preferable to using a JSP. sent on the move On 18 Jan 2013 19:17, rtanikella rtanike...@gmail.com wrote: The scanner does start, but it is not logged automatically. I started a listener via a jsp %@ page language=java contentType=text/html; charset=utf-8 %

Re: [rules-users] Guvnor 5.5 being WIERD

2013-01-17 Thread Michael Anstis
In your example:- 1. | rule Rule One 2. | dialect mvel 3. | when 4. | Class(campaign == 1939506 ) 5. | Class1( CUR_FM_EOC_IN == Y ) 6. | Class1( GRP_TRANSPARENT_IN == N ) 7. |

Re: [rules-users] Guvnor 5.5 being WIERD

2013-01-17 Thread Michael Anstis
I think we are talking about 2 different problems that have become intertwined. 1) Given the example Rule, and assuming the LHS is matched a Dummy fact should be inserted into WM, and the OP is stating the command to retrieve this new Dummy fact is not working as it did with 5.2. 2) Guvnor's

Re: [rules-users] Deploying Guvnor on JBoss AS fails with FileNotFoundException

2013-01-17 Thread Michael Anstis
The actual error is Caused by: java.io.FileNotFoundException: .. (File name too long). I gather this is an underlying platform issue and not Guvnor nor JBoss AS itself - if memory serves me correctly we have other community members running 5.5.x on JBoss AS 7.1.1 without problem. With kind

Re: [rules-users] unable to import rules into guvnor

2013-01-17 Thread Michael Anstis
What and how are you importing the rules? If you have a DRL file this should be imported with Create new package-Import from DRL (the wording on the Create New menu might be a little different, I'm going from memory. If you're using the Administration-Import function; this is to import whole

Re: [rules-users] Guvnor model with 'Comparable' not working

2013-01-17 Thread Michael Anstis
Is it a known bug... it is now! Could you please raise a JIRA at https://issues.jboss.org/browse/GUVNOR and attach a repository export containing a rule and model illustrating the problem. Thanks, Mike On 14 January 2013 14:41, Sandjaja, Dominik dominik.sandj...@it-motive.dewrote: Hi

Re: [rules-users] unable to import rules into guvnor

2013-01-17 Thread Michael Anstis
HI, With 5.5 (and possibly 5.4, I can't remember exactly when it was added) you should be able to import the ZIP file directly. With kind regards, Mike On 17 January 2013 14:29, kurrent93 kurren...@gmail.com wrote: Hi Mike Thanks for the reply. Im using the Administration Import /

Re: [rules-users] Guvnor 5.5 being WIERD

2013-01-16 Thread Michael Anstis
Doesn't sound like a Guvnor issue. By using a different title in your email you might find a wider audience to your problem. Please re-post and explain exactly what you are doing. Thanks, Mike On 16 January 2013 11:34, starfish15 pooja.gh...@accenture.com wrote: Hi, I have been using

Re: [rules-users] Guvnor 5.5 being WIERD

2013-01-16 Thread Michael Anstis
I assume you mean you are using a guided decision table in Guvnor? Why not select Set the value of a field on an existing fact instead of Set the value of a field on a new fact. Of course you'll have to have a Dummy fact to bind to in the LHS of the rule, which you example does not show. Where

Re: [rules-users] New object in XLS ACTION

2013-01-15 Thread Michael Anstis
Glad you have it working. The guided decision table in Guvnor is no different. The example you gave only populates the amount field. FeeDTO [f3] amount 10 20 (...) You'd still need to add additional columns for the other fields. On 15 January 2013 13:27, aleste moisesvent...@gmail.com wrote:

Re: [rules-users] Difference between adding $ at the beginning of a variable

2013-01-15 Thread Michael Anstis
No difference, it was/is just used a lot in examples and advice given on here so has sort of become an unofficial standard. Some argue the presence of $ helps identify bindings when scanning DRL. On 15 January 2013 20:04, suddeb sudipta@gmail.com wrote: Hi, As I am very new to Drools,

Re: [rules-users] New object in XLS ACTION

2013-01-14 Thread Michael Anstis
What result do you get with the following (on a single row):- ACTION| ACTION| ACTION --+---+- FeeDTO feeDTO = new FeeDTO(); | feeDTO.setAmount(new

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