AnsweredAssumed Answered

Tightened validation of content model

Question asked by _sax on Jan 6, 2011
I try to understand the demands of the tightened validation of content models, as introduced here:
http://wiki.alfresco.com/wiki/Release_3.3_SP1#Tightened_Validation_of_Content_Models

When a custom content model defines a namespace, that is then used in a workflow model,
how is the right way to do this?

custom-content-model.xml


<model name="company:company_model" xmlns="http://www.alfresco.org/model/dictionary/1.0">

<namespaces>
  <namespace uri="the.company.model" prefix="company" />
</namespaces>



custom-workflow-model.xml


<model name="company:thecustomworkflow" xmlns="http://www.alfresco.org/model/dictionary/1.0">

<imports>
  <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
  <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
  <import uri="the.company.model" prefix="company" />
</imports>


The above example doesn't work (anymore). So I guess, the workflow model
needs to define a separate namespace

<namespaces>
  <namespace uri="the.companyworkflow.model" prefix="company" />
</namespaces>

So every new workflow model will have to use a different namespace?
Is the same prefix for all models, be it content or workflow, allowed?

Thanks in advance.

Outcomes