Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.13 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.13 KB

Simple Ktor example with Camunda

,--. ,--.   ,--.                      ,-----.                                          ,--.          
|  .'   / ,-'  '-.  ,---.  ,--.--.   '  .--./  ,--,--. ,--,--,--. ,--.,--. ,--,--,   ,-|  |  ,--,--. 
|  .   '  '-.  .-' | .-. | |  .--'   |  |     ' ,-.  | |        | |  ||  | |      \ ' .-. | ' ,-.  | 
|  |\   \   |  |   ' '-' ' |  |      '  '--'\ \ '-'  | |  |  |  | '  ''  ' |  ||  | \ `-' | \ '-'  | 
`--' '--'   `--'    `---'  `--'       `-----'  `--`--' `--`--`--'  `----'  `--''--'  `---'   `--`--' 
  • Starts a camunda engine with InMemory Configuration
  • Deploys automatically all *bpmn files
  • Register all classes which implements JavaDelegate, TaskListener, ExecutionListener and Variable Listeners as camunda delegates

Setup

./gradle clean package

Run

./gradle run

FatJar / ShadowJar

Build

./gradlew clean build shadowJar

Run

java -jar build/libs/ktor-camunda.jar

Start process

GET http://localhost:8080/process/startByKey/ktor-process

Ref

KTor

Camunda

Shadow Jar