using Elsa.Workflows.Runtime.Messages; namespace Elsa.Workflows.Runtime; /// /// Represents the result of resuming a bookmark. /// /// Whether the bookmark was matched. /// The response from running the workflow instance. This is only set if the bookmark was matched. public record ResumeBookmarkResult(bool Matched, RunWorkflowInstanceResponse? Response = null) { /// /// Represents the result of resuming a bookmark when the bookmark was not found. /// public static ResumeBookmarkResult NotFound() => new(false); /// /// Represents the result of resuming a bookmark when the bookmark was not found. /// public static ResumeBookmarkResult Found(RunWorkflowInstanceResponse response) => new(true, response); }