Pass information among activity diagrams

34 views
Skip to first unread message

Alberto

unread,
Nov 22, 2021, 9:10:12 PM11/22/21
to SysML Forum
Hello everybody,

More general questions about activity diagram:
- Is it reasonable to use activity diagrams as alternatives to state machines?
- It there a standard way to pass information between activity diagrams (e.g. using ports of Internal block diagrams)? 

Thanks

István Dányi

unread,
Nov 24, 2021, 1:23:08 AM11/24/21
to sysml...@googlegroups.com
Hi Alberto,

1) Activity vs. state machines
Though both model elements are a behaviour element, they are used for different specific perspectives. Therefore, I would say, the situation (behaviour type) determines which of them is more suitable. IOW, you can model an activity behaviour with a state machine, and vice versa, but only one of them is appropriate in a given context. State machines focus on stable statuses and events triggering transition between these statuses; activity is rather a sequence of steps following each other along some decision rule as their executions are completed.

2) Pass information between activities
I suppose you mean activity rather than activity diagram, but I am not sure what you are looking for. There are two approaches: you can call a sub-activity by a CallAction and passing parameters; or you can send and receive async messages by SendObjectAction/SendSignalAction and AcceptEventAction. Both approaches provide a way to pass information between activities (not activity diagrams).

hope it helps,
Istvan

--
--
You received this message because you are subscribed to the Google
Groups "SysML Forum" group.
Public website: http://www.SysMLforum.com
To post to this group, send email to sysml...@googlegroups.com
To unsubscribe from this group, send email to
sysmlforum+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sysmlforum?hl=en_US?hl=en
---
You received this message because you are subscribed to the Google Groups "SysML Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sysmlforum+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sysmlforum/0bc6c9a8-3262-43de-ab0d-e0e05ca6f7ban%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages