Re: [rules-users] Embedding Guvnor 6 Guided Editor

2014-02-10 Thread GPatel
right. I am looking for the same too. The Guvnor documentation had notes on how to customize using the StandaloneEditor. The drools 6 documentation does not have any information on customization. An example on how to use the new workbench components to set up just the guided editor and invoke i

Re: [rules-users] Creati custom Ui for Drools

2013-08-05 Thread GPatel
Is there any documentation or examples that show how to build a custom UI using the new 6.0 design? I looked in http://docs.jboss.org/drools/release/6.0.0.Beta5/drools-guvnor-docs/html_single/index.html but could not find any pointers. Thanks G. Patel From: Mark Proctor To: Rules Us

Re: [rules-users] DSL Enumerations

2013-01-22 Thread GPatel
I wish the entire rule editing context (all the sentences and user entries) was made available to enumeration providers, then this would have been possible. - Original Message - From: rjr201 [rich.j.ri...@gmail.com] Sent: 01/22/2013 06:59 AM PST To: rules-users@lists.jboss.org Subject: R

Re: [rules-users] Custom Form with DSL

2012-11-15 Thread GPatel
no, I dont think it is possible. I ended up writing my own custom editor that displays DSL statements. Thanks Ghanshyam From: bhochhi To: rules-users@lists.jboss.org, Date: 11/15/2012 11:11 AM Subject:Re: [rules-users] Custom Form with DSL Sent by:rules-users-boun...@

[rules-users] How to get notified just before rule is picked up for evaluation

2012-11-14 Thread GPatel
Is there a way to get a hook into just before a rule is evaluated to determine whether an activation is created ? The earliest hook available is DefaultAgendaEventListener. activationCreated(ActivationCreatedEvent event) What I am looking for is to get notified just before a rule is picked up f

Re: [rules-users] DROOLs callback API for L-value predicate matching events

2012-11-05 Thread GPatel
is there a place to go look at a detailed example? Thanks Ghanshyam From: Wolfgang Laun To: Rules Users List , Date: 11/05/2012 05:19 AM Subject:Re: [rules-users] DROOLs callback API for L-value predicate matching events Sent by:rules-users-boun...@lists.jboss.o

Re: [rules-users] Custom Form with DSL

2012-10-12 Thread GPatel
Is there a way to pass the editing context to the custom form? For example, in the rule below: [when] type of mineral is {mineralName:CF:Mineral.name}and country of mining is {countryName:CF:Country.name} If the mineral "Quartz" is selected, then the custom form displaying the country list sho

Re: [rules-users] Cutom Attributes in Drools

2012-09-13 Thread GPatel
"I would not store the result of the (missed) activation of a rule in a rule attribute, anyway. Can't you just use a dedicated fact(s) for that?" I face a similar issue where the target audience are "business" users i.e users that dont really understanding or wish to get into logic. I am findin

Re: [rules-users] Is there a faster way of doing this in Drools ?

2012-05-09 Thread GPatel
so you are using drools to build on-the-fly queries based on user input. You could probably do this via "static" rules. Since you basically have 4 variables (price, avg_user_rating, num_ratings, category), you could write 4 rules, one each that filters based on one of the 4 variables and then c

Re: [rules-users] Query for a fact, and concurrent rule execution

2012-05-02 Thread GPatel
I would suggest making your service stateless and run the service in multiple JVMs to alleviate performance concerns. You will be able to scale and also not have to worry about cramming everything into a StatefulKnowledgeSession and worry abt thead-safety. From: Stephen Lomax To: Rules

Re: [rules-users] Rule definition introspection

2012-02-18 Thread GPatel
Thanks Mark. Quite well understood. Thanks Wolfgang for the code snippet, much appreciated. The reason I need to know which facts the rule are using at runtime is to create an audit log and capture the values the facts had at the time of rule execution, so that an audit log can be created that

Re: [rules-users] Rule definition introspection

2012-02-16 Thread GPatel
I need it at rule definition time, or when the rule is saved. Could you point me to a starting place in the internal api ? Thanks G. Patel From: Mark Proctor To: rules-users@lists.jboss.org Date: 02/16/2012 10:06 PM Subject:Re: [rules-users] Rule definition introspection Sent

[rules-users] Rule definition introspection

2012-02-16 Thread GPatel
Is it possible to self-introspect the rule definition? For example: when $redCar : Car(color == 'red') then System.out.println("a red car exists"); Is it possible to know that the above rule uses the Car fact and the Car.color attribute? Thanks G. Patel ---

Re: [rules-users] How do I write a rule to detect a missing value in a group of facts?

