diff --git a/models/workflow/workflow.go b/models/workflow/workflow.go index f5359e3..078296d 100644 --- a/models/workflow/workflow.go +++ b/models/workflow/workflow.go @@ -26,7 +26,7 @@ type AbstractWorkflow struct { Shared []string `json:"shared,omitempty" bson:"shared,omitempty"` // Shared is the ID of the shared workflow } -func (w *AbstractWorkflow) getWorkflows() (list_computings []graph.GraphItem) { +func (w *AbstractWorkflow) GetWorkflows() (list_computings []graph.GraphItem) { for _, item := range w.Graph.Items { if item.Workflow != nil { list_computings = append(list_computings, item) @@ -102,7 +102,7 @@ func (w *AbstractWorkflow) GetDatasByRelatedProcessing(dataID string, relatedToS return datas, datasRelatedToData } -func (w *AbstractWorkflow) getProcessings() (list_computings []graph.GraphItem) { +func (w *AbstractWorkflow) GetProcessings() (list_computings []graph.GraphItem) { for _, item := range w.Graph.Items { if item.Processing != nil { list_computings = append(list_computings, item)