Can we start workflow on a list of selected documents instead of individual document?

There are a list of documents. Can I select a few documents on a list and start workflow on them .Currently there is no workflow button option when I select a document. Screenshot included.

0 votes

1 answers

41 views

ANSWER



Hello,

All Nuxeo workflows are built to support multiple document attached to a workflow instance. Indeed, the property of the workflow instance storing the list of document IDs is nt:targetDocumentsIds (Get more info from reading https://nuxeo.github.io/api-playground/#/data/schemas/task).

That said, it is true we don't expose the button on a selection. This is a good feedback actually I encourage you to reference in our product roadmap: https://portal.prodpad.com/0a536da6-c3aa-11e7-84d9-06df22ffaf6f. This is very simple to implement with Studio:

  • Create an automation which uses Context.StartWorkflow. Note it should receive Documents in input and output.
  • Create a button in Designer which targets the selection
  • Hot reload, and you're done!
1 votes