model-UA / uml-to-opcua

Eclipse Public License 2.0
7 stars 1 forks source link

Evaluate creating references using resolve() #6

Closed thomasfruehwirth closed 3 years ago

thomasfruehwirth commented 3 years ago

QVTo provides the resolve function to switch between source and target model. When specifying the nodeId of the target of some reference, using resolve() might be superior compared to generating the nodeId again from the name of the referenced object.

e.g., in https://github.com/model-UA/uml-to-opcua/blob/5d6d69630b5c2e13368d2dbc18d8df3047dbe809/QvtoTransformationRules/transforms/StateMachineDiagram/StateMachines.qvto#L121

thomasfruehwirth commented 3 years ago

According to the QVTo specification and some tests, resolve() can only resolve objects that have already been mapped. late resolve() should defer the execution of resolve() until the element that is resolved has been mapped. However this seems not not work well with Eclipse QVTo.