diff --git a/models/workflow/workflow.go b/models/workflow/workflow.go index 49f99ad..880d720 100644 --- a/models/workflow/workflow.go +++ b/models/workflow/workflow.go @@ -227,6 +227,10 @@ func (wf *Workflow) Planify(start time.Time, end *time.Time, request *tools.APIR return longest, priceds, wf, nil } +// Returns a map of DataType (processing,computing,data,storage,worfklow) where each resource (identified by its UUID) +// is mapped to the list of its items (different appearance) in the graph +// ex: if the same Minio storage is represented by several nodes in the graph, in [tools.STORAGE_RESSOURCE] its UUID will be mapped to +// the list of GraphItem ID that correspond to the ID of each node func (w *Workflow) GetItemsByResources() (map[tools.DataType]map[string][]string) { res := make(map[tools.DataType]map[string][]string) dtMethodMap := map[tools.DataType]func() []graph.GraphItem{