summaryrefslogtreecommitdiff
path: root/src/marlin.core/models/meta/AbstractStep.cs
blob: 7d106431118a77f12a949d8912ba62771d80ff1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespace marlin.core.models.meta;

public abstract class AbstractStep
{
    protected AbstractStep(string id)
    {
        this.Id = id;
    }

    public string Id { get; }
    public string? Name { get; set; } = null;
    public string? Run { get; set; } = null;
    public Dictionary<string, string> With { get; set; } = new();
    public FailBehavior? Fail { get; set; } = null;
    public abstract IEnumerable<AbstractStep> GetAncestorsAndThis(Workflow workflow);
}