2012-02-09 Thread GPatel
Beautiful! How would a business user (non-programmer) write such a rule. The only way I can think of is create a dsl sentence for this specific condition - Original Message - From: Wolfgang Laun [wolfgang.l...@gmail.com] Sent: 02/09/2012 05:02 PM CET To: Rules Users List Subject: Re: [

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

2012-01-20 Thread GPatel
If you are starting from scratch, this is possible. However, I find myself having to expose operations from the *preexisting* technical domain into the business (i.e expose methods from existing technical domain code that has all kinds of annotations and code references to 3rd party software).

[rules-users] Repository import

2011-12-22 Thread GPatel
Is it possible to push a repository import into a Guvnor instance? What I am looking for is the ability to stand up a Guvnor instance from predetermined artifacts, the artifacts being repository.xml (which contains packages, rules, working sets, etc.) and model jars. If I have a model jar and

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

2011-12-22 Thread GPatel
Any idea when GUVNOR-1731 and GUVNOR-1732 will be fixed? http://issues.jboss.org/browse/GUVNOR-1731 http://issues.jboss.org/browse/GUVNOR-1732 I would think at least 1732 is urgent; it is a feature that is supported in BRL but not supported in DSL Thanks Ghanshyam -

Re: [rules-users] Drools integration common practice

2011-12-22 Thread GPatel
Unless the experts disagree, I don't think that is possible as is. Guvnor *is* the REST frontend for the drools repository. If you are not interested in the Guvnor UI and only seek to use the REST api, it should be possible to strip out the UI related pieces from the Guvnor war (web.xml, WEB-I

Re: [rules-users] Retrieving rule name in "then" clause

2011-11-28 Thread GPatel
not from the rule, but you can use an agenda listener for the same From: Ronald Albury To: rules-users@lists.jboss.org Date: 11/28/2011 02:58 PM Subject:[rules-users] Retrieving rule name in "then" clause Sent by:rules-users-boun...@lists.jboss.org Is there a simple w

Re: [rules-users] Building our own UI for Drools

2011-11-16 Thread GPatel
(which could be in .drl files) in addition to guvnor rules. Thanks Ghanshyam From: kapokfly To: rules-users@lists.jboss.org Date: 11/16/2011 08:16 AM Subject:Re: [rules-users] Building our own UI for Drools Sent by:rules-users-boun...@lists.jboss.org Hi GPatel, Maybe

Re: [rules-users] Building our own UI for Drools

2011-11-16 Thread GPatel
On hosted mode: I have the same requirement i.e hosted site with lots of external clients using the same site, it is indeed impractical to deploy a guvnor instance for each client. Overall, from what I have researched, there are two things available to segregate rules by external client: categ

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

2011-11-11 Thread GPatel
For issue 2, combination of DSL and wrapper layer around ur engg objects might help - Original Message - From: kapokfly [ivan.jiang...@foxmail.com] Sent: 11/11/2011 02:53 AM PST To: rules-users@lists.jboss.org Subject: [rules-users] Showstopper issues for Drools Adoption in our orga

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

2011-11-08 Thread GPatel
I am in the same situation (and I suspect a lot of people with complex domain models are), which is: how do I let the user easily navigate my domain model while writing a rule. There is support for providing a custom form within a popup when a fact constraint needs to be specified. You can pre

Re: [rules-users] Where in DB does Guvnor store "description" of rules?

2011-11-08 Thread GPatel
Take a look at the guvnor rest api - Original Message - From: Praveen [praveen.sa...@gmail.com] Sent: 11/08/2011 02:11 AM PST To: rules-users@lists.jboss.org Subject: [rules-users] Where in DB does Guvnor store "description" of rules? Hi, Our application expects rule name and its de

Re: [rules-users] Guvnor custom form not working for DSL sentences

2011-10-31 Thread GPatel
Here's the model: declare Vehicle engineType: String fuelType: String end Here's the DSL: [when]there is a vehicle=$vehicle : Vehicle() [when]- with engine type {value}=engineType=="{value}" [then]say hello=System.out.println("Hello"); When I create a rule using the Guided Edito

[rules-users] Guvnor custom form not working for DSL sentences

2011-10-30 Thread GPatel
Hi Is the guvnor custom form not meant for use with fact fields appearing in dsl sentences? It works fine with guided editor, not with dsl though. Using 5.3.CR1 Thanks G. Patel - The information contained in this communication (including any attachments

Re: [rules-users] Guvnor data enumeration issue

2011-10-28 Thread GPatel
created jira 3270 for this. Also created 3271 along the same lines. From: Michael Anstis To: Rules Users List Date: 10/28/2011 12:07 AM Subject:Re: [rules-users] Guvnor data enumeration issue Sent by:rules-users-boun...@lists.jboss.org You'll need to raise a JIRA

[rules-users] Guvnor data enumeration issue

2011-10-27 Thread GPatel
I am trying to use data enumerations and running into a problem. Following the Vehicle engineType/fuelType data enumeration example in the Guvnor manual, I created the following enumeration list and it works: 'Vehicle.engineType' : (new test.VehicleHelper()).getEngineTypes() 'Vehicle.fuelType[en

Re: [rules-users] Preventing re-evaluation on modification of 'output' fact

2011-10-26 Thread GPatel
Define FraudResultsDTO as a global. That way, you don't have to specify it in the WHEN part merely for assigning a variable to it - Original Message - From: Jamie [js...@llbean.com] Sent: 10/26/2011 09:24 AM MST To: rules-users@lists.jboss.org Subject: [rules-users] Preventing re-evalu

Re: [rules-users] Printing rule content when a rule is fired

2011-10-24 Thread GPatel
I wish the Rule definition gave more detail than just a rule name, package name and metadata, or there was some way through the KBase api to get to it. Seems like I will need the to fetch the rule content from guvnor via REST (via some sort of timestamp versioning of my own) Thanks G. Patel

[rules-users] Printing rule content when a rule is fired

2011-10-24 Thread GPatel
Is is possible to get textual rule content from org.drools.definition.rule.Rule? What I am looking to do is get the rule definition (the when/then part) when a rule fires (i.e on AfterActivationFiredEvent) Thanks G. Patel - The information contained in

[rules-users] Rule content keyword search

2011-10-21 Thread GPatel
Is it possible to perform keyword search within rule content? For example: show me all rules that contain the word "person". Thanks G. Patel - The information contained in this communication (including any attachments hereto) is confidential and is intende

Re: [rules-users] Guvnor - Loading enums programatically using rule metadata

2011-10-12 Thread GPatel
I suppose I can use the standaloneEditor, add my data loader arguments to the URL, have a filter on the serverside set up a thread-local context that contains the arguments and have the data loaders use that context. How do I disable enum caching so that the above approach works? From: Gh

Re: [rules-users] Guvnor - Loading enums programatically using rule metadata

2011-10-11 Thread GPatel
I realize that "drools" is a runtime variable, available only during rule execution, but the question still stands. Is it possible to somehow pass in rule attributes as arguments to Data loaders for enums? Any help would be appreciated Thanks G. Patel From: Ghanshyam Patel/Tempe/TotalSyste

[rules-users] Guvnor - Loading enums programatically using rule metadata

2011-10-10 Thread GPatel
The Guvnor manual specifies how to load enum data programtically but it seems like only other fields on the same Fact can be used to filter the values that can show up in the drop-down fields, as shown below: 'Fact.field[dependentField1, dependentField2]' : '(new com.yourco.DataHelper()).getLis

Re: [rules-users] Integration Of Guvnor with CustomApp

2010-12-29 Thread GPatel
yes, I believe this should help a lot in integration. Are there going to be helper utilities available to unmarshal the atom, json, etc responses back to client-side java objects? Thanks Ghanshyam From: Jervis Liu To: Rules Users List Cc: rules-users-boun...@lists.jboss.org Date:

[rules-users] Setting rule properties via guvnor

2010-12-25 Thread GPatel
Is there a way to set the rule-flow group of a rule via the guvnor UI? Thanks GP - The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the indivi

Re: [rules-users] Integration Of Guvnor with CustomApp

2010-12-23 Thread GPatel
Esteban I too am trying to integrate the Rule editing widget into my web page. I followed your writeup, very helpful indeed. What is missing though is a handy method to get all rules under a category. In my app (and I suspect in most cases where people are trying to embed the asset editor), we

Re: [rules-users] Upload an existing .drl for the Guvnor dynamically

2010-12-22 Thread GPatel
Is it possible to retrieve all rules within a category via the Rest API (or some other means) ? Thanks gpatel From: Andrew Waterman To: Rules Users List Date: 12/21/2010 12:12 PM Subject:Re: [rules-users] Upload an existing .drl for the Guvnor dynamically Sent by

[rules-users] Rule project referencing

2010-12-13 Thread GPatel
to B. That way, if a rule is fixed in A, all referencing child projects instantly benefit from the update. Is there a similar feature in drools or a way to achieve the same functionality? Thanks gpatel - The information contained in this communic