添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MW.WorkFlow
|
||||
{
|
||||
public enum WorkflowState
|
||||
{
|
||||
Created, // 工作流刚创建
|
||||
Running, // 工作流正在运行
|
||||
Paused, // 工作流已暂停
|
||||
Stopped, // 工作流已停止
|
||||
Completed, // 工作流已完成
|
||||
Canceled, // 工作流已取消
|
||||
Faulted // 工作流执行时发生异常
|
||||
}
|
||||
|
||||
public class WorkflowExecutionPointer
|
||||
{
|
||||
public string WorkflowName { get; set; }
|
||||
public string FlowName { get; set; }
|
||||
public string ActivityName { get; set; }
|
||||
public string CurrentStepId { get; set; }
|
||||
public string NextStepId { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
|
||||
public class WorkflowFaultInfo
|
||||
{
|
||||
public string WorkflowName { get; set; }
|
||||
public string FlowName { get; set; }
|
||||
public string ActivityName { get; set; }
|
||||
public string CurrentStepId { get; set; }
|
||||
public string ErrorMessage { get; set; }
|
||||
public DateTime OccurredAt { get; set; }
|
||||
}
|
||||
|
||||
public interface IWorkflowRuntimeTracker
|
||||
{
|
||||
void UpdateExecutionPointer(WorkflowExecutionPointer executionPointer);
|
||||
void ReportWorkflowFault(WorkflowFaultInfo faultInfo);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user