diff --git a/packages/oslo-converter-uml-ea/lib/interfaces/ConverterHandler.ts b/packages/oslo-converter-uml-ea/lib/interfaces/ConverterHandler.ts index 9c14480..83001e9 100644 --- a/packages/oslo-converter-uml-ea/lib/interfaces/ConverterHandler.ts +++ b/packages/oslo-converter-uml-ea/lib/interfaces/ConverterHandler.ts @@ -190,14 +190,15 @@ export abstract class ConverterHandler { `[ConverterHandler]: Unable to find the URI for object with path ${object.path}. Setting scope to "Undefined".`, ); scope = Scope.Undefined; + return; } - if (uri?.toString().startsWith(packageBaseUri)) { - scope = Scope.InPackage; + if (uri.toString().startsWith(this.config.publicationEnvironment)) { + scope = Scope.InPublicationEnvironment; } - if (uri?.toString().startsWith(this.config.publicationEnvironment)) { - scope = Scope.InPublicationEnvironment; + if (uri.toString().startsWith(packageBaseUri)) { + scope = Scope.InPackage; } quads.push(