Interface IWorkflowLogger
This class is responsible to manage the workflow logs. It provides addition and get operation methods.
Namespace: DotNetNuke.Entities.Content.Workflow
Assembly: DotNetNuke.dll
Syntax
public interface IWorkflowLogger
Methods
| Improve this Doc View SourceAddWorkflowLog(Int32, Int32, WorkflowLogType, String, Int32)
Adds a log comment regarding a specific workflow.
Declaration
void AddWorkflowLog(int contentItemId, int workflowId, WorkflowLogType type, string comment, int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | Content item Id related with the log. |
System.Int32 | workflowId | Workflow Id owner of the log. |
WorkflowLogType | type | Log Type. |
System.String | comment | Comment to be added. |
System.Int32 | userId | User Id who adds the log. |
AddWorkflowLog(Int32, Int32, String, String, Int32)
Adds a log comment regarding a specific workflow.
Declaration
void AddWorkflowLog(int contentItemId, int workflowId, string action, string comment, int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | Content item Id related with the log. |
System.Int32 | workflowId | Workflow Id owner of the log. |
System.String | action | Custom action related with the log. |
System.String | comment | Comment to be added. |
System.Int32 | userId | User Id who adds the log. |
GetWorkflowLogs(Int32, Int32)
Gets all logs regarding a specific workflow.
Declaration
IEnumerable<WorkflowLog> GetWorkflowLogs(int contentItemId, int workflowId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | Content item Id related with the logs. |
System.Int32 | workflowId | Workflow Id owner of logs. |
Returns
Type | Description |
---|---|
IEnumerable<WorkflowLog> | A sequence of WorkflowLog instances. |