Table of Contents

Interface IFlowLogManager

Namespace
CMS.Plugin.FlowManagement.Abstractions
Assembly
CMS.Plugin.FlowManagement.Abstractions.dll

流程日志管理器

public interface IFlowLogManager

Methods

ArchiveAsync(CancellationToken)

归档所有未保存的日志

Task ArchiveAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task

CleanupFlowInstanceLogsAsync(int, CancellationToken)

清理指定天数前的日志

Task CleanupFlowInstanceLogsAsync(int daysAgo = 7, CancellationToken cancellationToken = default)

Parameters

daysAgo int

多少天前的表,例如 7 表示删除7天前的表。

cancellationToken CancellationToken

取消令牌

Returns

Task

删除的记录数

InsertFlowLogAsync(string, Guid?, string, string, string, Dictionary<string, object>)

Inserts the flow log asynchronous.

Task InsertFlowLogAsync(string flowName, Guid? userId, string userName, string controlName, string remark, Dictionary<string, object> extraProperties = null)

Parameters

flowName string

Name of the flow.

userId Guid?

The user identifier.

userName string

Name of the user.

controlName string

Name of the control.

remark string

The remark.

extraProperties Dictionary<string, object>

The extra properties.

Returns

Task

InsertFlowLogAsync(string, string, string, Guid?, string, string, string, Dictionary<string, object>)

Inserts the flow log asynchronous.

Task InsertFlowLogAsync(string flowName, string workSectionName, string workStationName, Guid? userId, string userName, string controlName, string remark, Dictionary<string, object> extraProperties = null)

Parameters

flowName string

Name of the flow.

workSectionName string

Name of the work section.

workStationName string

Name of the work station.

userId Guid?

The user identifier.

userName string

Name of the user.

controlName string

Name of the control.

remark string

The remark.

extraProperties Dictionary<string, object>

The extra properties.

Returns

Task

SaveFlowInstanceLogAsync(FlowInstanceLogModel)

异步保存流程实例日志。

Task SaveFlowInstanceLogAsync(FlowInstanceLogModel flowInstanceLogModel)

Parameters

flowInstanceLogModel FlowInstanceLogModel

包含流程实例日志数据的模型。

Returns

Task

表示异步操作的任务。