Deploying Process Application through REST API

hi

How can I deploy a Process Application war file to my Tomcat with REST API. Why Camunda Cockpit doesn’t have an upload option to upload a war file for deployment

Thanks and Regards,
Prasad P.S

Hi Prasad Prabha,

You can use rest client tool to post your data for a new deployment

One of them is Postman which available on Chrome webstore too

See Postman’s documentation for “Sending Requests” below
https://www.getpostman.com/docs/requests

See camunda Rest API reference
https://docs.camunda.org/manual/7.3/api-references/rest/#deployment-post-deployment
to get more information in regard to required request method, URL and parameteres

Using Postman or any other REST client is not convenient means of deploying , since we have to frame the request for each resource to deploy (including servicetask classes,images,forms). On the top of that a process definition deployed with REST api doesnt know the resources deployed along with it (A process cant identify the form which refers, the class files a service task referes etc).

Based on below post

A process definition can identify html form resource using keyword deployment instead of app as follow
camunda:formKey=“embedded:deployment:approve-loan.html”

Hi,

you have to distinguish between Java Deployments and Camunda Deployments. A war file is a java deployment which is used by the tomcat to deploy java web applications. Whereas a Camunda deployment is a bundle of deployed resources which is saved in the database, e.g. BPMN processes.

As Camunda cannot handle war files you need to deploy the war file to the tomcat directly. Tomcat provides a manager app which can be used to deploy war files remotely. There is also a maven plugin which can be used to deploy a war file directly to tomcat.

Cheers,
Sebastian

3 Likes

Ref to other discussion requesting additional docs about Deployments: Request: More docs about what can and cannot be deployed through Rest API