One of the projects I am working on uses flow ports to model data flow between classes. We now started to model dynamic behavior using activity diagrams and state charts and are looking for a way to express that the data used in an activity diagram has been received on a specific port. Bascially, we want to create a connector between a flow port and e.g. an activity parameter node.
I think modelling data flow with ports is quite common especially in System Engineering, and there should be ways to link the data to activities. I can think of two some ways:
- Connect the port to a property (or part) and use a
ReadStructuralFeatureAction
to get the value - Connect the port to a property (or part) and add an operation to the class which is called with a
CallOperation
- Create an attribute with the same name as the port and provide an operation that is called with a
CallOperation
action
The first option would be ok, but our modelling tool Rhapsody 8.1 seems to not support ReadStructuralFeatureAction
s. The other two approaches have the drawback that there is no direct connector between the port and the activity in the model and it is not visually obvious, so I would like to have a better alternative.
I am wondering if there anybody knows of better approaches to achieve this, e.g. using SysML (1.3).