Building a Type-Safe Kotlin DSL for BPMN 2.0
Design a Kotlin internal DSL that compiles BPMN collaborations into an immutable AST, validates them, emits BPMN 2.0 semantic XML plus BPMN DI layout, and renders in standards-compatible viewers — with the buyer process deployable to Flowable.