Book a Demo

Author Topic: Cannot find CallBehaviorAction metaclass  (Read 2913 times)

swe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Cannot find CallBehaviorAction metaclass
« on: September 04, 2012, 05:31:26 pm »
I have to implement the following in a UML profile, but I cannot insert the CallBehaviorAction metaclass directly. There is only Action. Is there a way to directly extend CallBehaviorAction?

"...<<runnableEntity>> stereotype which extends the CallBehaviorAction  and AcceptEventAction metaclasses. A runnable is represented by a UML 2.0 AcceptEventAction with a control flow to a CallBehaviorAction..."

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Cannot find CallBehaviorAction metaclass
« Reply #1 on: September 04, 2012, 06:01:13 pm »
I would try and extend the metaclass [highlight]Action [/highlight]which has an attribute (hence tagged value in the profile), called kind typed to an Enumeration ActionKind

This should be inherited by your extension.

Access the attribute properties of the Action metaclass and select the attribute [highlight]kind[/highlight], by using the ellipsis button next to default value, this can then be set to [highlight]CallBahavior[/highlight], using the dropdown list

I haven't tried this, but I see no reason as to why it should not work.

Cheers

Phil

Models are great!
Correct models are even greater!

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Cannot find CallBehaviorAction metaclass
« Reply #2 on: September 04, 2012, 06:11:48 pm »
Follow up, I have just tried this and it works!

My stereotype did indeed inherit the call behaviour "fork" symbol.

Cheers

Phil
Models are great!
Correct models are even greater!