Closed rcasteran closed 2 years ago
Does it have to be displayed within diagrams also ? If this the case, i've to check if this is possible and how for each type of diagrams with plantuml (TBC).
So after having checked possibilities offered by Plantuml, see below and let me know.
@startuml
[*] --> State1
State1 --> [*]
State1 : attribute : value
@enduml
@startuml
object user
user : attribute = value
@enduml
@startuml
participant Boby [
=Boby
----
""attribute = value""
]
participant L as "Bob\nattribute = value"
Boby -> L
@enduml
@startuml
object F1
Object F2
F1 --> F2 : data [attribute = value]
@enduml
So let me know per diagram, which object's attribute you'd like displayed.
Regarding this new "Attribute" object you'd like :
You asked if it can be linked to a function / a data / an element / a state. Is it "and" between all objects ? i.e. If i have Attribute "A" can i add it to a function and a data ? Or function and state ? or all 4 ? or is it exclusive ? Can you give me the rule(s).
An attribute will only have as properties : name, type and value ? No parent nor child (i.e. derived attributes) ? For the type, does it have to be added as Enum into the datamodel ? If yes, could you provide the list ?
First priority is to have attributes on function / functional element. Nothing to be displayed on sequence diagram, but on context and decomposition diagram. I renamed the issue accordingly.
An attribute can be added to any objects, no special rules. For example an attribute "A" can be added to function and data and an attribute "B" to function and functional element.
An attribute will have as properties : name, type and value. The value of the property "value" of an attribute will vary according to the described object. In the example above, attribute "A" could have a different value for each function it describes.
No rules about the type for the moment, please consider it for the moment as a meaningless string.
See release 1.1.3 and related commits
Is your feature request related to a problem? Please describe. Allow to add attribute to a function / a data / an element / a state
Describe the solution you'd like Support the following command to declare an attribute:
Support the following command to describe an object with an attribute:
Describe alternatives you've considered None