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
cancellationTokenCancellationToken
Returns
CleanupFlowInstanceLogsAsync(int, CancellationToken)
清理指定天数前的日志
Task CleanupFlowInstanceLogsAsync(int daysAgo = 7, CancellationToken cancellationToken = default)
Parameters
daysAgoint多少天前的表,例如 7 表示删除7天前的表。
cancellationTokenCancellationToken取消令牌
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
flowNamestringName of the flow.
userIdGuid?The user identifier.
userNamestringName of the user.
controlNamestringName of the control.
remarkstringThe remark.
extraPropertiesDictionary<string, object>The extra properties.
Returns
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
flowNamestringName of the flow.
workSectionNamestringName of the work section.
workStationNamestringName of the work station.
userIdGuid?The user identifier.
userNamestringName of the user.
controlNamestringName of the control.
remarkstringThe remark.
extraPropertiesDictionary<string, object>The extra properties.
Returns
SaveFlowInstanceLogAsync(FlowInstanceLogModel)
异步保存流程实例日志。
Task SaveFlowInstanceLogAsync(FlowInstanceLogModel flowInstanceLogModel)
Parameters
flowInstanceLogModelFlowInstanceLogModel包含流程实例日志数据的模型。
Returns
- Task
表示异步操作的任务。