Error when mixed use of class,card and portin portout

0 votes
asked Jul 29, 2022 in Bug by xiaxia (180 points)

When I mix some elements, the program doesn't work properly. The error is shown in the link below.

http://www.plantuml.com/plantuml/umla/XPBDQiCm48JlUWhXUtBeiOGGA2tqLaYXXrAC8gqR4VqO_T12wBlNbWMBjmeDv21zCxFhiGynYP2oDUoi5N0BzWGXBeVTRfmOLp3izrpg80smUFPVQp1eC6hbQAh_A4LAGPzoWjO0IeaNNBPD6mBYq0aiKTVBbhAPZO0uf7SEPDBUDNqKqyPygsC4RKT3tUhurbO4aGPSWZ082KqZeNItYVbW-H9FpGIZcx5Ho8lu1DuzUAVqJ8NXnombn3Wl-lWjx6XWSzVnA-FJZqaZOkH72OvygbVsmohjdkqKsb7Uzm462E0anBvdEhw1CKzUvWWApIzQfXoQuI8epek1L3dn-KrensDPJCH5jYt7mdnENCzh8In733wUlK-tWj5RPCMBmUEoC-9wWU6luWBuPF_iZcAeJq064H6EgzDIOrgPLFc07HPIhoCsi5opHRZPx2kxVn-mkktg3NwmQVpyFu1JsPfV

Plantuml code:

@startuml
hide members
hide <<part def>> circle
show <<part def>> fields
hide <<part>> circle
show <<part>> fields
hide <<attribute def>> circle
show <<attribute def>> fields
hide <<enum def>> circle
show <<enum def>> fields
hide <<item>> circle
show <<item>> fields
hide <<item def>> circle
show <<item def>> fields
hide <<connection def>> circle
show <<connection def>> fields
hide <<port def>> circle
show <<port def>> fields
hide <<port>> circle
show <<port>> fields
hide <<action def>> circle
show <<action def>> fields
hide <<interface def>> circle
show <<interface def>> fields
hide <<perform action>> circle
show <<perform action>> fields


package "Conditional Succession Example-2" {
    
class Scene <<part def>> {
}
class "Image" <<part def>> {
__references__
isWellFocused
}
class Picture <<part def>> {
}
card  Focus <<action def>> {
portin scene as Focus.scene
portout image as Focus.image
}
card  Shoot <<action def>> {
portin image as Shoot.image
portout picture as Shoot.picture
}
card  TakePicture <<action def>> {
portin scene as TakePicture.scene
portout picture as TakePicture.picture
}
card  takePicture <<action>> {
card  focus <<action>>
card  shoot <<action>>
focus --> shoot :[focus.image.isWellFocused]

}
}
@enduml

Error reporting:

1 Answer

0 votes
answered Jul 29, 2022 by The-Lu (64,760 points)

Hello X.,

See [your] similar request here:

Here is a minimal defect example:

@startuml
allowmixing

class c
card ca {
  portin pi
  portout po
}
@enduml

Perhaps and to confirm to corrected by:

Could you test with the last snapshot?

If that can help,
Regards.

...