/bpmn-to-code:test-process-adapter <adapter class>[#method]from bpmn-to-code
Writes unit tests for process adapter methods, asserting engine commands (process/message/signal name, correlation, variables). Use when testing a process adapter or after create-process-adapter.
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 outbound call in isolation. Mock or stub the engine client and run no engine. The engine-specific test shape lives in resources/.
PROCESS_ID, Messages.X.value, Signals.X.value, FlowNodes.<Node>.Variables.X.value), never string literals.underTest, MockK, confirmVerified@DisplayName, Mockito, verifyNoMoreInteractionsResolve $ARGUMENTS to the adapter and the method under test. If no method is given, test every public method that has no test yet, one test each.
Pick the style from the adapter's dependencies:
| Adapter uses | Style |
|---|---|
StartProcessApi, CorrelationApi, SignalApi, UserTaskCompletionApi | process-engine-api |
a generated engine REST client (MessageApi, TaskApi, …) | c7-external-task |
RuntimeService / TaskService | c7-delegate |
CamundaClient / ZeebeClient | zeebe |
Then read resources/<style>-<kotlin|java>.md, for example resources/zeebe-kotlin.md.
Run only this test: ./gradlew test --tests '<TestClass>' or ./mvnw test -Dtest=<TestClass>.
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.Other plugins' skills for the same job