[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

huksley/camunda-spring-boot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camunda BPM example based on Spring Boot

Based on Camunda Spring Boot starter app

This example packages Camunda BPM platform as Spring Boot Web application with following configured:

  • Spring Boot 2.1 + Java 8
  • Embedded Camunda engine
  • Camunda web applications (cockpit, admin, tasklist)
  • Sample process application and one BPMN process deployed
  • Test user configured with login and password in application.properties
  • BPMN Process sample
  • DMN Decision table sample
  • Service task sample
  • External service task sample
  • Process unit testing
  • Introduction and welcome page - launchpad
  • Swagger UI + OpenSchema.json

Launchpad

Tasklist

Cockpit

User admin

Swagger UI

Building

Execute following:

mvn clean package

Running

To run application at http://localhost:8080 execute:

mvn clean package spring-boot:run

Deploying locally to docker

Execute following to start via Docker

docker build . -t camundacloud/camunda-demo
docker run -d -p 8080:8080 camundacloud/camunda-demo

Security

By default, when running in Docker password are generated for user demo when you run it first time. It is shown on the first line printed by container when it starts:

========= YOUR CAMUNDA PASSWORD IS 123 =========

Specify fixed password by providing CAMUNDA_PWD environment variable using docker or Google Cloud Run.

Deploying to Google Cloud run

gcloud beta run deploy --image gcr.io/camundacloud/camunda-demo --memory=1G

Push to google cloud

Create your GCR in Google Cloud and use your own Docker image.

docker build . -t camundacloud/camunda-demo
docker tag camundacloud/camunda-demo gcr.io/camundacloud/camunda-demo
docker push gcr.io/camundacloud/camunda-demo