Author Topic: Activity element return field  (Read 997 times)

marke

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Activity element return field
« on: September 26, 2013, 11:41:41 pm »
I'm using activities to describe the behaviour of some operations.

I notice in the Activity properties Behaviour there is a field to specify the Activity return type. The return type then appears as the type of the Activity.

I then open the diagram for a structured activity. I Show Diagram Frame which will include any activity parameters that are specified but there is nothing diagramatic to represent the return value. I guess I was expecting something like an activity parameter box. My activities are algorithmic and I can't see what I should connect a return value to.

I've done some searching in the SysML and UML specs and some textbooks and can find nothing about Activity return types/values. Is the Activity return some non-standard, EA addition? Should I stick with an Activity Parameter for the return?

Thanks, Mark

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 8467
  • Karma: +207/-26
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Activity element return field
« Reply #1 on: September 27, 2013, 03:44:09 pm »
Mark,

An Activity is a subclass of Behavior. And Behavior has a ParameterSet.
A ParameterSet contains Parameters, which have an attribute direction of type ParameterDirectionKind.
ParameterDirectionKind is an enumeration with values
- in
- inout
- out
- return

A parameter with direction return => return type.

Geert

marke

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Activity element return field
« Reply #2 on: September 27, 2013, 11:08:26 pm »
Thankyou Geert.

So EA should add an activity parameter, of directionkind return, to the activity. It doesn't seem to do so.

Mark

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 8467
  • Karma: +207/-26
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Activity element return field
« Reply #3 on: September 27, 2013, 11:42:03 pm »
It does, but the only thing you see of it is the returntype (similar to how it works with operations)

Geert