Assembly: OptimaJet.Workflow.Core

Class ProcessDisplayedStateGenerator

OptimaJet.Workflow.Core.Designer.ProcessDisplayedStateGenerator

Generates ProcessTreeDisplayedState objects for displaying processes and their subprocesses in the designer.

public static class ProcessDisplayedStateGenerator

Methods

public static Task<ProcessTreeDisplayedState> GenerateAsync(WorkflowRuntime runtime, Guid processId) #
Asynchronously generates the displayed state for the process identified by processId and its descendant subprocesses.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The WorkflowRuntime used to load process data.
processId
Guid
The value of ProcessInstance.ProcessId for the process to display.

Returns

Type
Description
Task<ProcessTreeDisplayedState>
A Task<TResult> whose result is a ProcessTreeDisplayedState rooted at the process identified by processId.
public static Task<ProcessTreeDisplayedState> GenerateAsync(WorkflowRuntime runtime, ProcessInstance processInstance) #
Asynchronously generates the displayed state for processInstance and its descendant subprocesses.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The WorkflowRuntime used to load process data.
processInstance
ProcessInstance
The ProcessInstance to display as the root of the generated state.

Returns

Type
Description
Task<ProcessTreeDisplayedState>
A Task<TResult> whose result is a ProcessTreeDisplayedState rooted at processInstance.

Remarks

The root state uses the values currently present in ProcessInstance.ProcessParameters. Descendant process instances and their parameters are loaded through runtime.

Remarks

Application code should not use this type because it is intended for Workflow Engine infrastructure and may change in future versions.