Extend for Human Readable
This commit is contained in:
@@ -58,6 +58,20 @@ type WorkflowExecution struct {
|
||||
SelectedStrategies workflow.ConfigItem `json:"selected_strategies"`
|
||||
}
|
||||
|
||||
func (ri *WorkflowExecution) Extend(typ ...string) map[string][]tools.DataType {
|
||||
ext := ri.AbstractObject.Extend(typ...)
|
||||
for _, t := range typ {
|
||||
switch t {
|
||||
case "workflow":
|
||||
if _, ok := ext[t]; !ok {
|
||||
ext[t] = []tools.DataType{}
|
||||
}
|
||||
ext[t] = append(ext[t], tools.PEER)
|
||||
}
|
||||
}
|
||||
return ext
|
||||
}
|
||||
|
||||
func (r *WorkflowExecution) StoreDraftDefault() {
|
||||
r.IsDraft = true
|
||||
r.State = enum.DRAFT
|
||||
|
||||
Reference in New Issue
Block a user