# Not embed sub diagrams in a note

the subdiagram that is inside a note that is inside a label shows error

@startuml

label L_GENERAL [

{{

class REL_BIEN {

<&key> **COD_BIEN**

<&key> **FEC_TAS**

}

note bottom of REL_BIEN

** la formula siguiente permite elegir

{{

if "TIPO" then

-l-> [E] "ESTATICA"

--> "VALOR"

else

-r-> [R] "VARIABLE"

--> "VALOR"

endif

}}

end note

rectangle "CAJA" {

if "TIPO" then

-l-> [E] "ESTATICA"

--> "VALOR"

else

-r-> [R] "VARIABLE"

--> "VALOR"

endif

}

}}

]

@enduml

if sub-diagram is inside outside the label it is view without error

@startuml

class REL_BIEN {

<&key> **COD_BIEN**

<&key> **FEC_TAS**

}

note bottom of REL_BIEN

** la formula siguiente permite elegir

{{

start

if (TIPO) then (E)

:ESTATICA;

else (R)

:VARIABLE;

endif

:VALOR;

end

}}

end note

@enduml

can you help me understand what is happening, please

+1 vote
answered Feb 10 by (48,920 points)

Hello F.,

Currently, only one level of sub-diagram is allowed...

That is the reason of the error...

Then:

• What are the goal of `L_GENERAL`?

If that can help,
Regards,
Th.

commented Feb 10 by (160 points)
Yes, It the problem, only work with one level

I was trying to subdivide on label, but it's better on packages

@startuml

package P_GENERAL AS " " {

Tabla(REL_BIEN,"REL_BIEN") {

primary_key(COD_BIEN)

primary_key(FEC_TAS)

}

note bottom of REL_BIEN

* la formula siguiente permite elegir

{{

' start

if (COD_TIPO_TASACION) then (E)

else (R)

:NUM_TASACION;

endif

:VALOR;

' end

}}

end note

}

package P_GENERAL2 AS " " {
.....
}

@enduml

Thanks for all yours helps,
Regards,