Flow designer
Creates and edits the statuses and actions of a workflow directly on the flow chart.

What the flow designer is
In workflow settings the statuses are entered in the step 1 table and the actions in the step 2 table.
Tables alone make some things hard to see:
- which status leads to which
- whether a status has become a dead end
- whether the reject path is wired up correctly
The flow designer is the same setting seen as a picture.
- It saves to exactly the same place as step 1 and step 2, so anything drawn here appears in those tables
- Either screen can be used. Drawing the shape here and adjusting the details in the tables works fine
Opening the screen
Editing an existing workflow as a chart
On the workflow list, click the [Flow designer] icon on the row.

Step 1 and step 2 also carry a [Flow designer] button at the top right.

Creating a new workflow from a chart
Click [Create with designer] at the top right of the workflow list.

Reading the screen
Toolbar

| Item | Content |
|---|---|
| Back to list | Returns to the workflow list |
| 1. Status name / 2. Action name | Go to the table screens (step 1 / step 2) |
| Setting Complete | Completes the workflow setting. It sits after "2. Action Name" and is not shown once the setting is completed. See Workflow settings |
| 3. Notify Setting / 4. Usage settings | Available once the setting is completed |
| (workflow name) | The workflow being edited |
| No problem / N item(s) to check | The result of the input check. Click it to read the details |
| Auto layout | Rearranges the nodes automatically |
| ⤢ (Fit) | Scales the chart to fit the screen |
| - / + | Changes the zoom |
| Save | Saves the changes |
Hints
The basic gestures are shown across the top of the screen at all times.

Legend

| Drawing | Meaning |
|---|---|
| Black node | The start status |
| Blue node | A normal status |
| Green node | A completed status |
| Solid arrow | An action (moving to the next status) |
| Dashed arrow | A special action (reject and the like - not counted as a working user) |
The "Done" and "Locked" chips on a node mean a completed status and a status where the data cannot be edited.
Basic operations
Adding a status
Right click an empty part of the chart and choose [Add status].

| Item | Content |
|---|---|
| Add status | Creates a status where you right clicked |
| Auto layout | Rearranges the nodes automatically |
| Fit | Scales the chart to fit the screen |
Creating an action (an arrow)
Drag the dot on the right edge of a status and drop it on another status.
An action joining the two is created.

Dropping on an empty area offers "Create a new status and connect", which creates the status and the action in one go.
Changing an action
Right click the action name and choose [Action setting].

| Item | Content |
|---|---|
| Action setting | Sets the name, who may run it, and the options |
| Delete action | Removes this arrow |
Changing a status
Right click a status to rename it, mark it as a completed status, or delete it.
A status that already holds data cannot be deleted - it says "In use, cannot be deleted".
The start status cannot be deleted either; only renamed.
Tidying the chart
- Nodes can be dragged anywhere
- [Auto layout] rearranges them into a left-to-right flow
- [⤢ Fit] scales the chart to fit the screen
Saving
Click [Save] at the top right.
Nothing reaches the database until then; while there are unsaved changes the toolbar shows "Unsaved".
Leaving the page with unsaved changes asks for confirmation.
If somebody else saved the same workflow first, it says the workflow has been updated on another screen - reload the page and save again.
Items to check
The right of the toolbar always carries the result of the input check.
- Green "No problem" when there is nothing to fix
- Orange "N item(s) to check" otherwise

Clicking it lists the problems; clicking one jumps to where it is.
| Message | Meaning |
|---|---|
| The workflow name is empty. It cannot be saved as is. | A name is required before saving |
| The workflow name is longer than 30 characters. It cannot be saved as it is. | The name is 30 characters at most |
| Please select the workflow type. / Please select the target table. | Choose the workflow type, and the table for a "Table Only" workflow |
| The start status name is empty. It cannot be saved as is. | Give the start status a name |
| No action starts from "...". | Nothing leads out of the start status |
| There is no status. / There is no action. | Add at least one status and one action |
| Please set at least one completed status. | Exactly one status must be the completed status |
| No action reaches "...". | A status cannot be reached from anywhere |
| "..." has no outgoing action and is not a completed status. | A dead end |
| Status before / after execution is not set on action "...". | Pick both statuses of the action |
| Action "..." refers to a deleted status. | The arrow points at a status that no longer exists |
| There is a row with no action name. It cannot be saved as is. | Every action needs a name |
| The action name of "..." is longer than 30 characters. | An action name is 30 characters at most |
| Action "..." has the same status before and after execution. It cannot be saved as is. | An arrow back to the same status is not allowed |
| Executable user is not set on action "...". It cannot be saved as is. | Say who may run it |
| The number of people in "Condition to advance to next status" on action "..." must be a number from 0 to 10. | Fix the number of people |
Messages about the user setting of an action are also shown when "Special Action" is combined with "Select the user who executed the previous action", when the first action uses that option or anything other than "Set in advance", and when it is mixed with other settings in the same status.
"No action reaches ..." and "... has no outgoing action…" are warnings and do not stop saving. The other messages stop the save.
Create with designer
Opened from [Create with designer], the screen starts with a "Basic information" dialog.

| Item | Content |
|---|---|
| Workflow View Name | The name of the workflow (30 characters at most) |
| Workflow Type | "Generic" or "Table Only" |
| Table | The table the workflow is for. Asked only when the type is "Table Only" |
| Start Status Name | The first status ("Draft", "Before request"...) |
Filling it in and saving puts the start status on the left of the chart.

From there, right click to add statuses and drag the dots to join them.
The workflow is not registered until you save.
Once statuses and actions are saved, [Setting Complete] in the toolbar becomes available, and step 3 (notify setting) and step 4 (usage setting) can be reached.
The flow preview on step 2
Step 2 (action setting) also carries the chart, on the right of the table.



- Editing the table redraws the chart straight away
- Clicking an action in the chart selects its row in the table
- [Add Action] adds a row to the table
- "N item(s) to check" is the same input check as the designer
Save the layout (the pin button)
Decides whether the positions of the nodes are remembered.
- With the pin pressed, saving the screen records the current layout, and it comes back the same way next time
- With it released, the layout is not saved and the chart is laid out automatically every time
Hide preview
[Hide preview] takes the chart away and gives the table the full width.
Notes
Editing a workflow whose setting is completed
Once [Setting Complete] has been done, the statuses are locked, the same as on step 1.
- Statuses cannot be added, deleted or reordered, and the completed status cannot be changed. [Add status] and [Delete status] in the right click menus are greyed out with "Locked because the setting is completed".
- The status names, "Cannot Edit Data" and every action can still be edited.
Apart from this, a status that is used by existing data or history cannot be deleted, even before the setting is completed.
Completed status
While the setting is not completed, a workflow has exactly one completed status.
- Only one status can be the completed status. If there are several, clear the others before saving.
- A workflow with no completed status cannot be saved either.
- Saving on step 1 also leaves only the last row of the table as completed.
A workflow whose setting is already completed may hold several completed statuses (one that came from a template, for example). They are kept as they are and cannot be changed in the flow designer.
Filter conditions (branches)
The filter conditions of an action are set on step 2.
Saving from the flow designer does not remove them; they appear in the chart as "Condition 1", "Condition 2".
