Complete Task
Feature Description
Save the form data of the current process and submit the task to the next node
Parameter Settings
| Configuration Item | Description |
|---|---|
| Workflow Module | Module to which the workflow belongs |
| Task ID | ID of the task to be completed |
| Require Remarks | Whether remarks need to be filled in when completing the task |
| Default Remarks | Default remarks information |
| Set Process Variables | Set workflow variables when completing |
| Form Data Table | Data table for saving form data |
| Set Form Field Values After Completion | Automatically set form field values after completing the task |
Example
In the process task pop-up window, if we need a button to transfer the process to the next node, we can achieve this by adding a button with the execution action Complete Task. In the leave application module shown below, the superior approval task node transfers to the next task node through the agree button.
Example Diagram
Configuration Instructions
Suppose there is a simple Leave Application process. After the process is initiated, the process instance ID is saved in the Leave Application data table.
The structure of the Leave Application data table that stores form data is as follows:
| Field | Type | Description |
|---|---|---|
| applicant | User Selection | Applicant |
| leaveType | List Selection | Leave Type, with options Annual Leave, Sick Leave, Personal Leave |
| startDate | Date | Start Date |
| endDate | Date | End Date |
| reason | Multi-line Text | Reason for Leave |
| status | List Selection | Status, with options Pending Approval, Approved, Rejected |
| approver | User Selection | Approver |
| instanceId | Single-line Text | Process ID |
The process flow diagram is as follows:

The process startup settings are as follows:

Control configuration is as follows:

