This commit is contained in:
mr
2026-03-17 13:29:54 +01:00
parent 088b45b2cf
commit f7012e285f

View File

@@ -147,6 +147,7 @@ func (d *Workflow) ExtractFromPlantUML(plantUML multipart.File, request *tools.A
if strings.Contains(line, n+"(") && !strings.Contains(line, "!procedure") { // should exclude declaration of type. if strings.Contains(line, n+"(") && !strings.Contains(line, "!procedure") { // should exclude declaration of type.
newRes := new() newRes := new()
varName, graphItem, err := d.extractResourcePlantUML(line, newRes, n, request.PeerID) varName, graphItem, err := d.extractResourcePlantUML(line, newRes, n, request.PeerID)
fmt.Println(varName, graphItem, err)
if err != nil { if err != nil {
return d, err return d, err
} }
@@ -251,6 +252,7 @@ func (d *Workflow) extractResourcePlantUML(line string, resource resources.Resou
varName := splittedParams[0] varName := splittedParams[0]
splitted := strings.Split(splittedParams[1], "\"") splitted := strings.Split(splittedParams[1], "\"")
fmt.Println(varName, splitted)
if len(splitted) <= 1 { if len(splitted) <= 1 {
return "", nil, errors.New("Can't deserialize Object, there's no name") return "", nil, errors.New("Can't deserialize Object, there's no name")