[rules-users] setting enum values in Action Column in excel sheet for Drools decision Table

Wolfgang Laun wolfgang.laun at gmail.com
Tue Jul 9 01:16:47 EDT 2013


You wrote a lot but the essential part is missing: What did you write
in the cell that defines the value to replace "$param"? If the enum
"Test" is defined in class "SomeEnumClass", you'll have to use
"SomeEnumClass.Test", or you write the "Test." once in front of
"$param".

-W

On 09/07/2013, ashish6276 <ashishkumarec010 at gmail.com> wrote:
> Hi
>
> I have created an excel sheet for drool decision table. i created a object
> class for the excel properties which has class level hireachy. City is
> inside Country and country is inside region. we are facing issue
> in Action part of the excel. as i am setting object as hierarchy based but
> we are not able to get the
> enum value which is defined inside the inner object. like
> contentProviders= new ContentProviders();
> response.setContentprovider(contentProviders);
>    providers= new Providers();
> contentProviders.getContentProviderList().add(providers);
> providers.setContentProvider($param);
> where
>
> providers.setContentProvider($param);
>  is enum value it is throwing an error in drl as it is not able to
> recognize
> the enum value
>  i am getting below error while running java program
> com/schedulesearch/rules/Rule_BR_01_a6040cb1e88e4e90bd83ad4092334994.java
> (8:750) : Test cannot be resolved.
> Test is enum value.
> This code i am writing in  the Action Part of xls.
>
> Please suggest Thanks in Advance
>
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/setting-enum-values-in-Action-Column-in-excel-sheet-for-Drools-decision-Table-tp4024828.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list