initial copy
This commit is contained in:
27
s8n-runtime/WorkflowRuntimeNodeBase.cs
Normal file
27
s8n-runtime/WorkflowRuntimeNodeBase.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user