Set up
This commit is contained in:
@@ -258,17 +258,16 @@ func (d *Workflow) extractResourcePlantUML(line string, resource resources.Resou
|
|||||||
resource.SetName(splitted[1])
|
resource.SetName(splitted[1])
|
||||||
|
|
||||||
splittedComments := strings.Split(line, "'")
|
splittedComments := strings.Split(line, "'")
|
||||||
if len(splittedComments) <= 1 {
|
if len(splittedComments) > 1 {
|
||||||
return "", nil, errors.New("Can't deserialize Object, there's no commentary")
|
comment := strings.ReplaceAll(splittedComments[1], "'", "") // for now it's a json.
|
||||||
}
|
instance := d.getNewInstance(dataName, splitted[1], peerID)
|
||||||
comment := strings.ReplaceAll(splittedComments[1], "'", "") // for now it's a json.
|
if instance == nil {
|
||||||
instance := d.getNewInstance(dataName, splitted[1], peerID)
|
return "", nil, errors.New("No instance found.")
|
||||||
if instance == nil {
|
}
|
||||||
return "", nil, errors.New("No instance found.")
|
resource.AddInstances(instance)
|
||||||
}
|
|
||||||
resource.AddInstances(instance)
|
|
||||||
|
|
||||||
json.Unmarshal([]byte(comment), instance)
|
json.Unmarshal([]byte(comment), instance)
|
||||||
|
}
|
||||||
// deserializer les instances... une instance doit par défaut avoir certaines valeurs d'accès.
|
// deserializer les instances... une instance doit par défaut avoir certaines valeurs d'accès.
|
||||||
graphID := uuid.New()
|
graphID := uuid.New()
|
||||||
graphItem := &graph.GraphItem{
|
graphItem := &graph.GraphItem{
|
||||||
|
|||||||
Reference in New Issue
Block a user