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?
Solved! Go to Solution.
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
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
Discussions about Alfresco Content Services and Alfresco Process Services in Spanish
Related:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.