Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » modeling object creation action
modeling object creation action [message #33084] Sat, 14 July 2007 05:27 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:[Announce] MDT OCL 1.1.1 M200707131137 is available
Next Topic:Model Integrity Article and Europa
Goto Forum:
  


Current Time: Fri Dec 19 08:04:04 GMT 2014

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

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