Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.27 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.27 KB

Camunda Spring-Boot Demo Sample

Setup

Create MySQL Database

CREATE DATABASE `camunda-sample`;

Create Schema

Run the schema.sql file

Run Application

mvn spring-boot:run

Samples

Java Delegate Sample

Delegation Code allows you to execute external Java code, scripts or evaluate expressions when certain events occur during process execution. https://docs.camunda.org/manual/7.8/reference/bpmn20/tasks/service-task/

http://localhost:8080/api/delegate-sample/{name}

Camunda Spin Sample

Camunda Spin is a library for simple XML and JSON processing on the JVM (Java Virtual Machine), targeting Java and JVM-based scripting languages such as Groovy, JRuby, Jython, JavaScript and Java Expression Language. https://docs.camunda.org/manual/7.8/reference/spin/

For this sample, we are going to use the API provided by https://restcountries.eu/. After we complete the call successfully, we will return the name of the country.

http://localhost:8080/api/spin-sample/{currency}