Edit

IWorkflowAction interface

Namespace: Microsoft.Azure.Workflows.Sdk

Represents an action step within a workflow that executes after a trigger fires or after preceding actions complete. Actions expose run-after metadata through RunAfterConfig and can be referenced through the typed interfaces documented in Typed Workflow Action Interfaces Definition.

Usage

var trigger = WorkflowTriggers.BuiltIn.CreateHttpTrigger();
var firstAction = WorkflowActions.BuiltIn.Compose(inputs: () => "Hello").WithName("Greet");
var secondAction = WorkflowActions.BuiltIn.Compose(inputs: () => "Logged").WithName("Audit");

trigger
    .Then(firstAction)
    .Then(secondAction);

// secondAction.RunAfterConfig contains the predecessor mapping for "Greet"

Properties

Name Description Type Required
RunAfterConfig Gets the mapping of predecessor action names to the required completion statuses for this action. Dictionary<string, FlowStatus[]> No

Methods

This type implements Then() methods from IChainableNode. See that page for full documentation of all overloads.