Skip to content

Task Configuration Instructions

task.png

User Task

Basic Information

taskSetting1.png

PropertyDescription
TypeActivity Type
IDActivity ID
NameActivity Name
DescriptionActivity Description
Due DateDue Date
AssigneeThe task assignee, can specify fixed user ID, initiator, role, department head, and variables in multi-instance
Claimable by UsersThe users who can claim this task, can be manually claimed under "To Claim" in the workflow module, can specify fixed user ID, initiator, role, department head, and variables in multi-instance
Claimable by RolesThe roles that can claim this task, return value should be an array of role identifiers
Task PrioritySmaller value means higher priority

Multi-Instance

taskSetting2.png

PropertyDescription
Execution TypeNone: Multi-instance not enabled
Sequential: Execute in order according to multiple task instances in assignee
Parallel: Multiple task instances execute in parallel
CollectionUser ID collection, generates multiple task instances based on this collection
Variable NameVariable name of the collection, can be used to specify task assignee
Completion ConditionWhen the completion condition is met, all remaining instances will be destroyed and the multi-instance activity will end, continuing the process

INFO

Multi-instance activities end when all instances are completed. However, you can also specify an expression that is evaluated when each instance ends. When the expression evaluates to true, all remaining instances will be destroyed and the multi-instance activity will end, continuing the process

Task Settings

taskSetting3-1.pngtaskSetting3-2.png

PropertyDescription
Auto-complete on Task StartWhen enabled, if this task was previously completed and then returns to this node through rejection or jump, it will be automatically completed
No Approver Handling MethodTo Claim: Go to claim list
Skip: Skip this node
Block Execution: End the process instance
TypeFill Data Table Form
Execute Automation Task
Display Process InfoWhen enabled, process information can be viewed on the task form
Form TypeFill Data Table Form: Use data table as process form storage
Form Designer Page: Use custom form
Need to enable Startup Form.
Form WidthSet the width of the form
Form Storage Data TableData table for storing forms, form type must select Fill Data Table Form.
Field SettingsSet display and edit permissions for fields in the form, form type must select Fill Data Table Form.
Set Form Field Values After CompletionSet form values after process starts, form type must select Fill Data Table Form.
Form Designer ModuleSelect form designer module, form type must select Form Designer Page.
Form Designer PageSelect form designer page, form type must select Form Designer Page.
Execute Automation After Task CompletionInput parameter type is BpmnTaskArgs

CC Settings

taskSetting4.png

PropertyDescription
CC UsersUsers who need to be CC'd after task completion. If specified using expression, the expression should return an array of user IDs

Service Task

Basic Information

taskSetting5.png

PropertyDescription
TypeActivity Type
IDActivity ID
NameActivity Name
DescriptionActivity Description
Execute AutomationInput parameter type is BpmnTaskArgs. Automation programs can use steps like Set Workflow Variable Get Workflow Variable to operate process variables.
Async ExecutionRun independently in new transaction

Multi-Instance

taskSetting6.png

PropertyDescription
Execution TypeNone: Multi-instance not enabled
Sequential: Execute in order according to multiple task instances in assignee
Parallel: Multiple task instances execute in parallel
CollectionUser ID collection, generates multiple task instances based on this collection
Variable NameVariable name of the collection, can be used to specify task assignee
Completion ConditionWhen the completion condition is met, all remaining instances will be destroyed and the multi-instance activity will end, continuing the process

Script Task

Basic Information

taskSetting7.png

PropertyDescription
TypeActivity Type
IDActivity ID
NameActivity Name
DescriptionActivity Description
Script LanguageDefault is javaScript
Script ContentScript content to be executed
Async ExecutionRun independently in new transaction

Multi-Instance

taskSetting6.png

PropertyDescription
Execution TypeNone: Multi-instance not enabled
Sequential: Execute in order according to multiple task instances in assignee
Parallel: Multiple task instances execute in parallel
CollectionUser ID collection, generates multiple task instances based on this collection
Variable NameVariable name of the collection, can be used to specify task assignee
Completion ConditionWhen the completion condition is met, all remaining instances will be destroyed and the multi-instance activity will end, continuing the process