Is it possible to have default workflows in custom document types?

Hi,

I've created two custom document types using studio. But the default workflows (parallel and serial review) are not available. Is there a way to make these available on my custom workflows?

Thanks, Bauke Roo

0 votes

1 answers

2404 views

ANSWER



Hi,

Yes it’s possible to have the two default workflows on your custom document type. To do so, you need to override the default filters for these workflows, and include your custom type. If you are using Nuxeo Studio add them in the XML Extensions menu. Here is the example for the default Serial workflow:

<require>studio.extensions.nuxeo-routing-default</require>
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
  point="filters">
  <filter id="filter@wf@SerialDocumentReview" append="true">
    <rule grant="true">
      <permission>ReadWrite</permission>
      <type>CUSTOM DOC ID</type>
      <condition>#{!currentDocument.locked}</condition>
    </rule>
  </filter>
</extension>

and for the default Parallel workflow:

<require>studio.extensions.nuxeo-routing-default</require>
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
  point="filters">
  <filter id="filter@wf@ParallelDocumentReview" append="true">
    <rule grant="true">
      <permission>ReadWrite</permission>
      <type>CUSTOM DOC ID</type>
      <condition>#{!currentDocument.locked}</condition>
    </rule>
</extension>

For more information about Workflows, don’t hesitate to have a look at our documentation.

Thanks,

2 votes



Perfect Thanks!
11/04/2014

Thank you :)
11/05/2015