Table of Contents

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 string

The proc identifier.

cts CancellationTokenSource

Properties

CancellationTokenSource

实例取消令牌源

public CancellationTokenSource CancellationTokenSource { get; }

Property Value

CancellationTokenSource

CurrentActi

当前步骤

public string CurrentActi { get; set; }

Property Value

string

ElapsedMilliseconds

耗时

public long? ElapsedMilliseconds { get; set; }

Property Value

long?

EndTime

结束时间

public DateTime? EndTime { get; set; }

Property Value

DateTime?

ExtAttributes

扩展属性

public List<ExtAttribute> ExtAttributes { get; set; }

Property Value

List<ExtAttribute>

FlowItemNewSeq

新工作项序列

public int FlowItemNewSeq { get; set; }

Property Value

int

FlowItemNewTask

新工作项ID

public int? FlowItemNewTask { get; set; }

Property Value

int?

FlowItems

工作项

public List<FlowItem> FlowItems { get; set; }

Property Value

List<FlowItem>

FlowName

流程名称

public string FlowName { get; set; }

Property Value

string

FlowTag

流程实例状态

public ProcessflowStatus FlowTag { get; set; }

Property Value

ProcessflowStatus

Id

唯一标识

public long Id { get; set; }

Property Value

long

LastUpdateTime

最后活动时间

public DateTime? LastUpdateTime { get; set; }

Property Value

DateTime?

ProcID

过程ID

public string ProcID { get; set; }

Property Value

string

ProcName

过程名称

public string ProcName { get; set; }

Property Value

string

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

DateTime

Stopwatch

Gets or sets the stopwatch.

public Stopwatch Stopwatch { get; set; }

Property Value

Stopwatch

TraceId

追溯Id

public string TraceId { get; set; }

Property Value

string

WarnLevel

警告级别

public LogLevel WarnLevel { get; set; }

Property Value

LogLevel

WarnMsg

警告消息

public string WarnMsg { get; set; }

Property Value

string

Methods

AddExtAttribute(int, string, object, bool)

Adds the ext attribute.

public void AddExtAttribute(int taskId, string key, object value, bool removeOnFinished = false)

Parameters

taskId int

The task identifier.

key string

The key.

value object

The value.

removeOnFinished bool

if 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

flowItem FlowItem

The FlowItem to add to the FlowItems collection.

GetTraceId()

Gets the trace identifier.

public Guid GetTraceId()

Returns

Guid