[jboss-jira] [JBoss JIRA] (DROOLS-2738) Create a simple, structured or compound data type

Liz Clayton (JIRA) issues at jboss.org
Sat Jul 14 14:21:00 EDT 2018


     [ https://issues.jboss.org/browse/DROOLS-2738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Liz Clayton updated DROOLS-2738:
--------------------------------
    Description: 
We're trying to solve two big issues with this dialog:
 I) the definition of a simple (basic) data type; and 
II) the definition of a structured data type.
* The first one is kind of easy, we just need to provide to the user an input and a select, in order to capture the name and the type of a simple data type. 
* The second problem is a little bit more difficult. Because the user needs to be able to define complex data types, with nested structures. For example, the user can create a data type called Person with 3 nested fields (they are simple data types) Additionally, a structured data type can have other complex nested data types.
* Requirement to address situations where we're going to have many levels of nesting and many fields. The user should be able to: a) navigate between levels; b) expand/collapse nested types; c) create complex data structures easily.


  was:
We're trying to solve two big issues with this dialog: I) the definition of a simple (basic) data type; and II) the definition of a structured data type.

The first one is kind of easy, we just need to provide to the user an input and a select, in order to capture the name and the type of a simple data type. Here some examples of four simple data types:

The second problem is a little bit more difficult. Because the user needs to be able to define complex data types, with nested structures. For example, the user can create a data type called Person with 3 nested fields (they are simple data types):

Person
name (Text)
age (Number)
email (Text)
Additionally, a structured data type can have other complex nested data types, like:

Person
name (Text)
age (Number)
email (Text)
address (Address)
street (Text)
city (Text)
country (Text)
The approach that you adopted to solve the scenario above was to express these nested levels using text:

..which is pretty interesting. But, the example that we're handling here has only one level of nesting (Address), and Edson is concerned about situations where we're going to have many levels of nesting and many fields. Something like this:

Person
name (Text)
age (Number)
email (Text)
address (Address)
Something (Something)
field1 (Text)
field2 (Text)
field3 (Text)
field4 (Text)
field5 (Text)
field6 (Text)
field7 (Text)
field8 (Text)
Something (Something)
field1 (Text)
field2 (Text)
field3 (Text)
field4 (Text)
field5 (Text)
field6 (Text)
field7 (Text)
field8 (Text)
Something (Something)
field1 (Text)
field2 (Text)
field3 (Text)
field4 (Text)
field5 (Text)
field6 (Text)
Something (Something)
field1 (Text)
Something (Something)
field1 (Text)

Edson thinks that the user should be able to: a) navigate between levels; b) expand/collapse nested types; c) create complex data structures easily.

That said, we need a different approach to handle this kind of complex structure. Maybe we could adopt the tree view prototypes and improve them, maybe we could use a breadcrumb to navigate between levels, or maybe we can have another idea 



> Create a simple, structured or compound data type
> -------------------------------------------------
>
>                 Key: DROOLS-2738
>                 URL: https://issues.jboss.org/browse/DROOLS-2738
>             Project: Drools
>          Issue Type: Sub-task
>            Reporter: Liz Clayton
>            Assignee: Liz Clayton
>
> We're trying to solve two big issues with this dialog:
>  I) the definition of a simple (basic) data type; and 
> II) the definition of a structured data type.
> * The first one is kind of easy, we just need to provide to the user an input and a select, in order to capture the name and the type of a simple data type. 
> * The second problem is a little bit more difficult. Because the user needs to be able to define complex data types, with nested structures. For example, the user can create a data type called Person with 3 nested fields (they are simple data types) Additionally, a structured data type can have other complex nested data types.
> * Requirement to address situations where we're going to have many levels of nesting and many fields. The user should be able to: a) navigate between levels; b) expand/collapse nested types; c) create complex data structures easily.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list