Skip to main content



      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 08:55 Go to next message
Eclipse UserFriend
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 09:05 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 05:43:03 EDT 2025

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

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

Back to the top