|
Re: Visibility of variabe [message #1229506 is a reply to message #1229387] |
Thu, 09 January 2014 15:33 |
|
Hi Wilbert,
I think the operations you described should work, and if not this is a
bug. The visibilty of the variables defined through a CreateInstance
should not be limited to the CreateInstance scope.
Would you accept to raise a bugzilla issue with your ecore and VSM so
that we can try to reproduce the issue ?
Best regards,
Alex
|
|
|
Re: Visibility of variabe [message #1229528 is a reply to message #1229506] |
Thu, 09 January 2014 16:32 |
|
Hi Wilbert,
please ignore my previous answer.
I checked with other Sirius commiters, and this is actually the expected
behavior. User-defined variables (such as variables defined inside a
CreationTool) are only visible for children, so what you describe as an
issue is actually the expected behavior.
The logic is the following: imagine these Model operations:
- If [condition/]
-- CreateInstance (variable:myInstance)
- Else
-- XX
The myInstance variable should not be accessible in the "Else" branch right?
While writing Operations on Tool, remember that any slibing instruction
should be executable before or after its other slibings. If an
instruction depends on another, it should be contained in it.
Sorry for my wrong previous answer,
Alex
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03522 seconds