Add WorkflowExecutionLogStore implementation and migrations

Introduced a new `WorkflowExecutionLogStore` to handle workflow execution log persistence. Added necessary extensions, indexes, migrations, and updated the startup configuration to register the new store and index provider. This enables querying, saving, and managing workflow execution logs in the OrchardCore project.
This commit is contained in:
Sipke Schoorstra 2025-02-16 20:27:07 +01:00
parent 0f747b67fd
commit dff6e14093

View file

@ -11,17 +11,17 @@ public class WorkflowExecutionLogRecord : Entity, ILogRecord
/// <summary>
/// The ID of the workflow definition.
/// </summary>
public string WorkflowDefinitionId { get; set; } = default!;
public string WorkflowDefinitionId { get; set; } = null!;
/// <summary>
/// The version ID of the workflow definition.
/// </summary>
public string WorkflowDefinitionVersionId { get; set; } = default!;
public string WorkflowDefinitionVersionId { get; set; } = null!;
/// <summary>
/// The ID of the workflow instance.
/// </summary>
public string WorkflowInstanceId { get; set; } = default!;
public string WorkflowInstanceId { get; set; } = null!;
/// <summary>
/// The version of the workflow definition.
@ -31,7 +31,7 @@ public class WorkflowExecutionLogRecord : Entity, ILogRecord
/// <summary>
/// The ID of the activity instance.
/// </summary>
public string ActivityInstanceId { get; set; } = default!;
public string ActivityInstanceId { get; set; } = null!;
/// <summary>
/// The ID of the parent activity instance.
@ -41,12 +41,12 @@ public class WorkflowExecutionLogRecord : Entity, ILogRecord
/// <summary>
/// The ID of the activity.
/// </summary>
public string ActivityId { get; set; } = default!;
public string ActivityId { get; set; } = null!;
/// <summary>
/// The type of the activity.
/// </summary>
public string ActivityType { get; set; } = default!;
public string ActivityType { get; set; } = null!;
/// <summary>
/// The version of the activity type.
@ -61,7 +61,7 @@ public class WorkflowExecutionLogRecord : Entity, ILogRecord
/// <summary>
/// The unique ID of the node within the workflow graph.
/// </summary>
public string ActivityNodeId { get; set; } = default!;
public string ActivityNodeId { get; set; } = null!;
/// <summary>
/// The time stamp of the log entry.