Properly add ids for workflow execution and add first visualization

This commit is contained in:
Achim Rohn
2026-04-04 11:31:18 +02:00
parent b5c410c419
commit 6312033fad
5 changed files with 227 additions and 20 deletions
+3 -2
View File
@@ -8,7 +8,7 @@ import (
. "git.gorlug.de/code/ersteller/workflow"
)
func CreateExampleWorkflow(client *ent.Client) {
func CreateExampleWorkflow(client *ent.Client) *Workflow {
lastStep := NewStep(&StepParams{
Name: "Last step",
Identifier: "last_step",
@@ -38,7 +38,8 @@ func CreateExampleWorkflow(client *ent.Client) {
}, lastStep, nil
},
})
NewWorkflow("Example", "example", firstStep)
w := NewWorkflow("Example", "example", firstStep, []*Step{firstStep, lastStep})
return w
}
//type name struct {