Assembly: OptimaJet.Workflow.Core

Class InlineSchemesStep

OptimaJet.Workflow.Core.Builder.InlineSchemesStep

Represents a build step that inlines referenced ProcessDefinition instances by replacing IInlineActivity points with their referenced definitions.

public class InlineSchemesStep : BuildStep

Type Hierarchy

Constructors

public InlineSchemesStep(IWorkflowBuilder builder) #
Initializes a new instance of the InlineSchemesStep class.

Parameters

Name
Type
Description
builder
IWorkflowBuilder
The IWorkflowBuilder used to generate child process definitions.

Properties

public override string Name { get; } #
Gets the name of the step.

Methods

public override Task<BuildStepResult> ExecuteAsync(ProcessDefinition processDefinition) #
Expands all inline scheme references in the provided process definition into a single flattened definition.

Parameters

Name
Type
Description
processDefinition
ProcessDefinition
The ProcessDefinition that contains inline activities.

Returns

Type
Description
Task<BuildStepResult>
A task that resolves to a BuildStepResult describing whether the inlining completed successfully and containing the flattened definition when successful.

Remarks

The method validates inline references recursively and fails when a referenced scheme is missing or when a cycle is detected.

Remarks

The step recursively loads all schemes used by inline activities and merges their process definitions into the root definition before it is returned.