< Summary

Information
Class: Elsa.Workflows.Models.CreateBookmarkArgs
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/CreateBookmarkArgs.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 47
Line coverage: 100%
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_BookmarkId()100%11100%
get_Stimulus()100%11100%
get_Callback()100%11100%
get_BookmarkName()100%11100%
get_AutoBurn()100%11100%
get_IncludeActivityInstanceId()100%11100%
get_AutoComplete()100%11100%
get_Metadata()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/CreateBookmarkArgs.cs

#LineLine coverage
 1namespace Elsa.Workflows.Models;
 2
 3/// <summary>
 4/// Provides bookmark creation options.
 5/// </summary>
 6public class CreateBookmarkArgs
 7{
 8    /// <summary>
 9    /// A custom ID value to use instead of generating a new one.
 10    /// </summary>
 6211    public string? BookmarkId { get; set; }
 12
 13    /// <summary>
 14    /// An optional stimulus to associate with the bookmark.
 15    /// </summary>
 12116    public object? Stimulus { get; set; }
 17
 18    /// <summary>
 19    /// An optional callback to invoke when the bookmark is triggered.
 20    /// </summary>
 11521    public ExecuteActivityDelegate? Callback { get; set; }
 22
 23    /// <summary>
 24    /// An optional name to associate with the bookmark.
 25    /// </summary>
 9726    public string? BookmarkName { get; set; }
 27
 28    /// <summary>
 29    /// Whether the bookmark should be automatically burned when triggered.
 30    /// </summary>
 12831    public bool AutoBurn { get; set; } = true;
 32
 33    /// <summary>
 34    /// Whether the activity instance ID should be included in the bookmark payload.
 35    /// </summary>
 8636    public bool IncludeActivityInstanceId { get; set; }
 37
 38    /// <summary>
 39    /// Whether the activity being resumed should be automatically completed if CallBack is not specified.
 40    /// </summary>
 12441    public bool AutoComplete { get; set; } = true;
 42
 43    /// <summary>
 44    /// An optional dictionary of metadata to associate with the bookmark.
 45    /// </summary>
 7446    public IDictionary<string, string>? Metadata { get; set; }
 47}