Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying to a camunda process engine

Tags:

camunda

I want to achieve the following: Have a camunda-7.3 prepackaged distro running with the rest-api. Have another server, lets say a wildfly server, running with a vaadin application deployed.

From within in the vaadin application, I want to create a cmmn case and deploy/start it in the process engine. Then from from within the vaadin aplication i want to display some sort of tasklist to complete the active tasks.

The question here is: Is this setup even possible? If so, how to deploy a new cmmn case to the engine?

I checked the tutorials from the camunda webpage but each tutorial only deploys the cmmn cases (and bpmn processes) by deploying another webapp to the server hosting the camunda engine. On the other hand, the camunda references cleary state, that it is possible to have a standalone camunda engine running.

Anyone has any thoughts on the topic?

like image 451
Dominik Mohr Avatar asked Jun 24 '15 02:06

Dominik Mohr


People also ask

How do you deploy to Camunda?

In order to deploy the Process, click on the deploy button in the Camunda Modeler, then give it the Deployment Name “Payment Retrieval” and click the Deploy button. From version 3.0. 0 on, you will be required to provide an URL for an Endpoint Configuration along with Deployment Details.

What is Camunda Process Engine?

Camunda Platform is a lightweight, Java-based framework. It can be used as a standalone process engine server or embedded inside custom Java applications. It offers non-Java developers a REST API and dedicated client libraries to build applications connecting to a remote workflow engine.


1 Answers

For deploying both BPMN processes and CMMN cases you can

1) Login

curl -w "\n" --cookie-jar cookie.txt \
  -H "Accept: application/json" \
  -d "username=$USERNAME" \
  -d "password=$PASSWORD" \
  $API/admin/auth/user/default/login/cockpit

2) Deploy (see http://docs.camunda.org/latest/api-references/rest/#deployment-post-deployment)

curl -w "\n" --cookie cookie.txt \
  -H "Accept: application/json" \
  -F "deployment-name=rest-test" \
  -F "enable-duplicate-filtering=false" \
  -F "deploy-changed-only=false" \
  -F "process.bpmn=@$PROCESS" \
  $API/engine/engine/default/deployment/create
like image 72
Martin Schimak Avatar answered Sep 30 '22 15:09

Martin Schimak