User interface diagram to UI - donvadicastro/generator-xmi GitHub Wiki

User interface diagram User interface diagram

Generated screen User interface diagram

"User interface" diagram supported controls

Conrol Description Example
Text Represents simple editbox Text
Text
Stereotype="date"
Represents simple editbox Text
Button Action control represented as clickable button Button
Checkbox Allows to confirm user intention Button
Combobox Allows to select single value from list of proposals Button
Panel Allows to group controls into single container
Table with selection Allows to represent list data Button

Bind data to controls from business process models

To be able to populate data into specific controls - this controls need to be linked with diagrams that defines business process to collect data. This linkage can be implemented with using "Information flow" link connector.

As data comes from business process to controls - flow should be properly directed: from process to control.

Example

In this example grid control is linked with diagram, defined some business process. Diagram can be dragged to UI form. Bind data

After generation - grid will trigger process execution to bind data. As process is represented with separate API endpoint - result of API call will be used as grid data.

Similar implementation with binding combo list Bind data

Bind data to controls from domain entities

As each class in class diagrams will be represented with own form to manage data - it's expected that user custom forms also need access to this data. The most common example - allow to select single item from all available items for particular domain entity type.

To add this sort of component into user interface form to get automatic data linkage to domain entity values - class element need to be added to user interface form. How to do:

  1. Drop any class into user interface model and specify "drop as" parameter to "instance" Drop class
  2. In property window change type of this control to "GUIElement" Change type
  3. Specify all required attributes (name and alias) and set stereotype to "combobox" Set attributes

After this actions class element will be represented as native "combobox" and will be linked to defined class entity. After form generation - control will be bound to data for this class entity. Diaplay

Data flow between controls

When you want to link two controls with parent-child relation, so child control will use selected data from parent to update it's content - you need to link dependent controls with "Information flow" link.

Data flo

The most common use case for this relation - cascading dropdowns (select state after selecting country).

⚠️ **GitHub.com Fallback** ⚠️