2

In Catia MagicDraw in SysML, when I use an enumeration value to specify an input attribute to a signal in an activity diagram, the output pin on the valueSpecification block is initially untyped. Is there a way to automatically type it as the enumeration itself?

I have tried created stereotypes / customization and setting the attribute's default value. What confuses me is the output pin on the valueSpecification block does not appear to be owned by the valueSpecification block but by the activity diagram itself.

2
  • Are you referring to a specific tool ? Commented Jan 12 at 12:20
  • Catia MagicDraw Commented Jan 13 at 13:09

1 Answer 1

1

I don't know how to change the default drag-and-drop-behavior of Cameo. It could be possible with a plugin, but I think that stereotypes with customizations will not help.

When I drag an enumeration literal to an activity diagram, a value specification action is created. The result output pin is owned by this action and is untyped.

I agree, that Cameo could do a better job here and assign the Enumeration as the type automatically. Strangly enough it is not possible to drag the type to the pin, which works for other actions. However, dragging the type to the correct field in the specification dialog works. So, the behavior is not perfect, but I don't consider this a big deal.

I didn't get what you mean with "does not appear to be owned by the valueSpecification block". Please note, that the specification dialog will show the correct name of the selected element in the title, in case there is a confusion, whether you are dealing with a block, an action, an activity or a diagram.

Sign up to request clarification or add additional context in comments.

1 Comment

I think I just have to accept that vanilla Cameo won't do this for me. While it is true that it's not hard to type it, my issue comes when an untyped port is automatically typed to that of a connected port when a connection is made (if that port is typed). Perhaps a validation rule is the way to go.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.