Foren

Workflow for document type

Daniel G, geändert vor 6 Jahren.

Workflow for document type

Regular Member Beiträge: 141 Beitrittsdatum: 14.03.17 Neueste Beiträge
Hi everyone

Is it possible to make that an specific document type starts a workflow?

In document and media, there is an option to make a default workflow for all document types, but I need it for one specific.

I am trying to do it with WorkflowHandlerRegistryUtil.startWorkflowInstance, but it only starts the default workflow.

Any ideas?

Thanks!!
thumbnail
Samuel Kong, geändert vor 6 Jahren.

RE: Workflow for document type

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
1. In Documents and Media, add a folder.
2. Edit the folder
3. Expand the Document Type Restrictions and Workflow section
4. Select a document type and choose a workflow for that document type.
5. Repeat for other document types as desired.
Daniel G, geändert vor 6 Jahren.

RE: Workflow for document type (Antwort)

Regular Member Beiträge: 141 Beitrittsdatum: 14.03.17 Neueste Beiträge
I reached to a solution: overriding DLFileEntryWorkflowHandler.
In getWorkflowDefinitionLink method, indicating which workflow returns depending of the type of DLFileEntry