[jboss-jira] [JBoss JIRA] (DROOLS-4799) Adding "expression" type handling for Collection type propereties

Jozef Marko (Jira) issues at jboss.org
Tue Dec 10 02:14:00 EST 2019


    [ https://issues.redhat.com/browse/DROOLS-4799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13823087#comment-13823087 ] 

Jozef Marko commented on DROOLS-4799:
-------------------------------------

[~uxdlc] ok I will try to explain my thoughts.
In dmn data type constraints, user can define the same constraint using both "Enumeration" and "Expression" editor. In other words, the defined constraint doesn't need to be dropped during switching between editors because both have the same expressing power. In the two pictures below the constraint is defined:

-  !dmn-dt-enumeration-constraint.png|thumbnail! 
-  !dmn-dt-expression-constraint.png|thumbnail! 

So my idea is when user define scesim list like (I guess is create list option in your wireframes):
 !expression-list_error.png|thumbnail! 

Then switching to define list option could show a value {{Arrays.asList("green", "blue")}} or something. I am sure it would be doable for simple lists (string, numbers ...) Not sure about lists of custom objects, developers need to advise.


> Adding "expression" type handling for Collection type propereties
> -----------------------------------------------------------------
>
>                 Key: DROOLS-4799
>                 URL: https://issues.redhat.com/browse/DROOLS-4799
>             Project: Drools
>          Issue Type: Feature Request
>          Components: Scenario Simulation and Testing, Test Scenarios Editor
>            Reporter: Yeser Amer
>            Assignee: Elizabeth Clayton
>            Priority: Major
>              Labels: UX, UXTeam
>         Attachments: Screen Shot 2019-11-26 at 1.26.54 PM.png, dmn-dt-enumeration-constraint.png, dmn-dt-expression-constraint.png, expression-list_error.png, scesim-list.png
>
>
> I need a clarification regarding the behaviour of the updated Collection Editor, in particular for this section -->https://marvelapp.com/5ab248j/screen/62093042/layer/102496330.
> Considering the editor introduces a new way to handle a Collection ("Define List"), can you please give us detailed behaviour for the following case:
> - What happen if a user starts to input data inside a section (Define List/Create List) and then switch on the other one? 
> eg. if I start to define a List using "Define List" option (i.e. an expression) and then I change to "Create List" case. What should happen? 
> - Currently, after adding a Collection, the Grid cell will show "List (1)". It should be the same for "Define list" (i.e. Expression) case?
> In case of additional clarificaiton, I'll update this ticket.
> Hope it's clear, if not you can contact me anytime.
> Thanks



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list