Hi,
I tried this. No problem at all.
I can use enums also like this:
io: InputObject(type == InputObject.Parameter.PARAMETERNAME)
Only this causes the error:
private HashMap<Parameter, String> stringParameters;
public HashMap<Parameter, String> getStringParameters() {
return stringParameters;
}
public void setStringParameters(HashMap<Parameter, String> stringParameters) {
this.stringParameters = stringParameters;
}
io: InputObject ( stringParameters[InputObject.Parameter.ParameterName] == "something") -> Field/method 'InputObject' not found for class 'com.rules.InputObject'Rule
> Compilation error
If I use String instead of Parameter it works again:
private HashMap<String, String> stringParameters;
io: InputObject ( stringParameters["somestring"] == "something")
Thomas
Scott Reed
sreed at avacoda.com
Mon Jul 28 09:10:48 EDT 2008
Try a simple rule that just checks for any InputObject to make sure you
have the class imported correctly.
Rule "x"
when
InputObject()
then
end
thomas kukofka wrote:
> Hello,
>
> If have an input object Inputobject which contains an enum Parameter which contains all allowed parameters of InputObject:
>
>
> The entries for the parameters are stored in a map:
> private HashMap<Parameter, String> stringParameters;
>
> If I try:
> io: InputObject ( stringParameters[InputObject.Parameter.ParameterName] ==
>
>
> "something")
>
> I got the error
> =>Field/method 'InputObject' not found for class 'com.rules.InputObject'Rule
> Compilation error
>
> Kind Regards
> Thomas