Book a Demo

Author Topic: SysML v15.1 Act Diag - How to define an action by existing 'sub-activity'  (Read 9812 times)

avi10000

  • EA User
  • **
  • Posts: 201
  • Karma: +0/-0
  • Programmer/Writer
    • View Profile
Hi,
re: SysML v15.1 Activity Diagram -

Given you have an action Do_X in your activity diagram.

You now want to define Do_X by a sub-activity Do_X_act. (So action X itself now becomes an activity.)

And you have already defined (modeled) sub-activity Do_X_act , i.e., you already drew the Do_X_act diagram in the past.

How would you do this? I.e. how would you make the association? 

Thanks
Avi



 
« Last Edit: July 16, 2021, 10:35:41 pm by avi10000 »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
In UML you would use a callBehaviorAction. Seems likely that this would be the same in SysML, but I'm not sure about that.

Geert

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Yes indeed Geert it is a Call Behaviour Action just the same as UML

Phil
Models are great!
Correct models are even greater!

avi10000

  • EA User
  • **
  • Posts: 201
  • Karma: +0/-0
  • Programmer/Writer
    • View Profile
My action Do_X is defined as an 'action' element.

So I looked in Properties > Type (and Pop-up > Advanced > Type) and I do not see an option to convert 'action'  to 'callBehaviorAction'. I see options to convert 'action' to  Activity and also to 'wierd' elements that have no connection to activity diagrams, e..g, state.

So how do you convert an existing 'action'  element to a 'callBehaviorAction' element.

Thanks,
Avi

avi10000

  • EA User
  • **
  • Posts: 201
  • Karma: +0/-0
  • Programmer/Writer
    • View Profile
Edited Subject line to:

   " SysML v15.1 Act Diag - How to define an action by existing 'sub-activity' "

avi10000

  • EA User
  • **
  • Posts: 201
  • Karma: +0/-0
  • Programmer/Writer
    • View Profile
Ok - Found the answer myself

Context pop-up > New Child Diagram > Select Composite Diagram

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Select composite diagram merely sets a "hyperlink" to a diagram. It doesn't make your action a callBehavior Action.

Change to callBehaviorAction by selecting your action and using the (docked) properties | Action | Kind
Then unselect and select the action again (to refresh the properties view)
Then using the properties | Action | Behavior to select the Activity.

Another option is to Ctrl-drag your Activity on the diagram and choose Invocation (action)

Geert