graphVarName
This commit is contained in:
@@ -192,6 +192,7 @@ func (d *Workflow) ExtractFromPlantUML(plantUML multipart.File, request *tools.A
|
||||
d.generateResource(d.GetResources(tools.STORAGE_RESOURCE), request)
|
||||
d.generateResource(d.GetResources(tools.COMPUTE_RESOURCE), request)
|
||||
d.generateResource(d.GetResources(tools.WORKFLOW_RESOURCE), request)
|
||||
fmt.Println("graphVarName", graphVarName)
|
||||
d.Graph.Items = graphVarName
|
||||
return d, nil
|
||||
}
|
||||
@@ -200,6 +201,7 @@ func (d *Workflow) generateResource(datas []resources.ResourceInterface, request
|
||||
for _, d := range datas {
|
||||
access := d.GetAccessor(request)
|
||||
if _, code, err := access.LoadOne(d.GetID()); err != nil && code == 200 {
|
||||
fmt.Println(err)
|
||||
continue
|
||||
}
|
||||
access.StoreOne(d)
|
||||
|
||||
Reference in New Issue
Block a user