The REST API for a workflow created by graphical interface?

cancel
Showing results for 
Search instead for 
Did you mean: 
Member II

The REST API for a workflow created by graphical interface?

Hello all,

I have created a workflow using graphical interface provided by online trial version of Alfresco. (A screenshot is below for your info.)

It is validated and works fine when I start the process.

Now my question is: "Does the graphical interface provide a REST API for external applications to run/start this workflow automatically?"

If yes, can you please let me know how I can have/access that REST URL/API to start my workflow automatically?

Thanks for your help in advance.

Narjes

2 Replies
Senior Member II

Re: The REST API for a workflow created by graphical interface?

Hello,

Based on your diagram, the two REST components you have there are basically REST clients. When you start the process, those tasks will invoke the REST APIs you have configured using those components. Basically those two REST components in your process are REST clients. If I understand your question correctly, you want to start the process instance through an REST API. Yes, that is possible. Alfresco Process Service comes with a rich set of APIs. There are APIs that allow you to start a process instance. Please refer the documentation for more details: Start Process Instance | Alfresco Documentation 

If you have the latest version installed, you should be able to browse through all the APIs using the API Explorer which is available at http://localhost:8080/activiti-app/api-explorer.html (assuming you have Alfresco Process Service installed on your localhost running on 8080. Otherwise, please modify the url accordingly). You can also use the cloud instances's API Explorer to browse the API documentation which is available at Alfresco Process Services API Explorer 

Hope this helps.

Cheers,

Ciju

Member II

Re: The REST API for a workflow created by graphical interface?

Many thanks Ciju for this exhaustive explanation. It was really helpful.