cancel
Showing results for 
Search instead for 
Did you mean: 

[rest] - Create a deployment by model id

minhquankq
Champ in-the-making
Champ in-the-making
Can I create a deployment from model id by activiti-rest?

- I have created a model by rest-api and updated editor-source for this model by api too. Then I want to create a deployment of this model by api, can i do it? (if create deployment by activiti-explorer, we can do it by simple click "deploy" on model action of model)

Thanks.
1 REPLY 1

gdharley
Elite Collaborator
Elite Collaborator

There is no standard REST API in the 5.x branch to promote a model from the models repository to the runtime engine repository.

However, if you are using Activiti 6 (still in Beta), you can make use of the activiti-app REST API to deploy a "process app". Be aware, process models must first be added to a process app then the process app is what is deployed.

Unfortunately the API is not (yet) documented, but it is pretty easy to work out:

POST http://localhost:8080/activiti-app/app/rest/app-definitions/2/publish
Payload : {"comment":"My Comment"}

Where "2" above is the process app id.

Cheers,
Greg