10-31-2014 05:13 AM
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
11-03-2014 12:01 PM
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,
11-03-2014 12:01 PM
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,
11-04-2014 06:13 AM
Perfect Thanks!
11-05-2015 09:13 AM
Thank you
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.