Class InlineSchemesStep
OptimaJet.Workflow.Core.Builder.InlineSchemesStep
Represents a build step that inlines referenced ProcessDefinition instances by replacing IInlineActivity points with their referenced definitions.
Namespace: OptimaJet.Workflow.Core.Builder
public class InlineSchemesStep : BuildStepType Hierarchy
- BuildStep
- InlineSchemesStep Current type
Constructors
public InlineSchemesStep(IWorkflowBuilder builder) #Initializes a new instance of the InlineSchemesStep class.
Parameters
Name
Type
Description
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
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.