[rules-users] State management in Guvnor
Mahashabde, Rohan
rohan.mahashabde at bankofamerica.com
Thu Oct 8 15:59:39 EDT 2009
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-bounces at lists.jboss.org
[mailto:rules-users-bounces at 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-bounces at 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 at lists.jboss.org
>
> 10/08/2009 06:41 AM
>
> Sent by:
>
> rules-users-bounces at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
<https://lists.jboss.org/mailman/listinfo/rules-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091008/448a8be5/attachment.html
More information about the rules-users
mailing list