items
This commit is contained in:
@@ -277,11 +277,17 @@ func (d *Workflow) extractResourcePlantUML(line string, resource resources.Resou
|
|||||||
}
|
}
|
||||||
graphItem = d.getNewGraphItem(dataName, graphItem, resource)
|
graphItem = d.getNewGraphItem(dataName, graphItem, resource)
|
||||||
|
|
||||||
|
if graphItem != nil {
|
||||||
d.Graph.Items[graphID.String()] = *graphItem
|
d.Graph.Items[graphID.String()] = *graphItem
|
||||||
|
}
|
||||||
|
|
||||||
return varName, graphItem, nil
|
return varName, graphItem, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Workflow) getNewGraphItem(dataName string, graphItem *graph.GraphItem, resource resources.ResourceInterface) *graph.GraphItem {
|
func (d *Workflow) getNewGraphItem(dataName string, graphItem *graph.GraphItem, resource resources.ResourceInterface) *graph.GraphItem {
|
||||||
|
if resource == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
switch dataName {
|
switch dataName {
|
||||||
case "Data":
|
case "Data":
|
||||||
d.Datas = append(d.Datas, resource.GetID())
|
d.Datas = append(d.Datas, resource.GetID())
|
||||||
|
|||||||
Reference in New Issue
Block a user