summaryrefslogtreecommitdiff
path: root/src/marlin.core/models/meta/AbstractStep.cs
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2026-09-13 13:22:20 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2026-09-13 13:22:20 +1000
commitdf0737e55afeb5c01eb39909605970d1d3a73ffc (patch)
tree09823eaa310c60eefd2420dc305acae45c81900f /src/marlin.core/models/meta/AbstractStep.cs
parentee69ce25b2fba871920260028bb10c2d6b62b26f (diff)
refactor: cleanup; feat: connection to agent
Diffstat (limited to 'src/marlin.core/models/meta/AbstractStep.cs')
-rw-r--r--src/marlin.core/models/meta/AbstractStep.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/marlin.core/models/meta/AbstractStep.cs b/src/marlin.core/models/meta/AbstractStep.cs
new file mode 100644
index 0000000..7d10643
--- /dev/null
+++ b/src/marlin.core/models/meta/AbstractStep.cs
@@ -0,0 +1,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);
+}