Dashboard > Hippo CMS > ... > 10. Workflow > How to define a different workflow per document type
How to define a different workflow per document type
Added by Niels van Kampenhout, last edited by Niels van Kampenhout on Dec 05, 2006  (view change)
Labels: 


By default, documents created in Hippo CMS get a "Reviewed Actions" workflow. You can however define any other type of workflow for a certain type of documents. To define a workflow for a document type, add an element "workflowName" to the corresponding "resource" element in types.xml, and put the name of the desired workflow in it.

The example below shows a document type "practice" with workflow "TaxonomyDocument" and a document type "practice-intranet" with workflow "TaxonomyDocumentIntranet".

<types>
  <resources default="practice">
    <resource name="practice" label="Practice page">
      <schema>repository://types/practice/text.xsd</schema>
      <layout>repository://types/practice/layout.xml</style>
      <template>repository://types/practice/text.xml</template>
      <bl>repository://types/practice/businesslogic.xml</bl>
      <i18n>repository://types/practice/i18n</i18n>
      <workflowName>TaxonomyDocument</workflowName>
    </resource>
    <resource name="practice-intranet" label="Practice page for Intranet">
      <schema>repository://types/practice/text.xsd</schema>
      <layout>repository://types/practice/layout.xml</style>
      <template>repository://types/practice/text.xml</template>
      <bl>repository://types/practice/businesslogic.xml</bl>
      <i18n>repository://types/practice/i18n</i18n>
      <workflowName>TaxonomyDocumentIntranet</workflowName>
    </resource>
    ....
  </resources>
</types>

Note: the ZIP archive containing the desired workflow must be in your server manager configuration!

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.7 Build:#813 Aug 28, 2007) - Bug/feature request - Contact Administrators