[rules-users] generic properties

thomas kukofka thomaskukofka at web.de
Thu Jul 24 10:23:31 EDT 2008


Thanks,

but I've still Problems if I try to use
io: InputObject ( stringParameters[InputObject.Parameter.ParameterName] ==
"something")

=>Field/method 'InputObject' not found for class 'com.rules.InputObject'Rule
Compilation error

Parameter is an enum witch contains all allowed Parameters of InputObject

Kind Regards
Thomas

2008/7/23 Edson Tirelli <tirelli at post.com>:

>
>
>    If you make your map available through a get, you can use simplified Map
> syntax like this:
>
> public Map getStringParameters() {
>         return stringParameter;
>     }
>
>
> io: InputObject ( stringParameters["propertyname"] == "something")
>
>    []s
>    Edson
>
> 2008/7/23 thomas kukofka <thomaskukofka at web.de>:
>
>> Hello ,
>>
>> I just recognized, that this doesn't work. But it is possible to use plain
>> Java code in the rule, also if-conditions and for and while-loops etc..
>> However more Java code makes the rule less readable and elegant.
>> Is there another possibility to use generic input objects?
>>
>> Thomas
>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> --
> Edson Tirelli
> JBoss Drools Core Development
> JBoss, a division of Red Hat @ www.jboss.com
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080724/61e9cdb5/attachment.html 


More information about the rules-users mailing list