Properly add ids for workflow execution and add first visualization
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user