Feat v0.3.0 workflow schema (#14)
All checks were successful
All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #14.
This commit is contained in:
@@ -50,10 +50,11 @@ func workflowGetDef(ctx context.Context, stores store.Stores) func(*starlark.Thr
|
||||
d.SetKey(starlark.String("name"), starlark.String(s.Name))
|
||||
d.SetKey(starlark.String("ordinal"), starlark.MakeInt(s.Ordinal))
|
||||
d.SetKey(starlark.String("stage_mode"), starlark.String(s.StageMode))
|
||||
d.SetKey(starlark.String("history_mode"), starlark.String(s.HistoryMode))
|
||||
d.SetKey(starlark.String("audience"), starlark.String(s.Audience))
|
||||
d.SetKey(starlark.String("stage_type"), starlark.String(s.StageType))
|
||||
d.SetKey(starlark.String("auto_transition"), starlark.Bool(s.AutoTransition))
|
||||
if s.PersonaID != nil {
|
||||
d.SetKey(starlark.String("persona_id"), starlark.String(*s.PersonaID))
|
||||
if s.StarlarkHook != nil {
|
||||
d.SetKey(starlark.String("starlark_hook"), starlark.String(*s.StarlarkHook))
|
||||
}
|
||||
if s.AssignmentTeamID != nil {
|
||||
d.SetKey(starlark.String("assignment_team_id"), starlark.String(*s.AssignmentTeamID))
|
||||
|
||||
Reference in New Issue
Block a user