Migrating from Companion File 2.0 and Using Mosel Annotations
Global annotations are those that apply to the whole model, and they are placed before any of the entity declarations but after any import statements. Where the companion file previously had <resultsdata delete="on-execute"/>, this option is now a global mosel annotation, insight.resultdata.delete. This can be set to any of the values on-change/on-queue/on-execute.
A new addition to the configuration options are execution modes. The namespaced annotations insight.execmodes.[execmodeName] allow the developer to add descriptions and other options, which are fully shown in the Xpress Insight Mosel Reference.
!@insight.alias Days !@insight.hidden true !@insight.readonly true
![]() |
Note You must use a version 3.0 companion file for Xpress Insight to recognize insight annotations within your model.
|
![]() |
Note Existing applications which use version 2.0 of the companion file are unaffected by this change and will continue to work as before.
|
mminsight Annotations in Separate BIM File
mminsight annotations have been moved to a separate BIM file mminsightannotations.bim, which is itself referenced as a dependency of mminsight.bim.
This enables you include mminsight annotations in packages that may be executed in environments where insight itself is not available.
package mypackage uses 'mminsight' !@insight.manage ignore public declarations MY_CONSTANT=5 end-declarations... to prevent the public variables exported by your package from appearing in the insight schema for a model that uses this package.
However, the problem is that by having uses mminsight, a dependency is created on mminsight.dso which means a model that uses this package can ONLY be run in an environment that has insight installed. For example, this package could not be used in a model that's run in Xpress Executor, because there is no mminsight.dso available within Xpress Executor.
package mypackage uses 'mminsightannotations' !@insight.manage ignore public declarations MY_CONSTANT=5 end-declarationsThe previous way of doing things still works, as mminsight references mminsightannotations.