Skip to main content



      Home
Home » Modeling » UML2 » Inputs to StructuredActivityNode
Inputs to StructuredActivityNode [message #470962] Wed, 21 February 2007 09:16 Go to next message
Eclipse UserFriend
Originally posted by: magnus.rundlof.NOSPAM.saabgroup.com.NOSPAM

Hello!

Why is it that I can't extract the input pins owned by a
StructuredActivityNode (or subclasses thereof), by looking at the derived
input attribute? When I add input pins to a CallBehaviorAction, they turn up
as derived in the input attribute of the action. The input association is
defined on the Action class, and both StructuredActivityNode and
CallBehaviorAction are actions. What is it that I am missing? Anyone?

Regards
Magnus Rundl
Re: Inputs to StructuredActivityNode [message #470965 is a reply to message #470962] Wed, 21 February 2007 21:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi Magnus,

This is a shortcoming in the spec., the implementation follows the spec.
The problem is that no property of StructuredActivityNode subsets
Action::input or Action::output so as to contribute to those unions. An
issue has been raised with OMG on this and it should be addressed in the
next version. In the meantime, you can find your pins by calling
getContainedNodes() and separating those ActivityNodes that are InputPins.

Regards,
- James.

"Magnus Rundl
Re: Inputs to StructuredActivityNode [message #477115 is a reply to message #470962] Mon, 24 March 2008 04:47 Go to previous messageGo to next message
Eclipse UserFriend
Magnus Rundl
Re: Inputs to StructuredActivityNode [message #477132 is a reply to message #477115] Wed, 26 March 2008 08:55 Go to previous message
Eclipse UserFriend
xiaoqiang,

Input pins can be added via the InvocationAction#createArgument(*) methods
or by adding them directly to the collection returned by the
InvocationAction#getArguments() methods. Output pins can be added via the
CallAction#createResult(*) methods or by adding them directly to the
collection returned by the CallAction#getResults() methods.

Kenn

"xiaoqiang" <jqzhao1985@gmail.com> wrote in message
news:fs7pqo$gnm$1@build.eclipse.org...
> Magnus Rundl
Re: Inputs to StructuredActivityNode [message #589055 is a reply to message #470962] Wed, 21 February 2007 21:21 Go to previous message
Eclipse UserFriend
Hi Magnus,

This is a shortcoming in the spec., the implementation follows the spec.
The problem is that no property of StructuredActivityNode subsets
Action::input or Action::output so as to contribute to those unions. An
issue has been raised with OMG on this and it should be addressed in the
next version. In the meantime, you can find your pins by calling
getContainedNodes() and separating those ActivityNodes that are InputPins.

Regards,
- James.

"Magnus Rundl
Re: Inputs to StructuredActivityNode [message #626250 is a reply to message #470962] Mon, 24 March 2008 04:47 Go to previous message
Eclipse UserFriend
Magnus Rundl
Re: Inputs to StructuredActivityNode [message #626268 is a reply to message #477115] Wed, 26 March 2008 08:55 Go to previous message
Eclipse UserFriend
xiaoqiang,

Input pins can be added via the InvocationAction#createArgument(*) methods
or by adding them directly to the collection returned by the
InvocationAction#getArguments() methods. Output pins can be added via the
CallAction#createResult(*) methods or by adding them directly to the
collection returned by the CallAction#getResults() methods.

Kenn

"xiaoqiang" <jqzhao1985@gmail.com> wrote in message
news:fs7pqo$gnm$1@build.eclipse.org...
> Magnus Rundl
Previous Topic:UML templates
Next Topic:How to add input pins or output pins to a CallOperationAction or CallBehaviorAction?
Goto Forum:
  


Current Time: Sat Aug 30 18:55:56 EDT 2025

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

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

Back to the top