04-27-2017 05:05 AM
Hi,
We have created custom review workflow and deployed to Alfresco repository and wanted to start this workflow outside Alfresco using java, couldn't find right REST service or any other method to do this. Can you please help me on how I can achieve this? We are using Alfresco 5.0
Thanks!
04-27-2017 07:45 AM
Judging by the available documentation for 5.0 version here Workflow | Alfresco Documentation , I think there is no way to start a new instance the way you want to do.
Maybe you should take a look on how webscripts are implemented, and then create your own.
The following project introduced a new start workflow webscript, but be carefull, as the project is not being maintained anymore
04-27-2017 07:45 AM
Judging by the available documentation for 5.0 version here Workflow | Alfresco Documentation , I think there is no way to start a new instance the way you want to do.
Maybe you should take a look on how webscripts are implemented, and then create your own.
The following project introduced a new start workflow webscript, but be carefull, as the project is not being maintained anymore
04-27-2017 05:15 PM
Excellent! Thank you so much!
04-27-2017 07:02 PM
Hi Douglas,
One follow-up question I got to add two documents to the workflow when I start how can I add it? Please let me know.
Thanks!
05-03-2017 10:58 AM
You have to do something like this:
Basically what you need is to create the "package" object, add the documents and it is done.
Follow the sample code and you will be able to achieve what you need.
Explore our Alfresco products with the links below. Use labels to filter content by product module.