Combined Control and Data(Object) flow in Activity Diagram

+1 vote
asked Aug 8, 2017 in Wanted features by anonymous
Is it possible to model a data(object) flow parallel to the control flow depicted by an activity diagram?

I saw that objects can be intserted into the activity diagram as elemens with the following notation ": name of object]", but this is an integration e.g. in-between two actions.

The question is now if it is also possible to draw a data flow next to the control flow, e.g. that one action follows the other coneccted by an arrow and in addition there is another arrow (e.g. dashed) going out of the first action pointing to an object. Again dashed arrows might indicate that this object feeds as input into other actions (especially these infeeds to other and potentially multiple actions is not reasonably to be modelled via fork).

Any idea how to get such a activity diagram via plantuml today? If not can one expect support for such a drawing soon?

Thx
commented Feb 18 by Anthony-Gaudino (7,760 points)
Please provide an image example of what you want to achieve.

1 Answer

0 votes
answered 3 days ago by dubcio (170 points)

For now I found the following workaround. It is not pretty unfortunately.

@startuml
:before activity;

split
 -[dotted]->
 :object
 [state] ]
 -[dotted]->
split again
 :parallel activity;
end split

:middle activity;

split
 -[dotted]->
 :object]
 -[dotted]->
split again
end split

:middle activity;

@enduml

example

...