Delegate to Others
Feature Description
Delegate the task to others for processing. After delegation, the responsible person of the task will be set to the selected user. After the delegate completes the task, the task responsible person will be reset to the original responsible person.
Parameter Settings
| Configuration Item | Description |
|---|---|
| Workflow Module | Module to which the workflow belongs |
| Task ID | ID of the task to be delegated |
| Require Remarks | Whether remarks need to be filled in when delegating |
| Default Remarks | Default remarks information |
Example
In the process task pop-up window, if we need a button to delegate the process to others for processing, we can achieve this by adding a button with the execution action Delegate to Others. In the leave application module shown below, the superior approval task node is set to the selected user through the delegate button.
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:


