|Bad context after a Selection Wizard Description [message #1385097]
||Wed, 04 June 2014 10:13
| nicolas nusswitz
Registered: May 2014
i would create an edge between 2 elements that's an objet named "Interface" in my model.
1 - Element Edition : selection wizard description
The first is the root element of my diagram description and i use a selection wizard description for choose the second element.
2 - init operation
The "init operation" provide 3 variables :
element => selected element
containerView => Diagram
container => first element.
3 - new operation > Create Instance
I create a new instance of "Interface" with this selected element (var:element).
Now, i would add this instance at interface's list of the first element :
Reference name : "interfaces"
Type Name : Interface
variable name : instance
4 - new operation > set value
Feature name : "targetElemet"
Value expression : var:element
Problem : The new instance is not added at the first element (var:container) but to the second element.
I don't know why ? because the operation context is normaly the first element !!!!
If you have an idea,
Powered by FUDForum
. Page generated in 0.01624 seconds