Trigger a topology

Updated at:

After a topology is configured, you can trigger the topology in one of the following modes: automatic trigger, manual trigger, and beta event-based trigger.

Automatic trigger

  • Triggered by a cron expression: If the scheduling mode of a topology is set to Trigger by Cron Expression, the tasks in the topology are regularly triggered based on the interval specified in the cron expression.

  • Triggered by events: If the scheduling mode of a topology is set to Event-based Trigger, the tasks in the topology are triggered by external events such as API calls, or driven by their parent tasks in the topology.

    Warning

    The subtasks of a topology task must be triggered by events. Therefore, only tasks triggered by events can be embedded as subtasks into another topology task.

Manual trigger

You can manually trigger a topology so that it is immediately executed. A disabled topology can also be manually triggered.

  1. Log on to the Scalable Open Financial Architecture Stack (SOFAStack) console.

  2. In the left-side navigation pane, choose Middleware > Task Scheduling > Task Orchestration.

  3. In the topology list, click Trigger Now on the right side of the target topology and then click OK.手动触发

Beta event-based trigger

The beta event-based trigger mode applies only to topologies that involve beta events. In beta event-based trigger mode, a topology node added with a beta event is automatically stopped after the node is executed, and waits for manual confirmation. Subsequent nodes are executed only after manual confirmation is complete and other execution conditions are met.

Note

For more information about how to add a beta event, see Topology execution events.

  1. In the task list, click Beta-based Trigger on the right side of the target topology.

  2. Click OK.mv