From camunda-skills
Writes, debugs, evaluates, and validates FEEL expressions for Camunda 8 across BPMN, DMN, and Forms. Covers gateway conditions, I/O mappings, timers, form rules, and connector expressions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/camunda-skills:camunda-feelThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Write, debug, and evaluate FEEL expressions used in Camunda 8 BPMN processes, DMN decisions, and forms.
Write, debug, and evaluate FEEL expressions used in Camunda 8 BPMN processes, DMN decisions, and forms.
c8ctl add profile) — provides c8ctl feel evaluatePOST /v2/expression/evaluation)fromAi() parameter declarations, or toolCallResult shaping in an AI Agent processFEEL is used for:
All FEEL expressions in BPMN XML must be prefixed with =:
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=amount > 1000</bpmn:conditionExpression>
To validate and debug FEEL expressions, use c8ctl feel evaluate. By default this runs against the configured cluster's Scala FEEL engine — the same engine that Zeebe uses at runtime, so results match production behavior exactly.
# Simple expression
c8ctl feel evaluate '1 + 2'
# Expression with individual variables (leading = optional)
c8ctl feel evaluate '=amount * 1.15' --var amount=100
# Multiple variables
c8ctl feel evaluate 'a + b' --var a=1 --var b=2
# JSON values for complex types
c8ctl feel evaluate 'sum(items)' --var 'items=[1,2,3]'
# Bulk variables as a single JSON object
c8ctl feel evaluate 'orderTotal > 1000 and customer.tier = "premium"' \
--vars '{"orderTotal": 1500, "customer": {"tier": "premium"}}'
# Dot-path nesting on the CLI
c8ctl feel evaluate 'customer.name' --var customer.name=Alice
Debugging workflow:
c8ctl feel evaluate to validate against the cluster engine--engine local)c8ctl feel evaluate --engine local evaluates expressions locally using the feelin JavaScript engine — useful when no cluster is available. Use only when explicitly requested or when no cluster is reachable AND the user has confirmed the fallback. Never silently fall back.
feelin behaves DIFFERENTLY from the Scala FEEL engine that Zeebe runs in production. Subtle differences in type coercion, function support, and date/time handling can cause an expression that passes locally to fail in the cluster (and vice versa). Always re-validate against the cluster before relying on a result obtained with --engine local.
c8ctl feel evaluate '=amount * 1.15' --var amount=100 --engine local
Concrete divergence: today() returns a different type. On the cluster engine, today() returns a date (e.g. 2026-05-12). On --engine local (feelin), it returns a date-time at midnight in the local timezone (e.g. 2026-05-12T00:00:00.000+02:00). This breaks downstream comparisons:
# cluster engine — passes
c8ctl feel evaluate 'today() = date("2026-05-12")' # → true
# local engine — fails silently
c8ctl feel evaluate 'today() = date("2026-05-12")' --engine local # → false
If a date-typed argument is required by a downstream function, the local result may also raise a type error that the cluster never sees.
Data Types: Numbers (1, 1.5), Strings ("hello"), Booleans (true/false), null, Dates (date("2024-01-15")), Times (time("14:30:00")), Date-times (date and time("2024-01-15T14:30:00")), Durations (duration("P1D")), Lists ([1, 2, 3]), Contexts ({name: "Alice"}), Ranges ([1..10])
Operators: +, -, *, /, **, =, !=, <, >, <=, >=, and, or, not(), between x and y, in
If-Then-Else (every if requires else):
if score >= 80 then "A" else if score >= 60 then "B" else "C"
For Loops:
for x in [1, 2, 3] return x * 2
Quantifiers:
every x in items satisfies x.price > 0
some x in items satisfies x.status = "urgent"
List Operations:
list[1], negative: list[-1]items[price > 100]items.name extracts name from each itemContext Operations:
customer.nameget value(ctx, "key"), get entries(ctx)context put(ctx, "key", value), context merge(ctx1, ctx2)Example — Gateway condition:
=orderTotal > 1000 and customer.tier = "premium"
Input mapping with transformation:
="https://api.example.com/users/" + string(userId)
The string() wrapper is required, not stylistic. FEEL does not auto-coerce types in arithmetic — "prefix-" + userId (where userId is a number) silently evaluates to null with a Can't add 'N' to '"prefix-"' warning, not an error. See references/common-patterns.md § Type Coercion Pitfalls for the full rule and debugging tip.
Result expression (extract from API response):
={user: response.body, status: response.statusCode}
Error expression (throw BPMN error on failure):
=if response.statusCode >= 400 then bpmnError("HTTP_ERROR", string(response.statusCode)) else null
Timer duration (FEEL required):
="PT" + string(delayHours) + "H"
Null-safe access:
=if customer != null then customer.name else "Unknown"
c8ctl feel evaluate '<expr>' --vars '<json>' with the variables you expect at runtime to confirm.null unexpectedly — typical causes: type mismatch in + concatenation (see string() rule above); 0-based indexing (use events[1], not events[0]); calling a non-existent helper (first() doesn't exist); missing commas between context entries. c8ctl feel evaluate prints an actual null result as <null> in text mode to distinguish it from the FEEL string "null" (which still prints as null).For detailed reference material, read from references/:
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub camunda/skills --plugin camunda-skills