Closed LorenzoL94 closed 7 months ago
Xtext serialization is not supported in the Pilot Implementation. There are separate efforts on-going to implement the generation of textual notation from KerML and SysML v2 XMI, but they are not ready for public release yet.
SysMLv2 Pilot Implementation version: 2023-08
I have created an eclipse plugin that serialize a SysML v2 ecore model instance (created programmatically) into its SysML v2 textual notation. However whenever the model instance contains a Usage (port, part, attribute) the serialization fails with the following error:
Here is the code where I am trying to create programmatically the model instance and then trying to serialize it:
I also tried to load the ecore model instance from a manually written model in SysML v2 textual language (to be sure that the problem was not related to the programmatically created model) and then trying to serialize it in a different file but I encountered the same problem.
The manual written file:.
The code:
Serializing the models in XMI format works fine.
Am I doing something wrong or currently the automatic serialization is not supported ?