[rules-users] State management in Guvnor
Hi All, What is the significance of Status in Guvnor. I have added multiple statuses like Production, Testing etc. How can I use it to differentiate between rules. I want to run only the rules under production status. How to do it ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] State management in Guvnor
Check out selectors in section 1.2.5.3 of the Guvnor Documentation http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-guvnor/html_single/index.html#d0e233 Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 10/08/2009 06:35:39 AM: [image removed] [rules-users] State management in Guvnor Ambika Goel to: rules-users@lists.jboss.org 10/08/2009 06:41 AM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List Hi All, What is the significance of Status in Guvnor. I have added multiple statuses like Production, Testing etc. How can I use it to differentiate between rules. I want to run only the rules under production status. How to do it ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] State management in Guvnor
I am implementing the selector functionality to build out package mentioned in the Guvnor documentation but facing issues while getting it to work. I am using a drl file for the selector criteria and this is the error I am getting: org.drools.CheckedDroolsException: There were errors in the rule source: Unable to create Field Extractor for 'statusDescription' of '[ClassObjectType class=org.drools.repository.AssetItem]' in rule 'rule1' : [Rule name='rule1'] This is my drl file: ProductionAssets.drl package org.drools.guvnor.server.selector dialect mvel import org.drools.repository.AssetItem import org.drools.guvnor.server.selector.Allow rule rule1 when AssetItem(statusDescription ==Production) then insert(new Allow()) end Please can anyone help me with this? Thanks. Thanks and Regards Rohan V Mahashabde Consultant - Infosys Technologies Ltd CRE Loan Solution Dev Ext: 980.683.5539 From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Steve Ronderos Sent: Thursday, October 08, 2009 9:26 AM To: Rules Users List Subject: Re: [rules-users] State management in Guvnor Check out selectors in section 1.2.5.3 of the Guvnor Documentation http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-guvnor/h tml_single/index.html#d0e233 http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-guvnor/ html_single/index.html#d0e233 Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 10/08/2009 06:35:39 AM: [image removed] [rules-users] State management in Guvnor Ambika Goel to: rules-users@lists.jboss.org 10/08/2009 06:41 AM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List Hi All, What is the significance of Status in Guvnor. I have added multiple statuses like Production, Testing etc. How can I use it to differentiate between rules. I want to run only the rules under production status. How to do it ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] State management in Guvnor
Try AssetItem(stateDescription == Production) stateDescription instead of statusDescription Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 10/08/2009 02:59:39 PM: [image removed] Re: [rules-users] State management in Guvnor Mahashabde, Rohan to: Rules Users List 10/08/2009 03:02 PM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List I am implementing the selector functionality to build out package mentioned in the Guvnor documentation but facing issues while getting it to work. I am using a drl file for the selector criteria and this is the error I am getting: org.drools.CheckedDroolsException: There were errors in the rule source: Unable to create Field Extractor for 'statusDescription' of '[ClassObjectType class=org.drools.repository.AssetItem]' in rule 'rule1' : [Rule name='rule1'] This is my drl file: ProductionAssets.drl package org.drools.guvnor.server.selector dialect mvel import org.drools.repository.AssetItem import org.drools.guvnor.server.selector.Allow rule rule1 when AssetItem(statusDescription ==Production) then insert(new Allow()) end Please can anyone help me with this? Thanks. Thanks and Regards Rohan V Mahashabde Consultant - Infosys Technologies Ltd CRE Loan Solution Dev Ext: 980.683.5539 From: rules-users-boun...@lists.jboss.org [mailto:rules-users- boun...@lists.jboss.org] On Behalf Of Steve Ronderos Sent: Thursday, October 08, 2009 9:26 AM To: Rules Users List Subject: Re: [rules-users] State management in Guvnor Check out selectors in section 1.2.5.3 of the Guvnor Documentation http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools- guvnor/html_single/index.html#d0e233 Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 10/08/2009 06:35:39 AM: [image removed] [rules-users] State management in Guvnor Ambika Goel to: rules-users@lists.jboss.org 10/08/2009 06:41 AM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List Hi All, What is the significance of Status in Guvnor. I have added multiple statuses like Production, Testing etc. How can I use it to differentiate between rules. I want to run only the rules under production status. How to do it ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users