Activity diagram: Showing inputs via API calls

289 views
Skip to first unread message

avi-mak

unread,
Jul 5, 2021, 11:01:09 PM7/5/21
to SysML Forum

Hi,

Re: Activity diagram: Showing inputs via API calls

When I model an input to an activity diagram, I add a parameter on the left border (straddles”) and so I get a clear visual indication of input entering the activity via this graphic “pipe”.

With my platform (Sparx EA), this parameter then appears also as a code parameter in the behavior heading of the owning block. So far has been so good.

But of course that is not the only way that an activity can obtain input. The activity can also input data by making API calls to other blocks, e.g., Y.getdata().

Question: Is there any special way that you show this input via an API call? Or do you just add an action on the control flow whose name is “Get Y data”? And so on for all other gets? (And you can group them.)

Thanks,
Avi

James Towers

unread,
Jul 6, 2021, 9:33:54 AM7/6/21
to sysml...@googlegroups.com
There is a “Call Operation Action” for that purpose 

Sent from my iPhone

On 6 Jul 2021, at 04:01, avi-mak <amak...@gmail.com> wrote:


--
--
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/8f17da67-5c3c-43b8-97e8-e297d0fb137cn%40googlegroups.com.

avi-mak

unread,
Jul 6, 2021, 1:11:59 PM7/6/21
to SysML Forum
Hi James, Thanks for the response. 
>> There is a “Call Operation Action” for that purpose 

Is that  “Call Operation Action” element visible inside the activity diagram? Ie., inside the activity diagram's diagram frame?
(Seems that it is not.) 

(I am now spending some months drawing exclusively activity diagrams for single end-to-end flow scenarios.)
Back to you.
Thanks
Avi 


avi-mak

unread,
Jul 6, 2021, 1:12:42 PM7/6/21
to SysML Forum
Ok - I see indeed that  “Call Operation Action” is an element in the Activity Diagram. Disregard my previous one-liner post. 


But the problem I have is as follows: your answer is very logical but not at all fine by me from a visual point of view: because there no visual consistency. A parameter object flow line coming from the diagram frame is much more visible.

When an activity has “mixed inputs” (i.e., inputs coming from both i/p parameters and also API calls), from a quick look you notice the parameterized inputs but not the API inputs. (Very important for novices and those you are trying to impress.)

So since you say you just add an action to do “get data”, my sugestion to add some visual obviousness and consistency is as follows: 


To add some visual obviousness and consistency to input via API call: Adopt a convention to add an API ‘input summary’ next to the left border – which lists all the activity’s inputs via other APIs.  

What do you say? Opinions?
Avi


avi-mak

unread,
Jul 6, 2021, 2:36:40 PM7/6/21
to SysML Forum
When I wrote "Adopt a convention etc"  I meant of course to to add in a comment.

avi-mak

unread,
Jul 10, 2021, 11:17:02 AM7/10/21
to SysML Forum
Hi James,

The diagram below is to show what I meant when I wrote that --  using the strict SysML method there no visual consistency between a parameter object flow line coming in from outside the diagram frame, on the one hand ---
and on the other hand, an input data that the activity gets by using an API call to an outside block. Enginesrs using visio wuld simply draw an arrow going from left to right, each towards the approriate step  box to indicate the input data flows. 

I accept the difference, but still neverthless there is missing the immediate visual recognition that there are 4 input data flows here, and not just 2 input data flows.

So I suggest a comment convention to draw a summaery of the ijnits via API in a comment box at fixed location. Hope I made myself understood. 

Other ideas and suggstions.
Params and APIs.png

Thanks
Avi

Reply all
Reply to author
Forward
0 new messages