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
procNamestring
Returns
GetFlowProcessorsAsync(string)
Gets the flow processors asynchronous.
Task<List<FlowProcessor>> GetFlowProcessorsAsync(string procName = null)
Parameters
procNamestringName of the proc.
Returns
GetFlowStateAsync(int)
Gets the flow state asynchronous.
Task<int> GetFlowStateAsync(int flowType)
Parameters
flowTypeintType of the flow.
Returns
GetFlowStateAsync(string)
Gets the flow state asynchronous.
Task<int> GetFlowStateAsync(string procName)
Parameters
procNamestringName of the proc.
Returns
GetProcessflowAsync(string)
Asynchronously retrieves a flow instance based on the provided process name.
Task<BusinessProcessflow> GetProcessflowAsync(string procName)
Parameters
procNamestringThe 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
procNamestringName of the proc.
flowProcessorsList<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
procIdstringThe proc identifier.
taskIdintThe task identifier.
userChoicestringThe user choice.
Returns
StartAsync(FlowProcessor, FlowInstance)
Starts the asynchronous.
Task StartAsync(FlowProcessor flow, FlowInstance flowInstance = null)
Parameters
flowFlowProcessorThe flow.
flowInstanceFlowInstanceThe flow instance.
Returns
StartAsync(List<FlowProcessor>)
Starts the asynchronous.
Task StartAsync(List<FlowProcessor> flows)
Parameters
flowsList<FlowProcessor>The flows.