{"id":38161250,"url":"https://github.com/emaarco/bpmn-to-code","last_synced_at":"2026-04-26T21:02:29.893Z","repository":{"id":282376249,"uuid":"913386666","full_name":"emaarco/bpmn-to-code","owner":"emaarco","description":"Gradle and Maven plugin that bridges gaps between BPMN and code - fostering the creation of clean process-automation solutions 🪴","archived":false,"fork":false,"pushed_at":"2026-04-22T10:00:01.000Z","size":1614,"stargazers_count":17,"open_issues_count":15,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-22T10:33:34.439Z","etag":null,"topics":["bpmn","camunda7","codegenerator","java","kotlin","operaton","zeebe"],"latest_commit_sha":null,"homepage":"https://emaarco.github.io/bpmn-to-code/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emaarco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-07T15:31:57.000Z","updated_at":"2026-04-22T10:32:59.000Z","dependencies_parsed_at":"2026-01-12T17:05:19.527Z","dependency_job_id":null,"html_url":"https://github.com/emaarco/bpmn-to-code","commit_stats":null,"previous_names":["emaarco/bpmn-to-code"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/emaarco/bpmn-to-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emaarco%2Fbpmn-to-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emaarco%2Fbpmn-to-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emaarco%2Fbpmn-to-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emaarco%2Fbpmn-to-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emaarco","download_url":"https://codeload.github.com/emaarco/bpmn-to-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emaarco%2Fbpmn-to-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32312507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bpmn","camunda7","codegenerator","java","kotlin","operaton","zeebe"],"created_at":"2026-01-16T23:15:07.900Z","updated_at":"2026-04-26T21:02:29.886Z","avatar_url":"https://github.com/emaarco.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e **bpmn-to-code is early-stage and actively developing.**\n\u003e The four pillars — Generate, Validate, Surface, Ship — are taking shape, but expect rough edges.\n\u003e Feedback and contributions are very welcome.\n\n[![Documentation](https://img.shields.io/badge/docs-bpmn--to--code-blue?style=flat-square)](https://emaarco.github.io/bpmn-to-code/)\n[![Web App](https://img.shields.io/badge/web--app-try%20in%20browser-brightgreen?style=flat-square)](https://bpmn-to-code.miragon.io/static/index.html)\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.emaarco/bpmn-to-code-maven?style=flat-square\u0026label=maven)](https://central.sonatype.com/artifact/io.github.emaarco/bpmn-to-code-maven)\n[![Gradle Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/io.github.emaarco.bpmn-to-code-gradle?style=flat-square\u0026label=gradle)](https://plugins.gradle.org/plugin/io.github.emaarco.bpmn-to-code-gradle)\n\n# bpmn-to-code\n\nType-safe constants from your BPMN model — for your compiler, your tests, and your AI agents.\n\n**Generate · Validate · Surface · Ship** — a type-safe BPMN toolkit for JVM projects.\n\n![bpmn-to-code preview](docs/public/preview.gif)\n\n## What It Does\n\n### Generate — Type-Safe APIs\n\nbpmn-to-code reads your BPMN files and generates typed constants from them. Every element ID, message name, and service task type becomes a compiled constant. Rename a task in the modeler → compiler error. No more silent runtime failures from hardcoded strings.\n\n```kotlin\n// Before\n@JobWorker(type = \"newsletter.sendConfirmationMail\")  // copied from modeler, no safety net\nfun send() { ... }\n\n// After — generated from the BPMN model\n@JobWorker(type = NewsletterSubscriptionProcessApi.ServiceTasks.NEWSLETTER_SEND_CONFIRMATION_MAIL)\nfun send() { ... }\n```\n\n### Validate — Architecture Rules for BPMN _(beta)_\n\nLike ArchUnit for Java, `bpmn-to-code-testing` lets you write architecture tests for your BPMN models. The standalone `validateBpmnModels` Gradle task and `validate-bpmn` Maven goal run the same checks in CI.\n\n```kotlin\nBpmnValidator\n    .fromClasspath(\"bpmn/\")\n    .engine(ProcessEngine.ZEEBE)\n    .validate()\n    .assertNoViolations()\n```\n\n11 built-in rules cover missing implementations, undefined timers, empty processes, naming violations, and variable collisions. Add custom rules by implementing `BpmnValidationRule`.\n\n### Surface — Process Structure in Code _(beta)_\n\nGenerates a structured JSON alongside the API. Your process is readable by AI agents, code reviewers, and CI — without opening Camunda Modeler.\n\n```json\n{\n  \"processId\": \"newsletterSubscription\",\n  \"flowNodes\": [\n    { \"id\": \"StartEvent_SubmitRegistrationForm\", \"displayName\": \"Submit newsletter form\", \"elementType\": \"START_EVENT\" },\n    { \"id\": \"Activity_SendConfirmationMail\", \"displayName\": \"Send confirmation mail\", \"elementType\": \"SERVICE_TASK\" }\n  ]\n}\n```\n\nBPMN files are XML — technically readable, but full of visual layout data, namespace declarations, and rendering hints that make them noisy for AI tools. The generated JSON strips all of that away:\n\n- **Smaller** — no diagram coordinates, waypoints, or SVG-style metadata\n- **Focused** — only the elements and relationships that matter for logic and implementation\n- **Structured** — flow nodes, sequence flows, messages, and errors in predictable, typed fields\n\nThe result is a compact, deterministic representation that AI agents can reason about accurately — with no hallucinated element IDs, because the JSON is derived directly from the BPMN model by rule.\n\n### Ship — Agent Skills _(beta)_\n\nDrop-in agent skills that automate the entire setup workflow. Integrate the plugin into your project in one prompt, scaffold a complete process service from a BPMN file, and migrate hardcoded strings to the generated API — without touching any config manually.\n\n```bash\n/plugin marketplace add emaarco/bpmn-to-code\n/plugin install bpmn-to-code@bpmn-to-code\n```\n\nWorks with Claude Code out of the box.\n\n## Gradle Setup\n\n```kotlin\nplugins {\n    id(\"io.github.emaarco.bpmn-to-code-gradle\") version \"2.0.0\"\n}\n\ntasks.named(\"generateBpmnModelApi\", GenerateBpmnModelsTask::class) {\n    baseDir = projectDir.toString()\n    filePattern = \"src/main/resources/**/*.bpmn\"\n    outputFolderPath = \"$projectDir/src/main/kotlin\"\n    packagePath = \"com.example.process\"\n    outputLanguage = OutputLanguage.KOTLIN\n    processEngine = ProcessEngine.ZEEBE\n}\n```\n\n## Maven Setup\n\n```xml\n\u003cplugin\u003e\n    \u003cgroupId\u003eio.github.emaarco\u003c/groupId\u003e\n    \u003cartifactId\u003ebpmn-to-code-maven\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.0\u003c/version\u003e\n    \u003cexecutions\u003e\n        \u003cexecution\u003e\n            \u003cgoals\u003e\u003cgoal\u003egenerate-bpmn-api\u003c/goal\u003e\u003c/goals\u003e\n        \u003c/execution\u003e\n    \u003c/executions\u003e\n    \u003cconfiguration\u003e\n        \u003cbaseDir\u003e${project.basedir}\u003c/baseDir\u003e\n        \u003cfilePattern\u003esrc/main/resources/*.bpmn\u003c/filePattern\u003e\n        \u003coutputFolderPath\u003e${project.basedir}/src/main/java\u003c/outputFolderPath\u003e\n        \u003cpackagePath\u003ecom.example.process\u003c/packagePath\u003e\n        \u003coutputLanguage\u003eKOTLIN\u003c/outputLanguage\u003e\n        \u003cprocessEngine\u003eZEEBE\u003c/processEngine\u003e\n    \u003c/configuration\u003e\n\u003c/plugin\u003e\n```\n\n## Testing Module\n\n```kotlin\ndependencies {\n    testImplementation(\"io.github.emaarco:bpmn-to-code-testing:2.0.0\")\n}\n```\n\n## Supported Engines\n\n| Engine | Value |\n|--------|-------|\n| Camunda 8 / Zeebe | `ZEEBE` |\n| Camunda 7 / CIB7 | `CAMUNDA_7` |\n| Operaton | `OPERATON` |\n\n## Get It\n\n- 📦 [Maven Central](https://central.sonatype.com/artifact/io.github.emaarco/bpmn-to-code-maven) — Maven Plugin\n- 📦 [Gradle Plugin Portal](https://plugins.gradle.org/plugin/io.github.emaarco.bpmn-to-code-gradle) — Gradle Plugin\n- 🌐 [Web App](https://bpmn-to-code.miragon.io/static/index.html) — Try in browser, no installation\n- 🐳 [Docker Hub](https://hub.docker.com/r/emaarco/bpmn-to-code-web) — Self-hostable container\n- 🤖 [MCP Server](bpmn-to-code-mcp/README.md) — AI-assisted generation inside your editor\n\n## Project Structure\n\n- **bpmn-to-code-core** — core parsing and generation logic\n- **bpmn-to-code-gradle** — Gradle plugin\n- **bpmn-to-code-maven** — Maven plugin\n- **bpmn-to-code-testing** — BPMN architecture testing library\n- **bpmn-to-code-web** — browser-based web app\n- **bpmn-to-code-mcp** — MCP server for AI-assisted generation\n\n## Contributing\n\nCommunity contributions are welcome. Submit issues, open pull requests, or start a discussion on [GitHub](https://github.com/emaarco/bpmn-to-code).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femaarco%2Fbpmn-to-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femaarco%2Fbpmn-to-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femaarco%2Fbpmn-to-code/lists"}