Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
219 views
in Technique[技术] by (71.8m points)

class - Can I link an Action to an Operation?

I have object of type Class and in this class I have one Operation named setCookie().

Is it possible create object of type Action (or Activity) which is related to Operation setCookie()?

Idea is to create activity diagram with Action/Activity items derived from Class Operations. Because I want to propagate Name and Note information previously described on Class.

question from:https://stackoverflow.com/questions/65847265/can-i-link-an-action-to-an-operation

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Your wording is a bit weird, but basically yes. You drag an operation of your class in an AD and EA will create a call behavior.

enter image description here

Once you rename the operation EA will also change the classifier displayed in braces: enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...