Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How to add an Artifact to an Activity Diagram
How to add an Artifact to an Activity Diagram [message #1714183] Tue, 10 November 2015 14:44 Go to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
I am able to add Artefact elements to an Activity diagram in the Model Explorer (using the New Child context menu), but they do not become visible in the diagram. I have tried to drag-and-drop from the Model Explorer to the diagram, but it has no effect.

How should I proceed to make Artefact elements visible?

Thank you.
Re: How to add an Artifact to an Activity Diagram [message #1714184 is a reply to message #1714183] Tue, 10 November 2015 14:50 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi Luis,

If the Activity Diagram is not designed to display Artifacts, then you can't

Currently, only the ClassDiagram allows arbitrary elements to be displayed

Regards,
Camille


Camille Letavernier
Re: How to add an Artifact to an Activity Diagram [message #1714185 is a reply to message #1714183] Tue, 10 November 2015 14:51 Go to previous messageGo to next message
Raphael Faudou is currently offline Raphael FaudouFriend
Messages: 105
Registered: July 2009
Senior Member
Hi Luis,

as far as I know, Artefact modeling element is not part of Activity diagram concepts and that is the reason why Papyrus does not show it.
Some tools allow this kind of "mismatch" but not Papyrus that is quite good in conformance with the specification.

Artefact is a concept of deployment diagram. That is the kind of diagram you can use to see it.

Best regards
Raphaël
Re: How to add an Artifact to an Activity Diagram [message #1714188 is a reply to message #1714185] Tue, 10 November 2015 14:57 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Indeed, the Model Explorer provides an action for creation of Artifacts
as nested classifiers. Because all Behaviors (such as Activity) are a
kind of Class, they can own nested classifiers. But, it doesn't make
sense for behaviors to have nested classifiers, does it? It seems to
me that there are many features of a Class that don't make sense for
Behaviors (they can be active and own a classifier-behavior, too!).

Christian


On 2015-11-10 14:51:14 +0000, Raphael Faudou said:

> Hi Luis,
>
> as far as I know, Artefact modeling element is not part of Activity
> diagram concepts and that is the reason why Papyrus does not show it.
> Some tools allow this kind of "mismatch" but not Papyrus that is quite
> good in conformance with the specification.
>
> Artefact is a concept of deployment diagram. That is the kind of
> diagram you can use to see it.
>
> Best regards
> Raphaël
Re: How to add an Artifact to an Activity Diagram [message #1714189 is a reply to message #1714188] Tue, 10 November 2015 15:25 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Quote:
It seems to
me that there are many features of a Class that don't make sense for
Behaviors (they can be active and own a classifier-behavior, too!).


I think that's because the spec. says that "If a behavior doesn't have a context, then it is its own context". So it may have its own Structure, etc.


Camille Letavernier
Re: How to add an Artifact to an Activity Diagram [message #1714207 is a reply to message #1714189] Tue, 10 November 2015 17:54 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Yep! Toaster fridges for everyone! The Way of the Future™.

cW

On 2015-11-10 15:25:14 +0000, Camille Letavernier said:

> Quote:
>> It seems to
>> me that there are many features of a Class that don't make sense for
>> Behaviors (they can be active and own a classifier-behavior, too!).
>
>
> I think that's because the spec. says that "If a behavior doesn't have
> a context, then it is its own context". So it may have its own
> Structure, etc.
Previous Topic:What is the best strategy to add a Tagged Value for "Definition" to Classifiers?
Next Topic:Sequence diagram question
Goto Forum:
  


Current Time: Fri Apr 26 05:18:46 GMT 2024

Powered by FUDForum. Page generated in 0.03233 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top