using System.Text.Json.Nodes;
namespace XFEWorkflow.Abstractions;
public enum WorkflowDebugCommandKind { Continue, StepOver, StepInto, Pause, SetBreakpoint }
public sealed class WorkflowDebugSettings
{
public bool BreakOnEntry { get; set; }
}
public sealed class WorkflowDebugCommand
{
public WorkflowDebugCommandKind Kind { get; set; }
public string PauseId { get; set; } = "";
public string WorkflowId { get; set; } = "";
public string NodeId { get; set; } = "";
public bool Enabled { get; set; }
}
public sealed class WorkflowDebugState
{
public bool IsPaused { get; set; }
public string PauseId { get; set; } = "";
public string WorkflowId { get; set; } = "";
public string NodeId { get; set; } = "";
public string NodeName { get; set; } = "";
public int Depth { get; set; }
public string Reason { get; set; } = "";
public JsonObject Inputs { get; set; } = [];
public JsonObject Parameters { get; set; } = [];
public JsonObject Variables { get; set; } = [];
public JsonObject NodeOutputs { get; set; } = [];
public bool Truncated { get; set; }
}
using System.Text.Json.Nodes;
namespace XFEWorkflow.Abstractions;
public enum WorkflowDebugCommandKind { Continue, StepOver, StepInto, Pause, SetBreakpoint }
public sealed class WorkflowDebugSettings
{
public bool BreakOnEntry { get; set; }
}
public sealed class WorkflowDebugCommand
{
public WorkflowDebugCommandKind Kind { get; set; }
public string PauseId { get; set; } = "";
public string WorkflowId { get; set; } = "";
public string NodeId { get; set; } = "";
public bool Enabled { get; set; }
}
public sealed class WorkflowDebugState
{
public bool IsPaused { get; set; }
public string PauseId { get; set; } = "";
public string WorkflowId { get; set; } = "";
public string NodeId { get; set; } = "";
public string NodeName { get; set; } = "";
public int Depth { get; set; }
public string Reason { get; set; } = "";
public JsonObject Inputs { get; set; } = [];
public JsonObject Parameters { get; set; } = [];
public JsonObject Variables { get; set; } = [];
public JsonObject NodeOutputs { get; set; } = [];
public bool Truncated { get; set; }
}