modeling object creation action [message #33084] |
Sat, 14 July 2007 05:27 |
Eclipse User |
|
|
|
Originally posted by: k.kaczmarski.mini.pw.edu.pl
Dear All,
I am sorry for a little bit off-topic question but this is a place where
there are many UML experts and maybe someone could at least point me to
a place where I could look for an answer.
I need to model object creation and initiation using UML actions. Say,
we have a class Person(name:String, address:String). The most obvious
solution is to use CreateObjectAction and then twice
AddStructuralFeatureValueAction for the name and the address. How could
I pass the newly created object to the two initiating actions?
According to the specification ForkNode will copy the object, which is
wrong and using two competing ObjectFlows will send the resulting object
to one of the AddStructuralFeatureValueAction objects only.
Thanks for any ideas,
Krzysztof
|
|
|
Re: modeling object creation action [message #33121 is a reply to message #33084] |
Sat, 14 July 2007 10:38 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Krzysztof,
If you must post a question to multiple newsgroups, please do so with a
single posting to all the groups, not separate postings to each groups
as you've done with this posting by posting it to both the OCL and UML2
newsgroups. With a single posting, an answer on any group will appear
on all groups, thereby reducing the workload for folks answering questions.
Krzysztof Kaczmarski wrote:
> Dear All,
>
> I am sorry for a little bit off-topic question but this is a place
> where there are many UML experts and maybe someone could at least
> point me to a place where I could look for an answer.
>
> I need to model object creation and initiation using UML actions. Say,
> we have a class Person(name:String, address:String). The most obvious
> solution is to use CreateObjectAction and then twice
> AddStructuralFeatureValueAction for the name and the address. How
> could I pass the newly created object to the two initiating actions?
> According to the specification ForkNode will copy the object, which is
> wrong and using two competing ObjectFlows will send the resulting
> object to one of the AddStructuralFeatureValueAction objects only.
>
> Thanks for any ideas,
> Krzysztof
|
|
|
Powered by
FUDForum. Page generated in 0.03315 seconds