Files
Sharp8N-Runtime/s8n-runtime/WorkflowRuntimeNodeBase.cs

28 lines
681 B
C#
Raw Normal View History

2025-12-24 21:26:35 +03:00
namespace s8n_runtime;
public abstract class WorkflowRuntimeNodeBase : IWorkflowRuntimeNode
{
private RuntimeStatus status;
private Dictionary<string, object?>? state;
public required string Id { get; set; }
public RuntimeStatus Status
{
get => status;
set
{
status = value;
WorkflowEditApiChannel.LogServerChannel?.Writer.TryWrite(new(Id, "Status", value));
}
}
public Dictionary<string, object?>? State
{
get => state;
set
{
state = value;
WorkflowEditApiChannel.LogServerChannel?.Writer.TryWrite(new(Id, "State", value));
}
}
}