03-12-2020 04:24 PM
He creado dos modelos de contenido A y B. Necesito importar el modelo A en el modelo B para poder crear una asociación entre un tipo de contenido de mi modelo B con uno del modela A.
Realizo la importación de la siguiente manera:
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<import uri="(URI DEFINIDA EN EL NAMESPACE AL CREAR EL MODELO A)" prefix="(PREFIJO DEFINIDO)"/>
</imports>
Al reiniciar me da el siguiente error:
org.alfresco.service.namespace.NamespaceException: URI (URI DEFINIDA EN EL NAMESPACE AL CREAR EL MODELO A) cannot be imported as it is not defined (with prefix (PREFIJO DEFINIDO)
En el bootstrap-context.xml estan definido de la siguiente forma
Qué debo hacer para subsanar este error?
03-13-2020 02:26 AM
I think you could make it work defining the models in two different beans. Say you give model A bean the id "cu.modelA" and model B bean the id "cu.modelB", then you must specify dependsOn="cu.modelB" in model A bean.
I don't know if that is the best option, but we got it to work this way, when importing a custom model from another module.
Hope it helps
03-16-2020 09:44 AM
03-13-2020 02:26 AM
I think you could make it work defining the models in two different beans. Say you give model A bean the id "cu.modelA" and model B bean the id "cu.modelB", then you must specify dependsOn="cu.modelB" in model A bean.
I don't know if that is the best option, but we got it to work this way, when importing a custom model from another module.
Hope it helps
03-16-2020 09:44 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.