From c083ce748cb2cff74225c8ace0deb5375ba8b751 Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 4 Oct 2024 10:42:30 +0200 Subject: [PATCH] add workflow func tools --- models/workflow/workflow.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)