< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.WorkflowInstances.Journal.FilteredList.JournalFilter
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowInstances/Journal/FilteredList/Models.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 56
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ActivityIds()100%210%
get_ActivityNodeIds()100%210%
get_ExcludedActivityTypes()100%210%
get_EventNames()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowInstances/Journal/FilteredList/Models.cs

#LineLine coverage
 1using Elsa.Workflows.Api.Models;
 2using FastEndpoints;
 3
 4// ReSharper disable NotAccessedPositionalProperty.Global
 5
 6namespace Elsa.Workflows.Api.Endpoints.WorkflowInstances.Journal.FilteredList;
 7
 8/// <summary>
 9/// Represents a request for a page of workflow execution log records.
 10/// </summary>
 11internal class Request
 12{
 13    /// <summary>
 14    /// The ID of the workflow instance to get the execution log for.
 15    /// </summary>
 16    [BindFrom("id")] public string WorkflowInstanceId { get; set; } = default!;
 17
 18    /// <summary>
 19    /// The filter to apply.
 20    /// </summary>
 21    public JournalFilter? Filter { get; set; }
 22
 23    /// <summary>
 24    /// The zero-based page number to get.
 25    /// </summary>
 26    public int? Page { get; set; }
 27
 28    /// <summary>
 29    /// The size of the page to get.
 30    /// </summary>
 31    public int? PageSize { get; set; }
 32
 33    /// <summary>
 34    /// The number of records to skip.
 35    /// </summary>
 36    public int? Skip { get; set; }
 37
 38    /// <summary>
 39    /// The number of records to take.
 40    /// </summary>
 41    public int? Take { get; set; }
 42}
 43
 44internal class JournalFilter
 45{
 046    public ICollection<string>? ActivityIds { get; set; }
 047    public ICollection<string>? ActivityNodeIds { get; set; }
 048    public ICollection<string>? ExcludedActivityTypes { get; set; }
 049    public ICollection<string>? EventNames { get; set; }
 50}
 51
 52internal class Response(ICollection<ExecutionLogRecord> items, long totalCount)
 53{
 54    public ICollection<ExecutionLogRecord> Items { get; } = items;
 55    public long TotalCount { get; } = totalCount;
 56}