eclipselabs/passerelle

Loading submodels via RepositoryService fails when submodel folder is changed in the workflow preferences page

Closed this issue · 2 comments

When changing the Submodel Root folder in the Workflow Preferences page, all 
works fine until the workbench is restarted.

Then, opening a model containing a submodel fails with a message that the 
submodel class can not be found.

It is caused by a wrong ordering of applying the configured preference value to 
the underlying FileSystemBasedRepositoryService.
The startup of com.isencia.passerelle.project.repository.impl.filesystem sets 
the default value, or from the system property with name defined in 
com.isencia.passerelle.project.repository.api.RepositoryService.SUBMODEL_ROOT.

This is already referenced when opening the model editor, before applying the 
configured preference.
This preference value is applied later, when constructing the actor palette.
The order should change.

Plus : a typo was discovered in 
com.isencia.passerelle.project.repository.api.RepositoryService.SUBMODEL_ROOT, 
conflicting with the actual system property's name and also causing issues.

Original issue reported on code.google.com by erwin...@gmail.com on 26 Feb 2013 at 6:23

[deleted comment]

Original comment by erwin...@gmail.com on 26 Feb 2013 at 6:51

  • Changed state: Fixed