referencing one model from within another


I'm working on a couple of applications that have one or more components that are nearly identical. Is it possible to reference or inherit one model's components from within another model?


Trupik wrote Nov 8, 2010 at 7:26 AM

By one and another model you mean two separate XCase projects?

dolinar wrote Nov 8, 2010 at 12:15 PM

That's what I originally had in mind. I tend to think of models like class libraries -- I realize it's not the same. I have a couple of applications I'm working on that will use similar sets of components (aka simple models), e.g. application 1 uses components A, B, C, D; application 2 uses components B, C, E. I'd like to avoid recreating each component for each application in which it's use.

Trupik wrote Nov 8, 2010 at 1:10 PM

This feature is not available in XCase. A workaround can be either copy definitions of components directly by editing the project file in an XML editor or consider having only one project for all these application. Think of models as a representation/visualization of a problem domain. If several application share a common problem domain, they should have the same model.

wrote Feb 13, 2013 at 8:11 PM