I would like to reference elements which are contained in an external XMI resource. For this, I use the "import URI" feature: I added an "Import" EClass in my domain model with an importURI feature (as described in the documentation).
I then added the ImportURIScopingFragment in my workflow file.
This seems to import properly the file but an exception is thrown in Xtext:
An internal error occurred during: "Xtext validation".
java.lang.IllegalStateException: No IResourceServiceProvider found in registry for uri ../model-gen/deployment.xmi
This exception is thrown only if my URI points to a valid file, so this would mean that importing the resource works properly.
From the exception, I guess that I have to provide a ResourceServiceProvider for XMI files but I'm not sure how to do that.