[rules-users] Identifiers on LHS

Mauricio Salatino salaboy at gmail.com
Mon Sep 19 13:25:30 EDT 2011


You can get metadata using the kcontext variable but I'm not sure if you can
get the information about the identifiers.
Can you describe what are you looking to achieve? because the rule is fixed
and the identifiers as well. Why do you want to do reflection like stuff in
the RHS? I'm just curious..
Cheers

2011/9/19 Isaac Pereira <pereira.zc at gmail.com>

> Hi Mauricio,
>
> I mean a metadata structure that I can iterate on, then I wouldn't need to
> explicitely know the identifiers declared into a rule. Analogous to getting
> fields from a class using reflection.
>
> Thanks,
>
>
> 2011/9/19 Mauricio Salatino <salaboy at gmail.com>
>
>> What do you mean with a mapping between identifiers?
>> If you define an identifier and bind a property or an object reference to
>> it you can access it in the RHS directly.
>> Cheers
>>
>>  2011/9/19 Isaac Pereira <pereira.zc at gmail.com>
>>
>>>  Hi,
>>>
>>> Is there a way to get, on the RHS, a mapping between
>>> identifiers, declared on the LHS, and its respectives objects?
>>>
>>>
>>> I would appreciate any help.
>>>
>>> --
>>> Isaac Pereira
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>
>>
>> --
>>  - CTO @ http://www.plugtree.com
>>  - MyJourney @ http://salaboy.wordpress.com
>> - Co-Founder @ http://www.jugargentina.org
>>  - Co-Founder @ http://www.jbug.com.ar
>>
>>  - Salatino "Salaboy" Mauricio -
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
> --
> Isaac Pereira
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110919/b333762a/attachment.html 


More information about the rules-users mailing list