Remove workflow
Some checks failed
Build & Deploy / build-and-deploy (push) Has been cancelled
.NET / build (push) Has been cancelled

This commit is contained in:
2025-08-16 01:33:15 +07:00
parent ae4d5b8abe
commit 9841219e8b
31 changed files with 4 additions and 1585 deletions

View File

@@ -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();
}

View File

@@ -1,7 +0,0 @@
namespace Managing.Domain.Workflows;
public class FlowParameter
{
public dynamic Value { get; set; }
public string Name { get; set; }
}

View File

@@ -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);
}

View File

@@ -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; }
}

View File

@@ -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; }
}

View File

@@ -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; }
}

View File

@@ -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);
}
}
}