Workflow Generator Wizard
Workflow Editor can be used not only as an organizing document for flow design, but also to automatically create a template for workflow processing. Launch the Workflow Generator Wizard in one of the following ways:
- Click the
"Generate Workflow"
button at the top of the screen - Right-click in the Workflow Editor canvas - Click on the
"Generate Workflow"
menu
Tips
Step 1. Target node/Component selection
The Workflow Generator Wizard creates a workflow button for the UI set in the "UI"
property of node. Step 1 is to select the target node. Checking the box ON is the selection. Click the "Continue"
button to move to Step 2. Override the UI of the selected node and define components such as buttons.
Item | Description |
---|---|
Status list | The status is displayed in a list format. |
CRUD | CRUD can be turned ON/OFF. CRUD ON: In addition to WF, CRUD tables and actions will be generated. CRUD OFF: Only WF will be generated. |
Target UI | Select where to create the detailed display UI. |
Component | Select the component to be used when creating the table. |
Tips
Step 2. Data list columns selection
Among the components that make up the workflow, select the columns to be displayed in the data list.
Tips
Step 3. Database Selection
In step 3, select the database to which the workflow application will connect. The database name selected here will be entered as an argument for the built-in function in the action written on the button. The database must have a built-in table for the workflow. If the built-in table does not exist in the selected database, the built-in table will also be generated.
Creates a table with the specified table name in the selected database.
Also select what to do about existing tables, excluded columns, and primary keys.
Item | Options | Reference | ||||||
---|---|---|---|---|---|---|---|---|
Database | Database of the selected execution environment | |||||||
Table Name | Select tables included in the selected database | To create a new table, enter the new table name in the Table Name field and click the option labeled 「Add "Table Name"」 . | ||||||
Existing tables | "Delete and Create" , the existing table will be deleted and a new table will be created, so we recommend that you back up the table."Update" , the existing table will be updated with the added/updated columns. | |||||||
Primary key column | Auto-create (ID)Select |
| ||||||
Primary Key Component | List of component IDs selected in step 1 and for which primary keys can be set | Create a table with the column of the selected parts as the primary key.The following components can be used as primary keys: |
Click the [Continue]
button to move to step 3.
Step 4. Select an option
Set whether to specify the database name directly in the SQL statement to be created.
Also, select whether to support action definition.
Item | Options | Reference |
---|---|---|
Assign a DB name to the SQL function to be generated | ONOFF | • When ON, the generated SQL will specify a database name for objects. • When OFF, it is assumed that an existing database will be used, and the generated SQL will not specify a database name for objects. |
Action | Overwrite existing codeComment out and append to existing code | • If you select "Overwrite existing code" , all of your action descriptions will be overwritten.• If you select "Comment out and append to existing code" , blocks of existing code will be commented out as shown below, and the new code will be added above the existing commented out blocks of code.[Image of action code] new code1 new code2 new code3 //old code1 //old code2// old code3 |
Tips
Output result
UI Editor
UI | Component or UI | ID | Label | Display or action |
---|---|---|---|---|
User-created form UI | Text input | case_id | CASE ID | Display case ID data |
Text Input | status | STATUS | View the current status | |
Button | {OperationID} | {Operation Label} | Press the button to perform the operation | |
List_{FormUI’sID} | UI | List_{FormUI’sID} | List_{FormUI’s ID} | Displays a list of data. |
Datagrid | data_list | Display the data list in a data grid. | ||
Datagrid Column | case_id | CASE_ID | The case ID will be displayed, and when you press it, you will be redirected to the details screen. | |
Datagrid Column | {FormUI’s ComponentID} | {FormUI’s ComponentLabel} | The columns you selected in step 2 to display will be created. |
Tips
Table
After you have completed all the steps, a table will be created according to the components you selected.
The column name will be the component ID.
The column data type and size will vary depending on the component, as shown in the table below.
Component | Data Type | M | D |
---|---|---|---|
Text Field | VARCHAR | 100 | |
Text Area | VARCHAR | 1000 | |
Number Field | DECIMAL | 10 | 3 |
Big Number | BIGINT | ||
Select Field | VARCHAR | 100 | |
Password | VARCHAR | 100 | |
Select | VARCHAR | 100 | |
Combo Box | VARCHAR | 100 | |
Radio Button | TINYINT | ||
Radio Group | VARCHAR | 100 | |
Checkbox | TINYINT | ||
Checkbox Group | VARCHAR | 100 | |
Switch | TINYINT | ||
Rating | INT | ||
Slider | INT | ||
Spreadsheet | LONGTEXT | ||
Date Picker | VARCHAR | 100 | |
Time Picker | VARCHAR | 100 | |
Date Time Picker | VARCHAR | 100 | |
Data Grid | TEXT |
Create WF with Execute Previous History
After creating a workflow, you can recreate it with the wizard settings from the previous time it was created.
- Click the
[Execute Previous History]
icon in the upper right.
Tips
Clear previous settings
You can clear the settings in the wizard when you created the workflow.
- Click the
[Clear History]
icon in the upper right.