/bpmn-to-code:test-process <process id> <scenario, e.g. 'happy path' or 'bike unavailable'>from bpmn-to-code
Writes one BPMN process test that runs a scenario on a test engine and asserts the walked path as a typed ProcessPath. Use when testing a process path, gateway branch, boundary event, or timer.
Ships in bpmn-to-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Test one scenario of a process end to end on a test engine:
Assert the walked path with ProcessPath from bpmn-to-code-runtime. The engine-specific harness lives in resources/.
FlowNodes: ProcessPath in Kotlin, PathWalk in Java. Never list element ids as strings. If the model changes, the test must stop compiling.nodesOf).FlowNodes and follow each node's Next. Gateway flows carry their condition, boundary events their attachedTo. If the API is missing, run /setup-bpmn-to-code first. If it is older than the BPMN file, regenerate.$ARGUMENTS into a concrete walk:
Pick the style by the first match in the build files:
| Dependency | Style |
|---|---|
dev.bpm-crafters.process-engine-api | process-engine-api |
…external-task-client… (Camunda 7, CIB seven, Operaton) | c7-external-task |
…bpm-spring-boot-starter… of Camunda 7, CIB seven, Operaton or Fluxnova | c7-delegate |
io.camunda:camunda-spring-boot-starter | zeebe |
Then read resources/<style>-<kotlin|java>.md, for example resources/zeebe-kotlin.md. If the project already has process tests, reuse their base class and helpers instead of the resource's.
val path = ProcessPath.from(FlowNodes.StartEventLeasingRequestReceived)
.then { it.serviceTaskValidateApplication }
.then { it.businessRuleTaskCheckCreditRating }
.then { it.gatewayIsSolvent }
| Situation | Step |
|---|---|
| a subprocess | onto { it.sub }.inside { enter { it.start }.then { … } } |
| leaving through a boundary event | interruptedBy(FlowNodes.Host) { it.boundary } |
| compensation | throwingCompensation(FlowNodes.Boundary) { it.handler } |
Java uses PathWalk.from(FlowNodes.x()).then(n -> n.y())…end(n -> n.z()).getIds(). Full step table: https://miragon.github.io/bpmn-to-code/guide/process-path.
Follow the resource for:
path.idsRun only this test. A failure usually means the scenario's mocked results do not lead down the walked branch. Fix the setup, not the path, unless the model really differs from the expectation.
resources/c7-delegate-java.md (opens in a new tab)resources/c7-delegate-kotlin.md (opens in a new tab)resources/c7-external-task-java.md (opens in a new tab)resources/c7-external-task-kotlin.md (opens in a new tab)resources/process-engine-api-java.md (opens in a new tab)resources/process-engine-api-kotlin.md (opens in a new tab)resources/zeebe-java.md (opens in a new tab)resources/zeebe-kotlin.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub miragon/bpmn-to-code --plugin bpmn-to-code8 skills in this plugin
/create-process-adapterAdds one call from the application to the process engine (start a process, correlate a message, send a signal, complete a user task) as an outbound port and process adapter method. Use when code has to start or continue a BPMN process./create-workerImplements one BPMN service task as a job worker, JavaDelegate or external-task handler that calls one use case, with names from the generated Process API. Use when a service task or job type needs code that handles it./generate-rule-to-enforce-bpmn-styleguideTurns one rule of a BPMN_STYLE_GUIDE.md into a Kotlin validation rule for bpmn-to-code-testing and registers it in the model validation test. Use when a modeling convention should be enforced in the build./migrate-to-bpmn-to-code-apisReplaces hardcoded BPMN element ids, job types and message names with references to the generated Process API, or rewrites 5.x API references to 6.x with --from-5x. Use when moving code onto the Process API or upgrading to bpmn-to-code 6./setup-bpmn-to-codeSets up bpmn-to-code in an existing project with the Gradle plugin, the Maven plugin or the CLI, so the build generates a type-safe Process API from the BPMN models, with an optional GitHub Actions check that the committed API is up to date. Use when adding bpmn-to-code or BPMN code generation to a project, or a CI check for a stale generated API./test-process-adapterWrites the unit test for one process adapter method and asserts the engine command: process, message or signal name, correlation and variables. Use when testing a process adapter or after create-process-adapter.Other plugins' skills for the same job