How to create a process instance in activiti-app by script?

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

How to create a process instance in activiti-app by script?

Currently, I only deployed activiti-app in my environment; I can create/run process instance successfully by dashboard, but there's a requirement to create/run process instance by script, e.g. REST API, how to do that?

Someone suggest to start activiti-rest and point to the same database, but it will report table conflict (MySQL).

Refer to the following thread for the detail:

https://community.alfresco.com/message/821342-re-how-to-use-rest-api-with-activiti-app?commentID=821...

1 Reply
bhchemss
Established Member

Re: How to create a process instance in activiti-app by script?

Hi,

Refer to the documentation

Activiti User Guide 

To start a process instance via REST API :

POST runtime/process-instances

To start a process instance via Script

runtimeService.startProcessInstanceByKey