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
GetFlowProcessorsAsync(string)
Gets the flow processors asynchronous.
Task<List<FlowProcessor>> GetFlowProcessorsAsync(string procName = null)
Parameters
procName
stringName of the proc.
Returns
GetFlowStateAsync(int)
Gets the flow state asynchronous.
Task<int> GetFlowStateAsync(int flowType)
Parameters
flowType
intType of the flow.
Returns
GetFlowStateAsync(string)
Gets the flow state asynchronous.
Task<int> GetFlowStateAsync(string procName)
Parameters
procName
stringName of the proc.
Returns
GetProcessflowAsync(string)
Asynchronously retrieves a flow instance based on the provided process name.
Task<BusinessProcessflow> GetProcessflowAsync(string procName)
Parameters
procName
stringThe 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
stringName of the proc.
flowProcessors
List<FlowProcessor>
Returns
RunAsync(string, int)
Runs the asynchronous.
Task RunAsync(string procId, int taskId)
Parameters
Returns
RunAsync(string, int, string)
Runs the asynchronous.
Task RunAsync(string procId, int taskId, string userChoice)
Parameters
procId
stringThe proc identifier.
taskId
intThe task identifier.
userChoice
stringThe user choice.
Returns
StartAsync(FlowProcessor, FlowInstance)
Starts the asynchronous.
Task StartAsync(FlowProcessor flow, FlowInstance flowInstance = null)
Parameters
flow
FlowProcessorThe flow.
flowInstance
FlowInstanceThe flow instance.
Returns
StartAsync(List<FlowProcessor>)
Starts the asynchronous.
Task StartAsync(List<FlowProcessor> flows)
Parameters
flows
List<FlowProcessor>The flows.