Skip to content

Create Process Using Existing Record

Feature Description

Create a workflow using an existing record. After successful creation, the existing record will be bound to the newly created workflow. The data in the workflow's start form will use the field values of the record specified by the Record ID. Note: If data has already been entered and you want to initiate a workflow using this record, you can use this action to complete it

Parameter Settings

Configuration ItemDescription
Workflow ModuleThe module to which the workflow belongs
ProcessThe workflow to be created
Process VariablesSet process variables during creation
Form Data TableIf the workflow has a start form configured, select the data table that stores the form data
Record IDThe ID of the record that needs to be bound to the workflow

Example

In a data table, if we need to use an existing record to create a workflow through the right-click menu, we can achieve this by adding a button with an execution action of Create Process Using Existing Record. As shown in the figure below, in the leave application module, we initiate a leave process through a button.

Example Figure

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:

FieldTypeDescription
applicantUser SelectionApplicant
leaveTypeList SelectionLeave Type, with options Annual Leave, Sick Leave, Personal Leave
startDateDateStart Date
endDateDateEnd Date
reasonMulti-line TextReason for Leave
statusList SelectionStatus, with options Pending Approval, Approved, Rejected
approverUser SelectionApprover
instanceIdSingle-line TextProcess ID

The process flow diagram is as follows:

Process Flow Diagram

The process startup settings are as follows:

Process Settings

Control configuration is as follows: