Table of Contents

Interface IFlowInstanceService

Namespace
CMS.Plugin.FlowManagement.Abstractions
Assembly
CMS.Plugin.FlowManagement.Abstractions.dll

流程实例服务

public interface IFlowInstanceService

Methods

CancelAsync(string)

Cancels the asynchronous.

Task CancelAsync(string procName = null)

Parameters

procName string

Returns

Task

GetFlowProcessorsAsync(string)

Gets the flow processors asynchronous.

Task<List<FlowProcessor>> GetFlowProcessorsAsync(string procName = null)

Parameters

procName string

Name of the proc.

Returns

Task<List<FlowProcessor>>

GetFlowStateAsync(int)

Gets the flow state asynchronous.

Task<int> GetFlowStateAsync(int flowType)

Parameters

flowType int

Type of the flow.

Returns

Task<int>

GetFlowStateAsync(string)

Gets the flow state asynchronous.

Task<int> GetFlowStateAsync(string procName)

Parameters

procName string

Name of the proc.

Returns

Task<int>

GetProcessflowAsync(string)

Asynchronously retrieves a flow instance based on the provided process name.

Task<BusinessProcessflow> GetProcessflowAsync(string procName)

Parameters

procName string

The name of the process to retrieve the flow instance for.

Returns

Task<BusinessProcessflow>

A task that represents the asynchronous operation. The task result contains the flow instance if found, otherwise null or an exception is thrown.

ResetAsync(string, List<FlowProcessor>)

Resets the asynchronous.

Task ResetAsync(string procName = null, List<FlowProcessor> flowProcessors = null)

Parameters

procName string

Name of the proc.

flowProcessors List<FlowProcessor>

Returns

Task

RunAsync(string, int)

Runs the asynchronous.

Task RunAsync(string procId, int taskId)

Parameters

procId string

The proc identifier.

taskId int

The task identifier.

Returns

Task

RunAsync(string, int, string)

Runs the asynchronous.

Task RunAsync(string procId, int taskId, string userChoice)

Parameters

procId string

The proc identifier.

taskId int

The task identifier.

userChoice string

The user choice.

Returns

Task

StartAsync(FlowProcessor, FlowInstance)

Starts the asynchronous.

Task StartAsync(FlowProcessor flow, FlowInstance flowInstance = null)

Parameters

flow FlowProcessor

The flow.

flowInstance FlowInstance

The flow instance.

Returns

Task

StartAsync(List<FlowProcessor>)

Starts the asynchronous.

Task StartAsync(List<FlowProcessor> flows)

Parameters

flows List<FlowProcessor>

The flows.

Returns

Task