Initiate Workflow Through Automation
Parameter Configuration
| Parameter | Description |
|---|---|
| Workflow Module | The workflow module to which the created workflow instance belongs |
| Input Workflow ID | When enabled, expressions can be used to dynamically calculate and specify the Workflow ID |
| Workflow ID | The workflow ID used to initiate the process. Can use expressions to dynamically calculate and specify |
| Workflow | When Input Workflow ID is not enabled, initiate the process by selecting a workflow from the workflow modules within the application |
| Initiator | Set the initiator of the process |
| Form Data Table | The data table where form data is stored when initiating the workflow |
| Form Data Type | The type of workflow form when initiating the workflow. Create New Record or Use Existing Record |
| Associated Record ID | Initiate the process based on an existing data table record. Can use expressions to dynamically calculate and specify |
| Set Field Values | Set the form field values to initiate the process. Form field values can be dynamically calculated and specified using expressions |
| Workflow Variables | Set process variables for the workflow instance when initiating the process. Variable values can be dynamically calculated and specified using expressions |
Return Values
| Parameter | Description |
|---|---|
| Workflow Instance | Created workflow instance data |
Notes
- When Form Data Type is Use Existing Record, the process can be initiated based on an existing data table record. The process instance will automatically establish an association with the specified Associated Record ID
- When Form Data Type is Create New Record, the initiated process will use the settings of Form Data Type as the process form data. After the process is initiated, a new record will be created in the Form Data Table and associated with the process
Usage Scenarios
- Scheduled tasks, form listeners, button controls, etc., initiate the application's workflow through automation
- Workflow steps initiate the application's workflow in Service Node Calls Automation or Call Automation After Task Completion
- In cross-application scenarios, when an application publishes an application event and other applications listen to the published event, they initiate their own application's workflow
- Application API interfaces, after being called by third parties, initiate the application's workflow

