Class FlowInstance
- Namespace
- CMS.Plugin.FlowManagement.Abstractions.FlowInstances
- Assembly
- CMS.Plugin.FlowManagement.Abstractions.dll
流程实例
public class FlowInstance
- Inheritance
-
FlowInstance
- Inherited Members
Constructors
FlowInstance()
Initializes a new instance of the FlowInstance class.
protected FlowInstance()
FlowInstance(string, CancellationTokenSource)
Initializes a new instance of the FlowInstance class.
public FlowInstance(string procID, CancellationTokenSource cts = null)
Parameters
procID
stringThe proc identifier.
cts
CancellationTokenSource
Properties
CancellationTokenSource
实例取消令牌源
public CancellationTokenSource CancellationTokenSource { get; }
Property Value
CurrentActi
当前步骤
public string CurrentActi { get; set; }
Property Value
ElapsedMilliseconds
耗时
public long? ElapsedMilliseconds { get; set; }
Property Value
- long?
EndTime
结束时间
public DateTime? EndTime { get; set; }
Property Value
ExtAttributes
扩展属性
public List<ExtAttribute> ExtAttributes { get; set; }
Property Value
FlowItemNewSeq
新工作项序列
public int FlowItemNewSeq { get; set; }
Property Value
FlowItemNewTask
新工作项ID
public int? FlowItemNewTask { get; set; }
Property Value
- int?
FlowItems
工作项
public List<FlowItem> FlowItems { get; set; }
Property Value
FlowName
流程名称
public string FlowName { get; set; }
Property Value
FlowTag
流程实例状态
public ProcessflowStatus FlowTag { get; set; }
Property Value
- ProcessflowStatus
Id
唯一标识
public long Id { get; set; }
Property Value
LastUpdateTime
最后活动时间
public DateTime? LastUpdateTime { get; set; }
Property Value
ProcID
过程ID
public string ProcID { get; set; }
Property Value
ProcName
过程名称
public string ProcName { get; set; }
Property Value
ProcessflowID
流程ID
public int? ProcessflowID { get; set; }
Property Value
- int?
ProcessflowVersion
流程版本
public int? ProcessflowVersion { get; set; }
Property Value
- int?
StartTime
开始时间
public DateTime StartTime { get; set; }
Property Value
Stopwatch
Gets or sets the stopwatch.
public Stopwatch Stopwatch { get; set; }
Property Value
TraceId
追溯Id
public string TraceId { get; set; }
Property Value
WarnLevel
警告级别
public LogLevel WarnLevel { get; set; }
Property Value
WarnMsg
警告消息
public string WarnMsg { get; set; }
Property Value
Methods
AddExtAttribute(int, string, object, bool)
Adds the ext attribute.
public void AddExtAttribute(int taskId, string key, object value, bool removeOnFinished = false)
Parameters
taskId
intThe task identifier.
key
stringThe key.
value
objectThe value.
removeOnFinished
boolif set to
true
[remove on finished].
AddFlowItems(FlowItem)
Adds a new FlowItem to the FlowItems list of the current FlowInstance.
public void AddFlowItems(FlowItem flowItem)
Parameters
GetTraceId()
Gets the trace identifier.
public Guid GetTraceId()