28 lines
681 B
C#
28 lines
681 B
C#
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));
|
|
}
|
|
}
|
|
}
|