[rules-users] Fill dependent dropdown lists based on a web decision table

Michael Anstis michael.anstis at gmail.com
Thu Feb 28 07:56:46 EST 2013


Did you read the "Advanced" section?

This talks about how you can use an external source of data for
enumerations in Guvnor.

I thought this is what you wanted?

On 28 February 2013 10:16, peach_wyss <peach_wyss at yahoo.com> wrote:

> hy
>
> thanks for your answer.
>
> 1) I think you have misunderstood me. I don't want this dropdown list in
> guvnor, we're having our dropdown list on our own form in our application.
> So guvnor should only provide a way to define this dependencies.
>
> 2) Where can I define an enum like this
> http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html_single/index.html#d0e1903in the Guvnor-Webclient? When I click on Knowledge Bases > Create New > New
> Enumeration, I can type in something like Fact, Field and Context...which I
> don't understand. Is there a text view for enumerations in guvnor?
>
> Thanks for your help.
> Peter
>
>
>   ------------------------------
> *From:* manstis [via Drools] <[hidden email]<http://user/SendEmail.jtp?type=node&node=4022630&i=0>
> >
> *To:* peach_wyss <[hidden email]<http://user/SendEmail.jtp?type=node&node=4022630&i=1>>
>
> *Sent:* Tuesday, February 26, 2013 8:40 AM
> *Subject:* Re: [rules-users] Fill dependent dropdown lists based on a web
> decision table
>
>  Look at how to use advanced enums in Guvnor's User Guide.
> sent on the move
> On 26 Feb 2013 07:33, "peach_wyss" <[hidden email]> wrote:
>
> Hi
>
> I'm using Drools and Guvnor in our project. We have the following Data
> Model
> (simplified):
> - Object C
> -> has a List
> -> has a List
>
> I need to build an easy to edit web decision table in guvnor. We need the
> table to fill a dropdown list (Object B) in dependency of another dropdown
> list (Object A), when for example creating a new Object C on a form. The
> table should look something like this:
>
> [Object A] [Object B]
>
> Test A1     Test B1
>
>                 Test B2
>
>                 Test B3
>
> Test A2     Test B4
>
> Test A3     Test B5
>
>                 Test B6
>
> Test A4     Test B7
>
>                 Test B8
>
>                 Test B9
>
>                 Test B10
>
> ...so when a User creates a new Object C (Create-Form) and select on for
> example "Test A3" in a dropdown list (Object A), Drools should be firing
> and
> result "Test B5" and "Test B6", which then can be filled in the second
> dropdown list (Object B).
>
> How can I achieve such a scenario? We have already Drools Guvnor in use and
> the requirement is, to have such a table to easy edit the dependencies of
> this two dropdown lists.
>
> Some thoughts:
> - Is there a way to fill Objects in a List as a Action-Column in a web
> decision table?
> - Is there a way to add Objects to a List (global variable) in a web
> decision table?
> - Is there a way to achieve this with rule templates?
> - Are there other ways to achieve this?
>
> Thanks for your help.
>
> Kind regards,
> Peter
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Fill-dependent-dropdown-lists-based-on-a-web-decision-table-tp4022589.html
> Sent from the Drools: User forum mailing list archive at Nabble.com<http://nabble.com/>
> .
> _______________________________________________
> rules-users mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://drools.46999.n3.nabble.com/Fill-dependent-dropdown-lists-based-on-a-web-decision-table-or-other-type-of-rules-tp4022589p4022590.html
>  To unsubscribe from Fill dependent dropdown lists based on a web decision
> table (or other type of rules), click here.
> NAML<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
> ------------------------------
> View this message in context: Re: [rules-users] Fill dependent dropdown
> lists based on a web decision table<http://drools.46999.n3.nabble.com/Fill-dependent-dropdown-lists-based-on-a-web-decision-table-or-other-type-of-rules-tp4022589p4022630.html>
>
> Sent from the Drools: User forum mailing list archive<http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html>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/20130228/6920b38b/attachment.html 


More information about the rules-users mailing list