logologo
Get Started
Guide
Development
Plugins
API
English
简体中文
Get Started
Guide
Development
Plugins
API
English
简体中文
logologo
Workflow
Overview
Getting Started

Triggers

Overview
Collection Event
Schedule
Pre-action Event
Post-action Event
Custom Action Event
Approval
Webhook

Nodes

Overview

AI

Large Language Model

Flow Control

Condition
Loop
Variables
Parallel Branch
Subflow
Output
Delay
End

Calculation

Calculation
Date Calculation
JSON Query
JSON Variable Mapping

Data Operations

Create Data
Update Data
Query Data
Delete Data
SQL Operation

Manual Processing

Manual Processing
Approval
CC

Extended Types

HTTP Request
JavaScript
Notification
Send Email
Response
Response Message
Variables
Execution History
Version Management
Advanced Options

Extension Development

Overview
Extending Trigger Types
Extending Node Types
API Reference
Previous PageGetting Started
Next PageCollection Event

#Overview

A trigger is the entry point for a workflow. When an event that meets the trigger's conditions occurs while the application is running, the workflow will be triggered and executed. The type of trigger is also the type of workflow, selected when creating the workflow, and cannot be modified after creation. The currently supported trigger types are as follows:

  • Collection Events (Built-in)
  • Schedule (Built-in)
  • Before Action (Provided by the @nocobase/plugin-workflow-request-interceptor plugin)
  • After Action (Provided by the @nocobase/plugin-workflow-action-trigger plugin)
  • Custom Action (Provided by the @nocobase/plugin-workflow-custom-action-trigger plugin)
  • Approval (Provided by the @nocobase/plugin-workflow-approval plugin)
  • Webhook (Provided by the @nocobase/plugin-workflow-webhook plugin)

The timing of when each event is triggered is shown in the figure below:

Workflow Events

For example, when a user submits a form, or when data in a collection changes due to user action or a program call, or when a scheduled task reaches its execution time, a configured workflow can be triggered.

Data-related triggers (such as actions, collection events) usually carry trigger context data. This data acts as variables and can be used by nodes in the workflow as processing parameters to achieve automated data processing. For example, when a user submits a form, if the submit button is bound to a workflow, that workflow will be triggered and executed. The submitted data will be injected into the execution plan's context environment for subsequent nodes to use as variables.

After creating a workflow, on the workflow view page, the trigger is displayed as an entry node at the beginning of the process. Clicking on this card will open the configuration drawer. Depending on the type of trigger, you can configure its relevant conditions.

Trigger_Entry Node