Edit

WorkflowTriggerBase class

Namespace: Microsoft.Azure.Workflows.Sdk

WorkflowTriggerBase is the abstract base implementation for IWorkflowTrigger nodes. It provides trigger naming and fluent chaining support for concrete trigger types while enforcing the rule that run-after conditions cannot be applied to the first action after a trigger.

Usage

// WorkflowTriggerBase is abstract; use concrete triggers via WorkflowTriggers.BuiltIn
var trigger = WorkflowTriggers.BuiltIn.CreateHttpTrigger();

// Chain actions after the trigger
trigger.Then(WorkflowActions.BuiltIn.Compose(inputs: () => "Hello").WithName("Greet"));

// Access inherited properties
string name = trigger.Name;
var children = trigger.Children; // contains "Greet"

Properties

Name Description Type Required
Name Gets or sets the unique trigger name used in the generated workflow definition. string No
Children Gets the child actions configured to run after the trigger fires. List<IWorkflowAction> No

Methods

Then

This type implements Then() methods from IChainableNode. See that page for full documentation of all overloads. Note: On triggers, the Then(action, FlowStatus[]) and Then(action, RunAfter[]) overloads throw InvalidOperationException because run-after conditions cannot be specified on the first action after a trigger.