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
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
stringName of the flow.
userId
Guid?The user identifier.
userName
stringName of the user.
controlName
stringName of the control.
remark
stringThe remark.
extraProperties
Dictionary<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
flowName
stringName of the flow.
workSectionName
stringName of the work section.
workStationName
stringName of the work station.
userId
Guid?The user identifier.
userName
stringName of the user.
controlName
stringName of the control.
remark
stringThe remark.
extraProperties
Dictionary<string, object>The extra properties.
Returns
SaveFlowInstanceLogAsync(FlowInstanceLogModel)
异步保存流程实例日志。
Task SaveFlowInstanceLogAsync(FlowInstanceLogModel flowInstanceLogModel)
Parameters
flowInstanceLogModel
FlowInstanceLogModel包含流程实例日志数据的模型。
Returns
- Task
表示异步操作的任务。