Skip to content

Model it once.
Code against it.

Turns every BPMN process into a typed API, checks the models in your tests and gives your agent the skills to implement them.

Languages
Kotlin · Java · C# · TypeScript (C# and TS experimental)
Engines
Camunda 8 · Camunda 7 · Operaton
Build
Gradle · Maven · MSBuild · CLI
id("io.miragon.bpmn-to-code-gradle") version "7.0.1"

Needs JDK 21+7.0.1

Try the demo

Upload a BPMN file in the browser, download its API.
No install, no account.

miravelo-leasing
BikeLeasingProcessApi.ktgenerated
1// Generated by bpmn-to-code
37object BikeLeasingProcessApi {
38  val PROCESS_ID: ProcessId = ProcessId("bikeLeasing")
45  object FlowNodes {
625    object ServiceTaskSendContract : AbstractFlowNode(…), HasJobType, … {
632      override val jobType: String = ServiceTasks.MIRAVELO_SEND_CONTRACT
SendContractWorker.ktyour code
12  @JobWorker(type = ServiceTasks.MIRAVELO_SEND_CONTRACT)
13  fun send(@Variable(name = ProcessVariables.APPLICATION_ID) id: String) =
14      mapOf(ServiceTaskSendContract.Variables.CONTRACT_ID.value to send(id))