[rules-users] DSL Enumerations

Michael Anstis michael.anstis at gmail.com
Tue Jan 22 08:16:07 EST 2013


Unfortunately this is not possible.

Dependent enumerations at present work only on a single line.

On 21 January 2013 16:26, rjr201 <rich.j.riley at gmail.com> wrote:

> Hi,
>
> I'm creating a DSL with dropdown boxes that are populated by enumerations.
> I
> have so far had success in making one drop down box dependent on the value
> of another dropdown box on the same [when] line:
>
> [when]For every {objectType:ENUM:Object.type} with
> {attribute:ENUM:Object.attribute} equal to {value:ENUM:Object.value} =
> {objectType}({attribute} == "{value}")
>
> In the above example whatever value is chosen for objectType will dictate
> the values in the attribute dropdown which in turn dictates the values in
> the Value dropdown.
>
> My question is this: Is it possible to have a dropdown box reliant on the
> value of a dropdown box on a /different / line of the rule?
>
> I've tried a few different ways but am having no luck.
>
> Thanks for any help anyone can give me on this.
> Rich.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/DSL-Enumerations-tp4021696.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130122/9ba4e1b6/attachment-0001.html 


More information about the rules-users mailing list