Remove workflow
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Domain.Workflows;
|
||||
|
||||
public abstract class FlowBase : IFlow
|
||||
{
|
||||
public abstract Guid Id { get; }
|
||||
public abstract string Name { get; }
|
||||
public abstract FlowType Type { get; }
|
||||
public abstract string Description { get; }
|
||||
public abstract List<FlowOutput> AcceptedInputs { get; }
|
||||
public abstract List<IFlow> Children { get; set; }
|
||||
public abstract List<FlowParameter> Parameters { get; set; }
|
||||
public abstract Guid ParentId { get; }
|
||||
public abstract string Output { get; set; }
|
||||
public abstract List<FlowOutput> OutputTypes { get; }
|
||||
public abstract Task Execute(string input);
|
||||
public abstract void MapParameters();
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace Managing.Domain.Workflows;
|
||||
|
||||
public class FlowParameter
|
||||
{
|
||||
public dynamic Value { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Domain.Workflows;
|
||||
|
||||
public interface IFlow
|
||||
{
|
||||
[Required]
|
||||
Guid Id { get; }
|
||||
[Required]
|
||||
string Name { get; }
|
||||
[Required]
|
||||
FlowType Type { get; }
|
||||
[Required]
|
||||
string Description { get; }
|
||||
[Required]
|
||||
List<FlowOutput> AcceptedInputs { get; }
|
||||
List<IFlow> Children { get; set; }
|
||||
[Required]
|
||||
List<FlowParameter> Parameters { get; set; }
|
||||
Guid ParentId { get; }
|
||||
string Output { get; set; }
|
||||
[Required]
|
||||
List<FlowOutput> OutputTypes { get; }
|
||||
Task Execute(string input);
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Domain.Workflows.Synthetics;
|
||||
|
||||
public class SyntheticFlow
|
||||
{
|
||||
[Required]
|
||||
public string Id { get; set; }
|
||||
public string ParentId { get; set; }
|
||||
[Required]
|
||||
public FlowType Type { get; set; }
|
||||
[Required]
|
||||
public List<SyntheticFlowParameter> Parameters { get; set; }
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Managing.Domain.Workflows.Synthetics;
|
||||
|
||||
public class SyntheticFlowParameter
|
||||
{
|
||||
[Required]
|
||||
public string Value { get; set; }
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Domain.Workflows.Synthetics;
|
||||
|
||||
public class SyntheticWorkflow
|
||||
{
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
[Required]
|
||||
public WorkflowUsage Usage { get; set; }
|
||||
[Required]
|
||||
public string Description { get; set; }
|
||||
[Required]
|
||||
public List<SyntheticFlow> Flows { get; set; }
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Domain.Workflows;
|
||||
|
||||
public class Workflow
|
||||
{
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
[Required]
|
||||
public WorkflowUsage Usage { get; set; }
|
||||
[Required]
|
||||
public List<IFlow> Flows { get; set; }
|
||||
[Required]
|
||||
public string Description { get; set; }
|
||||
|
||||
public async Task Execute()
|
||||
{
|
||||
foreach (var flow in Flows)
|
||||
{
|
||||
await flow.Execute(string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user