Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » preTarget variable not available in Connection Complete Precondition
preTarget variable not available in Connection Complete Precondition [message #1403570] Thu, 24 July 2014 12:55 Go to next message
Arunkumar Ramaswamy is currently offline Arunkumar RamaswamyFriend
Messages: 57
Registered: April 2014
Member
1. In Connection Complete Precondition of Edge creation tool, preTarget is not available to use in the expression. while preSource variable is available in Connection Start Precondition.
What may be the problem?

2. One more issue:
How to compare the enum variables?
for example
[source.oclAsType(Port).type = port_type::in/]
does not work

Any help much appreciated

Arun
Re: preTarget variable not available in Connection Complete Precondition [message #1403575 is a reply to message #1403570] Thu, 24 July 2014 13:05 Go to previous message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

1. This is a known bug in Sirius, the "preSource" and "preTarget"
variables are not accessible in completion or validation but there are
correctly computed when evaluated in runtime. So you should ignore the
validation issue on your VSM, your expression will work

2. This is the expected OCL Syntax, it should work.
If you still have issue, you may write this expression with java and
reference it through the service interpreter (service:), see [1] and [2]
for further details about this service interpreter

Regards,
Alex

[1]
https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#specialized

[2]
https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods
Previous Topic:Model operation for adding reference
Next Topic:State Machine diagram in Sirius?
Goto Forum:
  


Current Time: Thu Apr 25 00:22:10 GMT 2024

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

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

Back to the top