添加 MX-PD-盘古 项目文件

将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
Shi.Ji
2026-05-18 11:43:09 +08:00
parent 03632a379d
commit e31d3560bb
739 changed files with 99783 additions and 0 deletions

View File

@@ -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);
}
}