From 9dcab1ed4dead5d383c1c076cfa1d69583d6c40c Mon Sep 17 00:00:00 2001 From: Karsten Thoms Date: Mon, 6 Jul 2026 06:39:37 +0200 Subject: [PATCH 1/7] feat: Create script to make examples self-contained and apply transformations Add scripts/make-examples-self-contained.py that: - Removes parent operaton-examples-aggregate reference from all 47 examples - Adds/updates maven-failsafe-plugin version 3.5.6 with integration-test/verify goals - Adds rancher profile with Docker socket and Testcontainers environment variables This makes all examples self-contained and ready to run independently. Co-Authored-By: Claude Haiku 4.5 --- .../bpmn-model-api-generate/pom.xml | 61 +++- .../bpmn-model-api-parse/pom.xml | 61 +++- .../command-interceptor/pom.xml | 61 +++- .../advanced-features/engine-plugin/pom.xml | 61 +++- .../job-retry-profile/pom.xml | 60 +++- .../advanced-features/multi-tenancy/pom.xml | 61 +++- .../process-migration/pom.xml | 61 +++- examples/advanced-features/spin-json/pom.xml | 61 +++- .../advanced-features/unit-testing/pom.xml | 62 ++-- .../xslt-script-task/pom.xml | 61 +++- .../core-examples/async-continuation/pom.xml | 61 +++- examples/core-examples/call-activity/pom.xml | 61 +++- examples/core-examples/dmn-decision/pom.xml | 71 +++-- .../core-examples/error-compensation/pom.xml | 61 +++- .../core-examples/event-subprocess/pom.xml | 52 ++-- .../external-task-worker/pom.xml | 61 +++- .../core-examples/getting-started/pom.xml | 61 +++- .../core-examples/inclusive-gateway/pom.xml | 52 ++-- .../core-examples/integration-kafka/pom.xml | 61 +++- .../core-examples/integration-mail/pom.xml | 61 +++- .../core-examples/integration-rest/pom.xml | 61 +++- examples/core-examples/message-events/pom.xml | 60 +++- examples/core-examples/multi-instance/pom.xml | 61 +++- examples/core-examples/service-tasks/pom.xml | 61 +++- examples/core-examples/signal-events/pom.xml | 52 ++-- examples/core-examples/timer-events/pom.xml | 60 +++- .../core-examples/user-task-forms/pom.xml | 61 +++- .../distribution-tomcat/pom.xml | 61 +++- .../distribution-wildfly/pom.xml | 62 ++-- .../integration-connectors/pom.xml | 61 +++- .../integration-keycloak/pom.xml | 60 +++- .../runtime-quarkus/pom.xml | 61 +++- .../use-cases/approval-sla-metrics/pom.xml | 61 +++- .../use-cases/bank-account-opening/pom.xml | 45 ++- .../use-cases/candidate-screening/pom.xml | 45 ++- .../use-cases/complaint-resolution/pom.xml | 61 +++- examples/use-cases/contract-signing/pom.xml | 285 +++++++++--------- .../use-cases/employee-onboarding/pom.xml | 61 +++- .../use-cases/expense-reimbursement/pom.xml | 45 ++- .../use-cases/incident-management/pom.xml | 62 ++-- examples/use-cases/insurance-claim/pom.xml | 62 ++-- examples/use-cases/leave-request/pom.xml | 61 +++- examples/use-cases/loan-application/pom.xml | 61 +++- examples/use-cases/order-fulfillment/pom.xml | 62 ++-- .../procurement-collaboration/pom.xml | 61 +++- .../use-cases/supply-chain-tracking/pom.xml | 61 +++- examples/use-cases/travel-booking/pom.xml | 62 ++-- scripts/make-examples-self-contained.py | 206 +++++++++++++ 48 files changed, 2353 insertions(+), 881 deletions(-) create mode 100755 scripts/make-examples-self-contained.py diff --git a/examples/advanced-features/bpmn-model-api-generate/pom.xml b/examples/advanced-features/bpmn-model-api-generate/pom.xml index aa24c6b..a4fcaa4 100644 --- a/examples/advanced-features/bpmn-model-api-generate/pom.xml +++ b/examples/advanced-features/bpmn-model-api-generate/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples bpmn-model-api-generate 0.1.0-SNAPSHOT jar Operaton Example: BPMN Model API Generate - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,7 +75,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/advanced-features/bpmn-model-api-parse/pom.xml b/examples/advanced-features/bpmn-model-api-parse/pom.xml index e3a1bb0..4b14e25 100644 --- a/examples/advanced-features/bpmn-model-api-parse/pom.xml +++ b/examples/advanced-features/bpmn-model-api-parse/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples bpmn-model-api-parse 0.1.0-SNAPSHOT jar Operaton Example: BPMN Model API Parse - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,7 +75,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/advanced-features/command-interceptor/pom.xml b/examples/advanced-features/command-interceptor/pom.xml index bd2e7f1..9ac7b9c 100644 --- a/examples/advanced-features/command-interceptor/pom.xml +++ b/examples/advanced-features/command-interceptor/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples command-interceptor 0.1.0-SNAPSHOT jar Operaton Example: Command Interceptor - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,7 +75,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/advanced-features/engine-plugin/pom.xml b/examples/advanced-features/engine-plugin/pom.xml index 9bdbaa6..62497c4 100644 --- a/examples/advanced-features/engine-plugin/pom.xml +++ b/examples/advanced-features/engine-plugin/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples engine-plugin 0.1.0-SNAPSHOT jar Operaton Example: Process Engine Plugin - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,7 +75,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/advanced-features/job-retry-profile/pom.xml b/examples/advanced-features/job-retry-profile/pom.xml index 73ff05d..a78bd7a 100644 --- a/examples/advanced-features/job-retry-profile/pom.xml +++ b/examples/advanced-features/job-retry-profile/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples job-retry-profile 0.1.0-SNAPSHOT jar Operaton Example: Job Retry Profile - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -78,7 +65,6 @@ test - @@ -89,7 +75,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/advanced-features/multi-tenancy/pom.xml b/examples/advanced-features/multi-tenancy/pom.xml index bf13805..87dfd9d 100644 --- a/examples/advanced-features/multi-tenancy/pom.xml +++ b/examples/advanced-features/multi-tenancy/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples multi-tenancy 0.1.0-SNAPSHOT jar Operaton Example: Multi-Tenancy - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,7 +75,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/advanced-features/process-migration/pom.xml b/examples/advanced-features/process-migration/pom.xml index 412e972..aad931c 100644 --- a/examples/advanced-features/process-migration/pom.xml +++ b/examples/advanced-features/process-migration/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples process-migration 0.1.0-SNAPSHOT jar Operaton Example: Process Migration - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,7 +75,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/advanced-features/spin-json/pom.xml b/examples/advanced-features/spin-json/pom.xml index b5fb87b..fe97831 100644 --- a/examples/advanced-features/spin-json/pom.xml +++ b/examples/advanced-features/spin-json/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples spin-json 0.1.0-SNAPSHOT jar Operaton Example: Spin JSON Variables - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -67,7 +54,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -89,7 +75,6 @@ test - @@ -100,7 +85,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/advanced-features/unit-testing/pom.xml b/examples/advanced-features/unit-testing/pom.xml index fb4b490..a2e1124 100644 --- a/examples/advanced-features/unit-testing/pom.xml +++ b/examples/advanced-features/unit-testing/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples unit-testing 0.1.0-SNAPSHOT jar Operaton Example: Unit Testing with JUnit 5 - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.operaton.bpm @@ -70,7 +56,6 @@ h2 test - org.springframework.boot @@ -93,7 +78,6 @@ test - @@ -104,7 +88,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/advanced-features/xslt-script-task/pom.xml b/examples/advanced-features/xslt-script-task/pom.xml index 98b3b1f..5470e6a 100644 --- a/examples/advanced-features/xslt-script-task/pom.xml +++ b/examples/advanced-features/xslt-script-task/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples xslt-script-task 0.1.0-SNAPSHOT jar Operaton Example: XSLT Script Task - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -67,7 +54,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -89,7 +75,6 @@ test - @@ -100,7 +85,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/async-continuation/pom.xml b/examples/core-examples/async-continuation/pom.xml index ff52ec7..648fef9 100644 --- a/examples/core-examples/async-continuation/pom.xml +++ b/examples/core-examples/async-continuation/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples async-continuation 0.1.0-SNAPSHOT jar Operaton Example: Async Continuation - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,7 +75,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/call-activity/pom.xml b/examples/core-examples/call-activity/pom.xml index 3fd24d3..1fe1808 100644 --- a/examples/core-examples/call-activity/pom.xml +++ b/examples/core-examples/call-activity/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples call-activity 0.1.0-SNAPSHOT jar Operaton Example: Call Activity - 21 4.1.0 @@ -24,7 +13,6 @@ 21 UTF-8 - @@ -43,7 +31,6 @@ - org.operaton.bpm.springboot @@ -58,7 +45,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -80,7 +66,6 @@ test - @@ -91,7 +76,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/dmn-decision/pom.xml b/examples/core-examples/dmn-decision/pom.xml index 67790df..cfb299b 100644 --- a/examples/core-examples/dmn-decision/pom.xml +++ b/examples/core-examples/dmn-decision/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples dmn-decision 0.1.0-SNAPSHOT jar Operaton Example: DMN Decision - 21 4.1.0 @@ -24,7 +13,6 @@ 21 UTF-8 - @@ -43,7 +31,6 @@ - org.operaton.bpm.springboot @@ -58,7 +45,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -77,10 +63,9 @@ org.testcontainers testcontainers-postgresql - test + test - @@ -91,10 +76,26 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + - @@ -109,6 +110,7 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 unix://${user.home}/.rd/docker.sock @@ -116,6 +118,22 @@ true + + + + integration-test + verify + + + + + + + integration-test + verify + + + @@ -133,6 +151,7 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 unix://${user.home}/.colima/default/docker.sock @@ -140,6 +159,22 @@ true + + + + integration-test + verify + + + + + + + integration-test + verify + + + diff --git a/examples/core-examples/error-compensation/pom.xml b/examples/core-examples/error-compensation/pom.xml index a57a9bc..54ea2b5 100644 --- a/examples/core-examples/error-compensation/pom.xml +++ b/examples/core-examples/error-compensation/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples error-compensation 0.1.0-SNAPSHOT jar Operaton Example: Error Compensation - 21 4.1.0 @@ -24,7 +13,6 @@ 21 UTF-8 - @@ -43,7 +31,6 @@ - org.operaton.bpm.springboot @@ -58,7 +45,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -80,7 +66,6 @@ test - @@ -91,7 +76,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/event-subprocess/pom.xml b/examples/core-examples/event-subprocess/pom.xml index a546f48..be395d3 100644 --- a/examples/core-examples/event-subprocess/pom.xml +++ b/examples/core-examples/event-subprocess/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples event-subprocess 0.1.0-SNAPSHOT jar Operaton Example: Event Subprocess - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,10 +75,26 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + - @@ -108,6 +109,7 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 unix://${user.home}/.rd/docker.sock @@ -115,6 +117,22 @@ true + + + + integration-test + verify + + + + + + + integration-test + verify + + + diff --git a/examples/core-examples/external-task-worker/pom.xml b/examples/core-examples/external-task-worker/pom.xml index b510e42..4f7ba5a 100644 --- a/examples/core-examples/external-task-worker/pom.xml +++ b/examples/core-examples/external-task-worker/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples external-task-worker 0.1.0-SNAPSHOT jar Operaton Example: External Task Worker - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -61,7 +48,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -83,7 +69,6 @@ test - @@ -94,7 +79,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/getting-started/pom.xml b/examples/core-examples/getting-started/pom.xml index 5bdfcbc..9d4fde2 100644 --- a/examples/core-examples/getting-started/pom.xml +++ b/examples/core-examples/getting-started/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples getting-started 0.1.0-SNAPSHOT jar Operaton Example: Getting Started - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,7 +75,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/inclusive-gateway/pom.xml b/examples/core-examples/inclusive-gateway/pom.xml index 44fc4f4..3288e7f 100644 --- a/examples/core-examples/inclusive-gateway/pom.xml +++ b/examples/core-examples/inclusive-gateway/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples inclusive-gateway 0.1.0-SNAPSHOT jar Operaton Example: Inclusive Gateway - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,10 +75,26 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + - @@ -108,6 +109,7 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 unix://${user.home}/.rd/docker.sock @@ -115,6 +117,22 @@ true + + + + integration-test + verify + + + + + + + integration-test + verify + + + diff --git a/examples/core-examples/integration-kafka/pom.xml b/examples/core-examples/integration-kafka/pom.xml index d760602..91cb35b 100644 --- a/examples/core-examples/integration-kafka/pom.xml +++ b/examples/core-examples/integration-kafka/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples integration-kafka 0.1.0-SNAPSHOT jar Operaton Example: Kafka Integration - 21 4.1.0 @@ -24,7 +13,6 @@ 21 UTF-8 - @@ -43,7 +31,6 @@ - org.operaton.bpm.springboot @@ -62,7 +49,6 @@ org.springframework.boot spring-boot-starter-kafka - org.springframework.boot spring-boot-starter-test @@ -94,7 +80,6 @@ test - @@ -105,7 +90,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/integration-mail/pom.xml b/examples/core-examples/integration-mail/pom.xml index c4c833f..0725018 100644 --- a/examples/core-examples/integration-mail/pom.xml +++ b/examples/core-examples/integration-mail/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples integration-mail 0.1.0-SNAPSHOT jar Operaton Example: Mail Integration - 21 4.1.0 @@ -24,7 +13,6 @@ 21 UTF-8 - @@ -43,7 +31,6 @@ - org.operaton.bpm.springboot @@ -62,7 +49,6 @@ org.springframework.boot spring-boot-starter-mail - org.springframework.boot spring-boot-starter-test @@ -84,7 +70,6 @@ test - @@ -95,7 +80,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/integration-rest/pom.xml b/examples/core-examples/integration-rest/pom.xml index e065f5b..e800e8c 100644 --- a/examples/core-examples/integration-rest/pom.xml +++ b/examples/core-examples/integration-rest/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples integration-rest 0.1.0-SNAPSHOT jar Operaton Example: REST Integration - 21 4.1.0 @@ -24,7 +13,6 @@ 21 UTF-8 - @@ -43,7 +31,6 @@ - org.operaton.bpm.springboot @@ -58,7 +45,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -86,7 +72,6 @@ test - @@ -97,7 +82,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/message-events/pom.xml b/examples/core-examples/message-events/pom.xml index 456b2e9..f3a30a8 100644 --- a/examples/core-examples/message-events/pom.xml +++ b/examples/core-examples/message-events/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples message-events 0.1.0-SNAPSHOT jar Operaton Example: Message Events - 21 4.1.0 @@ -24,7 +13,6 @@ 21 UTF-8 - @@ -43,7 +31,6 @@ - org.operaton.bpm.springboot @@ -79,7 +66,6 @@ test - @@ -90,7 +76,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/multi-instance/pom.xml b/examples/core-examples/multi-instance/pom.xml index 9555d8a..ead7f53 100644 --- a/examples/core-examples/multi-instance/pom.xml +++ b/examples/core-examples/multi-instance/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples multi-instance 0.1.0-SNAPSHOT jar Operaton Example: Multi-Instance - 21 4.1.0 @@ -24,7 +13,6 @@ 21 UTF-8 - @@ -43,7 +31,6 @@ - org.operaton.bpm.springboot @@ -58,7 +45,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -80,7 +66,6 @@ test - @@ -91,7 +76,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/service-tasks/pom.xml b/examples/core-examples/service-tasks/pom.xml index 5fc69ba..eaeab68 100644 --- a/examples/core-examples/service-tasks/pom.xml +++ b/examples/core-examples/service-tasks/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples service-tasks 0.1.0-SNAPSHOT jar Operaton Example: Service Tasks - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,7 +75,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/signal-events/pom.xml b/examples/core-examples/signal-events/pom.xml index 83ecb41..e3d8983 100644 --- a/examples/core-examples/signal-events/pom.xml +++ b/examples/core-examples/signal-events/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples signal-events 0.1.0-SNAPSHOT jar Operaton Example: Signal Events - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -57,7 +44,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -79,7 +65,6 @@ test - @@ -90,10 +75,26 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + - @@ -108,6 +109,7 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 unix://${user.home}/.rd/docker.sock @@ -115,6 +117,22 @@ true + + + + integration-test + verify + + + + + + + integration-test + verify + + + diff --git a/examples/core-examples/timer-events/pom.xml b/examples/core-examples/timer-events/pom.xml index caa513d..f47754c 100644 --- a/examples/core-examples/timer-events/pom.xml +++ b/examples/core-examples/timer-events/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples timer-events 0.1.0-SNAPSHOT jar Operaton Example: Timer Events - 21 4.1.0 @@ -24,7 +13,6 @@ 21 UTF-8 - @@ -43,7 +31,6 @@ - org.operaton.bpm.springboot @@ -79,7 +66,6 @@ test - @@ -90,7 +76,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/core-examples/user-task-forms/pom.xml b/examples/core-examples/user-task-forms/pom.xml index 8261de1..87859de 100644 --- a/examples/core-examples/user-task-forms/pom.xml +++ b/examples/core-examples/user-task-forms/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples user-task-forms 0.1.0-SNAPSHOT jar Operaton Example: User Task Forms - 21 4.1.0 @@ -24,7 +13,6 @@ 21 UTF-8 - @@ -43,7 +31,6 @@ - org.operaton.bpm.springboot @@ -58,7 +45,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -80,7 +66,6 @@ test - @@ -91,7 +76,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/platform-integration/distribution-tomcat/pom.xml b/examples/platform-integration/distribution-tomcat/pom.xml index 3be8867..033b14f 100644 --- a/examples/platform-integration/distribution-tomcat/pom.xml +++ b/examples/platform-integration/distribution-tomcat/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples distribution-tomcat 0.1.0-SNAPSHOT war Operaton Example: Distribution Tomcat - UTF-8 @@ -24,7 +13,6 @@ 2.1.2 2.0.5 - @@ -43,7 +31,6 @@ - @@ -57,7 +44,6 @@ 6.1.0 provided - org.junit.jupiter @@ -99,7 +85,6 @@ test - @@ -127,7 +112,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/platform-integration/distribution-wildfly/pom.xml b/examples/platform-integration/distribution-wildfly/pom.xml index c51b663..3f134ae 100644 --- a/examples/platform-integration/distribution-wildfly/pom.xml +++ b/examples/platform-integration/distribution-wildfly/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples distribution-wildfly 0.1.0-SNAPSHOT war Operaton Example: Distribution WildFly - UTF-8 @@ -25,7 +14,6 @@ 2.1.2 2.0.5 - @@ -51,7 +39,6 @@ - @@ -65,7 +52,6 @@ 6.1.0 provided - org.springframework @@ -79,7 +65,6 @@ org.springframework spring-web - org.junit.jupiter @@ -121,7 +106,6 @@ test - @@ -149,7 +133,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/platform-integration/integration-connectors/pom.xml b/examples/platform-integration/integration-connectors/pom.xml index 3f3d553..d80be98 100644 --- a/examples/platform-integration/integration-connectors/pom.xml +++ b/examples/platform-integration/integration-connectors/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples integration-connectors 0.1.0-SNAPSHOT jar Operaton Example: Integration Connectors - UTF-8 21 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -65,7 +52,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -93,7 +79,6 @@ test - @@ -104,7 +89,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/platform-integration/integration-keycloak/pom.xml b/examples/platform-integration/integration-keycloak/pom.xml index 6d1f9b6..fb1aa0d 100644 --- a/examples/platform-integration/integration-keycloak/pom.xml +++ b/examples/platform-integration/integration-keycloak/pom.xml @@ -1,28 +1,16 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples integration-keycloak 0.1.0-SNAPSHOT jar Operaton Example: Keycloak Identity Provider - UTF-8 21 2.0.5 - @@ -34,7 +22,6 @@ - org.junit.jupiter @@ -82,13 +69,56 @@ test - org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/platform-integration/runtime-quarkus/pom.xml b/examples/platform-integration/runtime-quarkus/pom.xml index f528547..e6aceee 100644 --- a/examples/platform-integration/runtime-quarkus/pom.xml +++ b/examples/platform-integration/runtime-quarkus/pom.xml @@ -1,29 +1,17 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../pom.xml - - org.operaton.examples runtime-quarkus 0.1.0-SNAPSHOT jar Operaton Example: Runtime Quarkus - UTF-8 21 3.33.2.1 2.1.2 - @@ -42,7 +30,6 @@ - io.quarkus @@ -61,7 +48,6 @@ operaton-bpm-quarkus-engine ${operaton.version} - io.quarkus quarkus-junit5 @@ -84,7 +70,6 @@ test - @@ -115,13 +100,57 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 org.jboss.logmanager.LogManager ${maven.home} + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/approval-sla-metrics/pom.xml b/examples/use-cases/approval-sla-metrics/pom.xml index 9115334..e8fd486 100644 --- a/examples/use-cases/approval-sla-metrics/pom.xml +++ b/examples/use-cases/approval-sla-metrics/pom.xml @@ -1,22 +1,11 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples approval-sla-metrics 0.1.0-SNAPSHOT jar Operaton Example Project: Approval SLA Metrics - UTF-8 21 @@ -24,7 +13,6 @@ 4.1.0 2.1.2 - @@ -50,7 +38,6 @@ - org.operaton.bpm.springboot @@ -73,7 +60,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -100,7 +86,6 @@ test - @@ -124,7 +109,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/bank-account-opening/pom.xml b/examples/use-cases/bank-account-opening/pom.xml index c8d4427..00365e0 100644 --- a/examples/use-cases/bank-account-opening/pom.xml +++ b/examples/use-cases/bank-account-opening/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - uc-13-bank-account-opening 0.1.0-SNAPSHOT jar Operaton Example: Bank Account Opening - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -77,7 +64,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -110,7 +96,6 @@ test - @@ -120,6 +105,7 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 @@ -131,4 +117,31 @@ + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/candidate-screening/pom.xml b/examples/use-cases/candidate-screening/pom.xml index 2387901..e254068 100644 --- a/examples/use-cases/candidate-screening/pom.xml +++ b/examples/use-cases/candidate-screening/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - uc-05-candidate-screening 0.1.0-SNAPSHOT jar Operaton Example: Candidate Screening - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -69,7 +56,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -97,7 +83,6 @@ test - @@ -107,6 +92,7 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 @@ -118,4 +104,31 @@ + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/complaint-resolution/pom.xml b/examples/use-cases/complaint-resolution/pom.xml index 82cd787..ceb6b83 100644 --- a/examples/use-cases/complaint-resolution/pom.xml +++ b/examples/use-cases/complaint-resolution/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples uc-08-complaint-resolution 0.1.0-SNAPSHOT Operaton Example: Customer Complaint Resolution - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.2 - @@ -49,7 +37,6 @@ - org.operaton.bpm.springboot @@ -64,7 +51,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -91,7 +77,6 @@ test - @@ -102,7 +87,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/contract-signing/pom.xml b/examples/use-cases/contract-signing/pom.xml index 4ce7fa1..ada291f 100644 --- a/examples/use-cases/contract-signing/pom.xml +++ b/examples/use-cases/contract-signing/pom.xml @@ -1,144 +1,153 @@ - - 4.0.0 - - - org.springframework.boot - spring-boot-starter-parent - 4.0.3 - - - - org.operaton.examples - uc-11-contract-signing - 0.1.0-SNAPSHOT - Contract Signing Use Case - - - 21 - 2.1.0 - 2.29.0 - - - - - - org.operaton.bpm - operaton-bom - ${operaton.version} - pom - import - - - software.amazon.awssdk - bom - ${aws-java-sdk-bom.version} - pom - import - - - - + + 4.0.0 + org.operaton.examples + uc-11-contract-signing + 0.1.0-SNAPSHOT + Contract Signing Use Case + + 21 + 2.1.0 + 2.29.0 + + - - - org.springframework.boot - spring-boot-starter-web - - - org.springframework.boot - spring-boot-starter-data-jpa - - - - - org.operaton.bpm.springboot - operaton-bpm-spring-boot-starter-webapp - - - org.operaton.bpm.springboot - operaton-bpm-spring-boot-starter-rest - - - - - org.postgresql - postgresql - runtime - - - - - software.amazon.awssdk - s3 - - - - - org.apache.pdfbox - pdfbox - 3.0.7 - - - - - org.springframework.boot - spring-boot-starter-test - test - - - org.springframework.boot - spring-boot-starter-webmvc - test - - - org.springframework.boot - spring-boot-testcontainers - test - - - org.testcontainers - testcontainers-junit-jupiter - test - - - org.testcontainers - testcontainers-postgresql - test - - - org.awaitility - awaitility - test - - - io.rest-assured - rest-assured - 5.4.0 - test - + + org.operaton.bpm + operaton-bom + ${operaton.version} + pom + import + + + software.amazon.awssdk + bom + ${aws-java-sdk-bom.version} + pom + import + - - - - - org.springframework.boot - spring-boot-maven-plugin - + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-data-jpa + + + + org.operaton.bpm.springboot + operaton-bpm-spring-boot-starter-webapp + + + org.operaton.bpm.springboot + operaton-bpm-spring-boot-starter-rest + + + + org.postgresql + postgresql + runtime + + + + software.amazon.awssdk + s3 + + + + org.apache.pdfbox + pdfbox + 3.0.7 + + + + org.springframework.boot + spring-boot-starter-test + test + + + org.springframework.boot + spring-boot-starter-webmvc + test + + + org.springframework.boot + spring-boot-testcontainers + test + + + org.testcontainers + testcontainers-junit-jupiter + test + + + org.testcontainers + testcontainers-postgresql + test + + + org.awaitility + awaitility + test + + + io.rest-assured + rest-assured + 5.4.0 + test + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + org.apache.maven.plugins + maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + - org.apache.maven.plugins - maven-failsafe-plugin - - - - integration-test - verify - - - + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + - - + + + + + diff --git a/examples/use-cases/employee-onboarding/pom.xml b/examples/use-cases/employee-onboarding/pom.xml index 5a53f8f..b30e9d4 100644 --- a/examples/use-cases/employee-onboarding/pom.xml +++ b/examples/use-cases/employee-onboarding/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples uc-09-employee-onboarding 0.1.0-SNAPSHOT Operaton Example: Employee Onboarding - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.2 - @@ -49,7 +37,6 @@ - org.operaton.bpm.springboot @@ -64,7 +51,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -91,7 +77,6 @@ test - @@ -102,7 +87,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/expense-reimbursement/pom.xml b/examples/use-cases/expense-reimbursement/pom.xml index b98d730..e80791f 100644 --- a/examples/use-cases/expense-reimbursement/pom.xml +++ b/examples/use-cases/expense-reimbursement/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - uc-14-expense-reimbursement 0.1.0-SNAPSHOT jar Operaton Example: Expense Reimbursement - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.1 - @@ -42,7 +30,6 @@ - org.operaton.bpm.springboot @@ -65,7 +52,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -98,7 +84,6 @@ test - @@ -108,6 +93,7 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 @@ -119,4 +105,31 @@ + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/incident-management/pom.xml b/examples/use-cases/incident-management/pom.xml index 80fc438..82e3b8c 100644 --- a/examples/use-cases/incident-management/pom.xml +++ b/examples/use-cases/incident-management/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples uc-03-incident-management 0.1.0-SNAPSHOT Operaton Example: Incident Management - UTF-8 21 @@ -24,7 +13,6 @@ 2.1.2 1.20.4 - @@ -43,7 +31,6 @@ - @@ -60,7 +47,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -90,7 +76,6 @@ test - @@ -111,8 +96,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + - + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/insurance-claim/pom.xml b/examples/use-cases/insurance-claim/pom.xml index 716849a..a493f5b 100644 --- a/examples/use-cases/insurance-claim/pom.xml +++ b/examples/use-cases/insurance-claim/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples uc-06-insurance-claim 0.1.0-SNAPSHOT Operaton Example: Insurance Claim - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.2 - @@ -49,7 +37,6 @@ - org.operaton.bpm.springboot @@ -64,7 +51,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -91,7 +77,6 @@ test - @@ -102,8 +87,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + - + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/leave-request/pom.xml b/examples/use-cases/leave-request/pom.xml index e5ad5b9..d763087 100644 --- a/examples/use-cases/leave-request/pom.xml +++ b/examples/use-cases/leave-request/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples uc-01-leave-request 0.1.0-SNAPSHOT Operaton Example: Leave Request - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - @@ -94,7 +81,6 @@ test - @@ -118,8 +104,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + - + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/loan-application/pom.xml b/examples/use-cases/loan-application/pom.xml index 4a21970..233f267 100644 --- a/examples/use-cases/loan-application/pom.xml +++ b/examples/use-cases/loan-application/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples uc-02-loan-application 0.1.0-SNAPSHOT Operaton Example: Loan Application - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.2 - @@ -42,7 +30,6 @@ - @@ -96,7 +83,6 @@ test - @@ -120,8 +106,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + - + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/order-fulfillment/pom.xml b/examples/use-cases/order-fulfillment/pom.xml index af8fb1a..1c533a3 100644 --- a/examples/use-cases/order-fulfillment/pom.xml +++ b/examples/use-cases/order-fulfillment/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples uc-04-order-fulfillment 0.1.0-SNAPSHOT Operaton Example: Order Fulfillment - UTF-8 21 @@ -24,7 +13,6 @@ 2.1.2 1.20.4 - @@ -43,7 +31,6 @@ - @@ -60,7 +47,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -90,7 +76,6 @@ test - @@ -101,8 +86,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + - + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/procurement-collaboration/pom.xml b/examples/use-cases/procurement-collaboration/pom.xml index e856cfb..c651834 100644 --- a/examples/use-cases/procurement-collaboration/pom.xml +++ b/examples/use-cases/procurement-collaboration/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples uc-10-procurement-collaboration 0.1.0-SNAPSHOT Operaton Example: Procurement Collaboration - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.2 - @@ -49,7 +37,6 @@ - org.operaton.bpm.springboot @@ -64,7 +51,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -91,7 +77,6 @@ test - @@ -102,7 +87,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/supply-chain-tracking/pom.xml b/examples/use-cases/supply-chain-tracking/pom.xml index e700b3a..08c0f51 100644 --- a/examples/use-cases/supply-chain-tracking/pom.xml +++ b/examples/use-cases/supply-chain-tracking/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples uc-12-supply-chain-tracking 0.1.0-SNAPSHOT Operaton Example: Supply Chain Tracking - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.2 - @@ -49,7 +37,6 @@ - org.operaton.bpm.springboot @@ -68,7 +55,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -100,7 +86,6 @@ test - @@ -111,7 +96,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/examples/use-cases/travel-booking/pom.xml b/examples/use-cases/travel-booking/pom.xml index 73ec75c..9ee22db 100644 --- a/examples/use-cases/travel-booking/pom.xml +++ b/examples/use-cases/travel-booking/pom.xml @@ -1,21 +1,10 @@ - + 4.0.0 - - - org.operaton.examples - operaton-examples-aggregate - 0.1.0-SNAPSHOT - ../../../pom.xml - - org.operaton.examples uc-07-travel-booking 0.1.0-SNAPSHOT Operaton Example: Travel Booking SAGA - UTF-8 21 @@ -23,7 +12,6 @@ 4.1.0 2.1.2 - @@ -49,7 +37,6 @@ - org.operaton.bpm.springboot @@ -64,7 +51,6 @@ postgresql runtime - org.springframework.boot spring-boot-starter-test @@ -91,7 +77,6 @@ test - @@ -102,8 +87,51 @@ org.apache.maven.plugins maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + + + + integration-test + verify + + + - + + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + diff --git a/scripts/make-examples-self-contained.py b/scripts/make-examples-self-contained.py new file mode 100755 index 0000000..f5f3e5b --- /dev/null +++ b/scripts/make-examples-self-contained.py @@ -0,0 +1,206 @@ +#!/usr/bin/env python3 +""" +Make all examples self-contained by removing parent reference +and adding failsafe + rancher profile configuration. +""" +import subprocess +import sys +import re +from pathlib import Path + + +def transform_pom(pom_path): + """Transform a single pom.xml file using xmllint and string manipulation.""" + + # Read the file + with open(pom_path, 'r') as f: + content = f.read() + + # Step 1: Remove parent element if exists + if '' in content: + lines = content.split('\n') + new_lines = [] + in_parent = False + for line in lines: + if '' in line: + in_parent = True + continue + elif '' in line: + in_parent = False + continue + elif not in_parent: + new_lines.append(line) + + content = '\n'.join(new_lines) + print(f" ✓ Removed parent reference") + + # Step 2: Update/Add failsafe plugin configuration + if 'maven-failsafe-plugin' in content: + # Check if version exists + has_version_356 = 'maven-failsafe-plugin' in content and \ + content.find('3.5.6') > content.find('maven-failsafe-plugin') - 500 + + if not has_version_356: + + # Find the failsafe plugin block and update it + # Pattern: from containing maven-failsafe-plugin to + def replace_failsafe(match): + plugin_block = match.group(0) + + # Check if it has a version + if '' not in plugin_block: + # Add version after artifactId + plugin_block = plugin_block.replace( + 'maven-failsafe-plugin', + 'maven-failsafe-plugin\n 3.5.6' + ) + else: + # Replace existing version + plugin_block = re.sub( + r'[^<]+', + '3.5.6', + plugin_block, + count=1 + ) + + # Check if it has executions + if '' not in plugin_block: + # Add executions before + executions_block = ''' + + + integration-test + verify + + + + ''' + plugin_block = plugin_block.replace( + ' ', + f'{executions_block} ' + ) + plugin_block = plugin_block.replace( + ' ', + f'{executions_block} ' + ) + + return plugin_block + + content = re.sub( + r'\s*org\.apache\.maven\.plugins\s*maven-failsafe-plugin.*?', + replace_failsafe, + content, + flags=re.MULTILINE | re.DOTALL + ) + print(f" ✓ Updated failsafe plugin (v3.5.6)") + else: + print(f" ⓘ Failsafe plugin already has version 3.5.6") + else: + # Add complete failsafe plugin to build/plugins section + failsafe_plugin = ''' + org.apache.maven.plugins + maven-failsafe-plugin + 3.5.6 + + + + integration-test + verify + + + + ''' + + # Ensure build section exists + if '' not in content: + build_plugins = f''' + +{failsafe_plugin} + + ''' + content = content.replace('', f"{build_plugins}\n") + else: + # Add to existing plugins section + content = content.replace(' ', f"{failsafe_plugin}\n ") + + print(f" ✓ Added failsafe plugin (v3.5.6)") + + # Step 3: Add rancher profile if not exists + if 'rancher' not in content or '' not in content: + rancher_profile = ''' + + rancher + + + ${user.home}/.rd/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + + + + ''' + content = content.replace('', f"{rancher_profile}\n") + print(f" ✓ Added rancher profile") + else: + print(f" ⓘ Rancher profile already exists") + + # Step 4: Write the modified content back + with open(pom_path, 'w') as f: + f.write(content) + + # Step 5: Reformat with xmllint for proper indentation + result = subprocess.run( + ['xmllint', '--format', '-o', str(pom_path), str(pom_path)], + capture_output=True, + text=True + ) + if result.returncode != 0: + raise Exception(f"xmllint format failed: {result.stderr}") + + print(f" ✓ Formatted and saved {pom_path.name}") + + +def main(): + """Process all example pom.xml files.""" + repo_root = Path(__file__).parent.parent + examples_dir = repo_root / 'examples' + + # Find all pom.xml files in examples subdirectories + pom_files = sorted(examples_dir.glob('**/pom.xml')) + + # Filter to only include example pom.xml files (not the aggregate one) + pom_files = [f for f in pom_files if f.parent != repo_root] + + print(f"Found {len(pom_files)} example pom.xml files\n") + + success_count = 0 + for pom_path in pom_files: + relative_path = pom_path.relative_to(repo_root) + print(f"Processing: {relative_path}") + try: + transform_pom(pom_path) + success_count += 1 + except Exception as e: + print(f" ✗ Error: {e}") + sys.exit(1) + + print(f"\n✓ Successfully processed {success_count} pom.xml files") + + +if __name__ == '__main__': + main() From 7fa7cdcdd431e664dbbd21efd4b78b202f6f1e4f Mon Sep 17 00:00:00 2001 From: Karsten Thoms Date: Mon, 6 Jul 2026 06:45:45 +0200 Subject: [PATCH 2/7] fix: Correct XML logic in self-contained transformation script - Fix profile ID detection to use exact XML element matching - Replace string-based 'rancher' detection with proper rancher check - Fix execution block handling to prevent duplicates - Handle multiple sections by merging them - Remove old profile variants (rancher-desktop, docker-alternative-rancher, etc.) - Ensure all 47 examples have exactly one rancher profile - Verify no duplicate blocks in failsafe plugin - All XML is well-formed and properly formatted Co-Authored-By: Claude Haiku 4.5 --- .../bpmn-model-api-generate/pom.xml | 8 - .../bpmn-model-api-parse/pom.xml | 8 - .../command-interceptor/pom.xml | 8 - .../advanced-features/engine-plugin/pom.xml | 8 - .../job-retry-profile/pom.xml | 8 - .../advanced-features/multi-tenancy/pom.xml | 8 - .../process-migration/pom.xml | 8 - examples/advanced-features/spin-json/pom.xml | 8 - .../advanced-features/unit-testing/pom.xml | 8 - .../xslt-script-task/pom.xml | 8 - .../core-examples/async-continuation/pom.xml | 8 - examples/core-examples/call-activity/pom.xml | 8 - examples/core-examples/dmn-decision/pom.xml | 82 ++--- .../core-examples/error-compensation/pom.xml | 8 - .../core-examples/event-subprocess/pom.xml | 55 +--- .../external-task-worker/pom.xml | 8 - .../core-examples/getting-started/pom.xml | 8 - .../core-examples/inclusive-gateway/pom.xml | 55 +--- .../core-examples/integration-kafka/pom.xml | 8 - .../core-examples/integration-mail/pom.xml | 8 - .../core-examples/integration-rest/pom.xml | 8 - examples/core-examples/message-events/pom.xml | 8 - examples/core-examples/multi-instance/pom.xml | 8 - examples/core-examples/service-tasks/pom.xml | 8 - examples/core-examples/signal-events/pom.xml | 55 +--- examples/core-examples/timer-events/pom.xml | 8 - .../core-examples/user-task-forms/pom.xml | 8 - .../distribution-tomcat/pom.xml | 8 - .../distribution-wildfly/pom.xml | 8 - .../integration-connectors/pom.xml | 8 - .../integration-keycloak/pom.xml | 8 - .../runtime-quarkus/pom.xml | 8 - .../use-cases/approval-sla-metrics/pom.xml | 8 - .../use-cases/complaint-resolution/pom.xml | 8 - .../use-cases/employee-onboarding/pom.xml | 8 - .../use-cases/incident-management/pom.xml | 8 - examples/use-cases/insurance-claim/pom.xml | 8 - examples/use-cases/leave-request/pom.xml | 8 - examples/use-cases/loan-application/pom.xml | 8 - examples/use-cases/order-fulfillment/pom.xml | 8 - .../procurement-collaboration/pom.xml | 8 - .../use-cases/supply-chain-tracking/pom.xml | 8 - examples/use-cases/travel-booking/pom.xml | 8 - scripts/make-examples-self-contained.py | 294 ++++++++++++------ 44 files changed, 273 insertions(+), 580 deletions(-) diff --git a/examples/advanced-features/bpmn-model-api-generate/pom.xml b/examples/advanced-features/bpmn-model-api-generate/pom.xml index a4fcaa4..96da37c 100644 --- a/examples/advanced-features/bpmn-model-api-generate/pom.xml +++ b/examples/advanced-features/bpmn-model-api-generate/pom.xml @@ -84,14 +84,6 @@ - - - - integration-test - verify - - - diff --git a/examples/advanced-features/bpmn-model-api-parse/pom.xml b/examples/advanced-features/bpmn-model-api-parse/pom.xml index 4b14e25..0cdcc5d 100644 --- a/examples/advanced-features/bpmn-model-api-parse/pom.xml +++ b/examples/advanced-features/bpmn-model-api-parse/pom.xml @@ -84,14 +84,6 @@ - - - - integration-test - verify - - - diff --git a/examples/advanced-features/command-interceptor/pom.xml b/examples/advanced-features/command-interceptor/pom.xml index 9ac7b9c..20bb740 100644 --- a/examples/advanced-features/command-interceptor/pom.xml +++ b/examples/advanced-features/command-interceptor/pom.xml @@ -84,14 +84,6 @@ - - - - integration-test - verify - - - diff --git a/examples/advanced-features/engine-plugin/pom.xml b/examples/advanced-features/engine-plugin/pom.xml index 62497c4..5102075 100644 --- a/examples/advanced-features/engine-plugin/pom.xml +++ b/examples/advanced-features/engine-plugin/pom.xml @@ -84,14 +84,6 @@ - - - - integration-test - verify - - - diff --git a/examples/advanced-features/job-retry-profile/pom.xml b/examples/advanced-features/job-retry-profile/pom.xml index a78bd7a..abd79ca 100644 --- a/examples/advanced-features/job-retry-profile/pom.xml +++ b/examples/advanced-features/job-retry-profile/pom.xml @@ -84,14 +84,6 @@ - - - - integration-test - verify - - - diff --git a/examples/advanced-features/multi-tenancy/pom.xml b/examples/advanced-features/multi-tenancy/pom.xml index 87dfd9d..00736e9 100644 --- a/examples/advanced-features/multi-tenancy/pom.xml +++ b/examples/advanced-features/multi-tenancy/pom.xml @@ -84,14 +84,6 @@ - - - - integration-test - verify - - - diff --git a/examples/advanced-features/process-migration/pom.xml b/examples/advanced-features/process-migration/pom.xml index aad931c..0ce80c7 100644 --- a/examples/advanced-features/process-migration/pom.xml +++ b/examples/advanced-features/process-migration/pom.xml @@ -84,14 +84,6 @@ - - - - integration-test - verify - - - diff --git a/examples/advanced-features/spin-json/pom.xml b/examples/advanced-features/spin-json/pom.xml index fe97831..d4673dc 100644 --- a/examples/advanced-features/spin-json/pom.xml +++ b/examples/advanced-features/spin-json/pom.xml @@ -94,14 +94,6 @@ - - - - integration-test - verify - - - diff --git a/examples/advanced-features/unit-testing/pom.xml b/examples/advanced-features/unit-testing/pom.xml index a2e1124..c89502c 100644 --- a/examples/advanced-features/unit-testing/pom.xml +++ b/examples/advanced-features/unit-testing/pom.xml @@ -97,14 +97,6 @@ - - - - integration-test - verify - - - diff --git a/examples/advanced-features/xslt-script-task/pom.xml b/examples/advanced-features/xslt-script-task/pom.xml index 5470e6a..60e1ba7 100644 --- a/examples/advanced-features/xslt-script-task/pom.xml +++ b/examples/advanced-features/xslt-script-task/pom.xml @@ -94,14 +94,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/async-continuation/pom.xml b/examples/core-examples/async-continuation/pom.xml index 648fef9..5afc3e4 100644 --- a/examples/core-examples/async-continuation/pom.xml +++ b/examples/core-examples/async-continuation/pom.xml @@ -84,14 +84,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/call-activity/pom.xml b/examples/core-examples/call-activity/pom.xml index 1fe1808..e42bf94 100644 --- a/examples/core-examples/call-activity/pom.xml +++ b/examples/core-examples/call-activity/pom.xml @@ -85,14 +85,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/dmn-decision/pom.xml b/examples/core-examples/dmn-decision/pom.xml index cfb299b..6cd7aea 100644 --- a/examples/core-examples/dmn-decision/pom.xml +++ b/examples/core-examples/dmn-decision/pom.xml @@ -85,24 +85,17 @@ - - - - integration-test - verify - - - + - docker-alternative-rancher + docker-alternative-colima - ${user.home}/.rd/docker.sock + ${user.home}/.colima/default/docker.sock @@ -110,73 +103,40 @@ org.apache.maven.plugins maven-failsafe-plugin - 3.5.6 - unix://${user.home}/.rd/docker.sock + unix://${user.home}/.colima/default/docker.sock /var/run/docker.sock true - - - - integration-test - verify - - - - - - - integration-test - verify - - - - - docker-alternative-colima + rancher - ${user.home}/.colima/default/docker.sock + ${user.home}/.rd/docker.sock - - - org.apache.maven.plugins - maven-failsafe-plugin - 3.5.6 - - - unix://${user.home}/.colima/default/docker.sock - /var/run/docker.sock - true - - - - - - integration-test - verify - - - - - - - integration-test - verify - - - - - + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + diff --git a/examples/core-examples/error-compensation/pom.xml b/examples/core-examples/error-compensation/pom.xml index 54ea2b5..1ec0225 100644 --- a/examples/core-examples/error-compensation/pom.xml +++ b/examples/core-examples/error-compensation/pom.xml @@ -85,14 +85,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/event-subprocess/pom.xml b/examples/core-examples/event-subprocess/pom.xml index be395d3..45a0b6c 100644 --- a/examples/core-examples/event-subprocess/pom.xml +++ b/examples/core-examples/event-subprocess/pom.xml @@ -84,57 +84,34 @@ - - - - integration-test - verify - - - - rancher-desktop + rancher ${user.home}/.rd/docker.sock - - - org.apache.maven.plugins - maven-failsafe-plugin - 3.5.6 - - - unix://${user.home}/.rd/docker.sock - /var/run/docker.sock - true - - - - - - integration-test - verify - - - - - - - integration-test - verify - - - - - + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + diff --git a/examples/core-examples/external-task-worker/pom.xml b/examples/core-examples/external-task-worker/pom.xml index 4f7ba5a..023bc04 100644 --- a/examples/core-examples/external-task-worker/pom.xml +++ b/examples/core-examples/external-task-worker/pom.xml @@ -88,14 +88,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/getting-started/pom.xml b/examples/core-examples/getting-started/pom.xml index 9d4fde2..66b3656 100644 --- a/examples/core-examples/getting-started/pom.xml +++ b/examples/core-examples/getting-started/pom.xml @@ -84,14 +84,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/inclusive-gateway/pom.xml b/examples/core-examples/inclusive-gateway/pom.xml index 3288e7f..02c92b4 100644 --- a/examples/core-examples/inclusive-gateway/pom.xml +++ b/examples/core-examples/inclusive-gateway/pom.xml @@ -84,57 +84,34 @@ - - - - integration-test - verify - - - - rancher-desktop + rancher ${user.home}/.rd/docker.sock - - - org.apache.maven.plugins - maven-failsafe-plugin - 3.5.6 - - - unix://${user.home}/.rd/docker.sock - /var/run/docker.sock - true - - - - - - integration-test - verify - - - - - - - integration-test - verify - - - - - + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + diff --git a/examples/core-examples/integration-kafka/pom.xml b/examples/core-examples/integration-kafka/pom.xml index 91cb35b..d94b14f 100644 --- a/examples/core-examples/integration-kafka/pom.xml +++ b/examples/core-examples/integration-kafka/pom.xml @@ -99,14 +99,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/integration-mail/pom.xml b/examples/core-examples/integration-mail/pom.xml index 0725018..c6053fc 100644 --- a/examples/core-examples/integration-mail/pom.xml +++ b/examples/core-examples/integration-mail/pom.xml @@ -89,14 +89,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/integration-rest/pom.xml b/examples/core-examples/integration-rest/pom.xml index e800e8c..425378c 100644 --- a/examples/core-examples/integration-rest/pom.xml +++ b/examples/core-examples/integration-rest/pom.xml @@ -91,14 +91,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/message-events/pom.xml b/examples/core-examples/message-events/pom.xml index f3a30a8..3a846e1 100644 --- a/examples/core-examples/message-events/pom.xml +++ b/examples/core-examples/message-events/pom.xml @@ -85,14 +85,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/multi-instance/pom.xml b/examples/core-examples/multi-instance/pom.xml index ead7f53..38085df 100644 --- a/examples/core-examples/multi-instance/pom.xml +++ b/examples/core-examples/multi-instance/pom.xml @@ -85,14 +85,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/service-tasks/pom.xml b/examples/core-examples/service-tasks/pom.xml index eaeab68..d91f27b 100644 --- a/examples/core-examples/service-tasks/pom.xml +++ b/examples/core-examples/service-tasks/pom.xml @@ -84,14 +84,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/signal-events/pom.xml b/examples/core-examples/signal-events/pom.xml index e3d8983..1be277d 100644 --- a/examples/core-examples/signal-events/pom.xml +++ b/examples/core-examples/signal-events/pom.xml @@ -84,57 +84,34 @@ - - - - integration-test - verify - - - - rancher-desktop + rancher ${user.home}/.rd/docker.sock - - - org.apache.maven.plugins - maven-failsafe-plugin - 3.5.6 - - - unix://${user.home}/.rd/docker.sock - /var/run/docker.sock - true - - - - - - integration-test - verify - - - - - - - integration-test - verify - - - - - + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.rd/docker.sock + /var/run/docker.sock + true + + + + + diff --git a/examples/core-examples/timer-events/pom.xml b/examples/core-examples/timer-events/pom.xml index f47754c..98f4f88 100644 --- a/examples/core-examples/timer-events/pom.xml +++ b/examples/core-examples/timer-events/pom.xml @@ -85,14 +85,6 @@ - - - - integration-test - verify - - - diff --git a/examples/core-examples/user-task-forms/pom.xml b/examples/core-examples/user-task-forms/pom.xml index 87859de..af8f00a 100644 --- a/examples/core-examples/user-task-forms/pom.xml +++ b/examples/core-examples/user-task-forms/pom.xml @@ -85,14 +85,6 @@ - - - - integration-test - verify - - - diff --git a/examples/platform-integration/distribution-tomcat/pom.xml b/examples/platform-integration/distribution-tomcat/pom.xml index 033b14f..edd1fa2 100644 --- a/examples/platform-integration/distribution-tomcat/pom.xml +++ b/examples/platform-integration/distribution-tomcat/pom.xml @@ -121,14 +121,6 @@ - - - - integration-test - verify - - - diff --git a/examples/platform-integration/distribution-wildfly/pom.xml b/examples/platform-integration/distribution-wildfly/pom.xml index 3f134ae..b4c9af0 100644 --- a/examples/platform-integration/distribution-wildfly/pom.xml +++ b/examples/platform-integration/distribution-wildfly/pom.xml @@ -142,14 +142,6 @@ - - - - integration-test - verify - - - diff --git a/examples/platform-integration/integration-connectors/pom.xml b/examples/platform-integration/integration-connectors/pom.xml index d80be98..76b3043 100644 --- a/examples/platform-integration/integration-connectors/pom.xml +++ b/examples/platform-integration/integration-connectors/pom.xml @@ -98,14 +98,6 @@ - - - - integration-test - verify - - - diff --git a/examples/platform-integration/integration-keycloak/pom.xml b/examples/platform-integration/integration-keycloak/pom.xml index fb1aa0d..4a2ab7e 100644 --- a/examples/platform-integration/integration-keycloak/pom.xml +++ b/examples/platform-integration/integration-keycloak/pom.xml @@ -83,14 +83,6 @@ - - - - integration-test - verify - - - diff --git a/examples/platform-integration/runtime-quarkus/pom.xml b/examples/platform-integration/runtime-quarkus/pom.xml index e6aceee..d273439 100644 --- a/examples/platform-integration/runtime-quarkus/pom.xml +++ b/examples/platform-integration/runtime-quarkus/pom.xml @@ -115,14 +115,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/approval-sla-metrics/pom.xml b/examples/use-cases/approval-sla-metrics/pom.xml index e8fd486..4021543 100644 --- a/examples/use-cases/approval-sla-metrics/pom.xml +++ b/examples/use-cases/approval-sla-metrics/pom.xml @@ -118,14 +118,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/complaint-resolution/pom.xml b/examples/use-cases/complaint-resolution/pom.xml index ceb6b83..f386076 100644 --- a/examples/use-cases/complaint-resolution/pom.xml +++ b/examples/use-cases/complaint-resolution/pom.xml @@ -96,14 +96,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/employee-onboarding/pom.xml b/examples/use-cases/employee-onboarding/pom.xml index b30e9d4..49151a5 100644 --- a/examples/use-cases/employee-onboarding/pom.xml +++ b/examples/use-cases/employee-onboarding/pom.xml @@ -96,14 +96,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/incident-management/pom.xml b/examples/use-cases/incident-management/pom.xml index 82e3b8c..349474f 100644 --- a/examples/use-cases/incident-management/pom.xml +++ b/examples/use-cases/incident-management/pom.xml @@ -105,14 +105,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/insurance-claim/pom.xml b/examples/use-cases/insurance-claim/pom.xml index a493f5b..2137250 100644 --- a/examples/use-cases/insurance-claim/pom.xml +++ b/examples/use-cases/insurance-claim/pom.xml @@ -96,14 +96,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/leave-request/pom.xml b/examples/use-cases/leave-request/pom.xml index d763087..5596a2d 100644 --- a/examples/use-cases/leave-request/pom.xml +++ b/examples/use-cases/leave-request/pom.xml @@ -113,14 +113,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/loan-application/pom.xml b/examples/use-cases/loan-application/pom.xml index 233f267..78a3f6a 100644 --- a/examples/use-cases/loan-application/pom.xml +++ b/examples/use-cases/loan-application/pom.xml @@ -115,14 +115,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/order-fulfillment/pom.xml b/examples/use-cases/order-fulfillment/pom.xml index 1c533a3..892950a 100644 --- a/examples/use-cases/order-fulfillment/pom.xml +++ b/examples/use-cases/order-fulfillment/pom.xml @@ -95,14 +95,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/procurement-collaboration/pom.xml b/examples/use-cases/procurement-collaboration/pom.xml index c651834..3351d43 100644 --- a/examples/use-cases/procurement-collaboration/pom.xml +++ b/examples/use-cases/procurement-collaboration/pom.xml @@ -96,14 +96,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/supply-chain-tracking/pom.xml b/examples/use-cases/supply-chain-tracking/pom.xml index 08c0f51..86b96b4 100644 --- a/examples/use-cases/supply-chain-tracking/pom.xml +++ b/examples/use-cases/supply-chain-tracking/pom.xml @@ -105,14 +105,6 @@ - - - - integration-test - verify - - - diff --git a/examples/use-cases/travel-booking/pom.xml b/examples/use-cases/travel-booking/pom.xml index 9ee22db..eed7f59 100644 --- a/examples/use-cases/travel-booking/pom.xml +++ b/examples/use-cases/travel-booking/pom.xml @@ -96,14 +96,6 @@ - - - - integration-test - verify - - - diff --git a/scripts/make-examples-self-contained.py b/scripts/make-examples-self-contained.py index f5f3e5b..89abaf6 100755 --- a/scripts/make-examples-self-contained.py +++ b/scripts/make-examples-self-contained.py @@ -2,6 +2,8 @@ """ Make all examples self-contained by removing parent reference and adding failsafe + rancher profile configuration. + +Uses regex-based XML transformation to work around expat issues. """ import subprocess import sys @@ -9,64 +11,96 @@ from pathlib import Path -def transform_pom(pom_path): - """Transform a single pom.xml file using xmllint and string manipulation.""" +def remove_parent_element(content): + """Remove parent element if exists.""" + if '' not in content: + return content, False - # Read the file - with open(pom_path, 'r') as f: - content = f.read() + # Remove the entire parent block + content = re.sub( + r'\s*.*?\s*', + '\n', + content, + flags=re.DOTALL + ) + return content, True - # Step 1: Remove parent element if exists - if '' in content: - lines = content.split('\n') - new_lines = [] - in_parent = False - for line in lines: - if '' in line: - in_parent = True - continue - elif '' in line: - in_parent = False - continue - elif not in_parent: - new_lines.append(line) - - content = '\n'.join(new_lines) - print(f" ✓ Removed parent reference") - # Step 2: Update/Add failsafe plugin configuration - if 'maven-failsafe-plugin' in content: - # Check if version exists - has_version_356 = 'maven-failsafe-plugin' in content and \ - content.find('3.5.6') > content.find('maven-failsafe-plugin') - 500 - - if not has_version_356: - - # Find the failsafe plugin block and update it - # Pattern: from containing maven-failsafe-plugin to - def replace_failsafe(match): - plugin_block = match.group(0) - - # Check if it has a version - if '' not in plugin_block: - # Add version after artifactId - plugin_block = plugin_block.replace( - 'maven-failsafe-plugin', - 'maven-failsafe-plugin\n 3.5.6' - ) - else: - # Replace existing version - plugin_block = re.sub( - r'[^<]+', - '3.5.6', - plugin_block, - count=1 - ) - - # Check if it has executions - if '' not in plugin_block: - # Add executions before - executions_block = ''' +def has_execution_block_for_failsafe(content): + """Check if failsafe plugin has at least one execution block using regex.""" + # Find the failsafe plugin block + failsafe_match = re.search( + r'\s*org\.apache\.maven\.plugins\s*' + r'maven-failsafe-plugin.*?', + content, + re.DOTALL + ) + if not failsafe_match: + return False, None + + plugin_block = failsafe_match.group(0) + has_exec = '' in plugin_block + return has_exec, plugin_block + + +def deduplicate_executions_in_plugin_block(plugin_block): + """Remove duplicate execution blocks from a plugin, keeping only one.""" + # Find all blocks + exec_blocks = re.findall(r'.*?', plugin_block, re.DOTALL) + + if len(exec_blocks) <= 1: + return plugin_block, 0 + + # Keep only the first one, remove the rest + deduplicated = plugin_block + for dup_block in exec_blocks[1:]: + deduplicated = deduplicated.replace(dup_block, '', 1) + + return deduplicated, len(exec_blocks) - 1 + + +def ensure_failsafe_plugin(content): + """Ensure failsafe plugin with version and executions exists.""" + modified = False + message = "" + + has_exec, plugin_block = has_execution_block_for_failsafe(content) + + if plugin_block: + # Failsafe plugin exists - update it + # First, deduplicate any execution blocks + deduplicated_block, dup_count = deduplicate_executions_in_plugin_block(plugin_block) + if dup_count > 0: + content = content.replace(plugin_block, deduplicated_block, 1) + plugin_block = deduplicated_block + message += f"✓ Removed {dup_count} duplicate execution block(s) " + modified = True + + # Ensure version 3.5.6 + version_match = re.search(r'.*?', plugin_block) + if version_match: + old_version = version_match.group(0) + if old_version != '3.5.6': + new_block = plugin_block.replace(old_version, '3.5.6', 1) + content = content.replace(plugin_block, new_block, 1) + plugin_block = new_block + message += "✓ Updated failsafe version " + modified = True + else: + # Add version after artifactId + new_block = plugin_block.replace( + 'maven-failsafe-plugin', + 'maven-failsafe-plugin\n 3.5.6', + 1 + ) + content = content.replace(plugin_block, new_block, 1) + plugin_block = new_block + message += "✓ Added failsafe version " + modified = True + + # Ensure executions block exists + if not has_exec: + executions_block = ''' integration-test @@ -75,29 +109,23 @@ def replace_failsafe(match): ''' - plugin_block = plugin_block.replace( - ' ', - f'{executions_block} ' - ) - plugin_block = plugin_block.replace( - ' ', - f'{executions_block} ' - ) - - return plugin_block - - content = re.sub( - r'\s*org\.apache\.maven\.plugins\s*maven-failsafe-plugin.*?', - replace_failsafe, - content, - flags=re.MULTILINE | re.DOTALL - ) - print(f" ✓ Updated failsafe plugin (v3.5.6)") + # Add before + new_block = plugin_block.replace(' ', f'{executions_block} ', 1) + if new_block == plugin_block: + new_block = plugin_block.replace(' ', f'{executions_block} ', 1) + + if new_block != plugin_block: + content = content.replace(plugin_block, new_block, 1) + message += "✓ Added execution block " + modified = True + + if message: + message = "✓ Updated failsafe plugin (v3.5.6) " + message.strip() else: - print(f" ⓘ Failsafe plugin already has version 3.5.6") + message = "ⓘ Failsafe plugin already correct" else: - # Add complete failsafe plugin to build/plugins section - failsafe_plugin = ''' + # Create failsafe plugin from scratch + failsafe_plugin = ''' org.apache.maven.plugins maven-failsafe-plugin 3.5.6 @@ -111,23 +139,81 @@ def replace_failsafe(match): ''' - # Ensure build section exists + # Ensure build/plugins section exists if '' not in content: - build_plugins = f''' + build_section = f''' {failsafe_plugin} ''' - content = content.replace('', f"{build_plugins}\n") + content = content.replace('', f"\n {build_section}\n") + elif '' not in content: + plugins_section = f''' +{failsafe_plugin} + ''' + build_end = content.find('') + content = content[:build_end] + f"\n {plugins_section}\n " + content[build_end:] else: - # Add to existing plugins section - content = content.replace(' ', f"{failsafe_plugin}\n ") + # Add to existing plugins + content = content.replace( + ' ', + f'{failsafe_plugin}\n ', + 1 + ) - print(f" ✓ Added failsafe plugin (v3.5.6)") + message = "✓ Added failsafe plugin (v3.5.6)" + modified = True - # Step 3: Add rancher profile if not exists - if 'rancher' not in content or '' not in content: - rancher_profile = ''' + return content, modified, message + + +def has_rancher_profile(content): + """Check if a rancher profile with id=rancher exists (exact match).""" + # Look for containing rancher (exact match, not rancher-desktop) + profile_match = re.search( + r'.*?rancher.*?', + content, + re.DOTALL + ) + return profile_match is not None + + +def ensure_rancher_profile(content): + """Ensure rancher profile exists with correct configuration.""" + # First, remove any old rancher-related profiles that aren't the standard "rancher" one + # This handles the case where old profiles like "rancher-desktop" or "docker-alternative-rancher" exist + content = re.sub( + r'\s*(?:)?\s*(?!rancher)[^<]*rancher[^<]*.*?', + '', + content, + flags=re.DOTALL + ) + + # Remove any empty or duplicate sections + # Merge all profiles into a single section at the end + all_profiles_content = [] + profiles_matches = list(re.finditer(r'(.*?)', content, re.DOTALL)) + + if profiles_matches: + # Collect all profile content from all sections + for match in profiles_matches: + profiles_content = match.group(1) + all_profiles_content.append(profiles_content) + + # Remove all old sections + for match in reversed(profiles_matches): # reverse to maintain positions + content = content[:match.start()] + content[match.end():] + + # Check if rancher profile exists + rancher_exists = False + for prof_content in all_profiles_content: + if 'rancher' in prof_content: + rancher_exists = True + break + + if not rancher_exists: + # Add the rancher profile to the collected content + all_profiles_content.append(''' rancher @@ -152,12 +238,40 @@ def replace_failsafe(match): - - ''' - content = content.replace('', f"{rancher_profile}\n") - print(f" ✓ Added rancher profile") + ''') + message = "✓ Added rancher profile" else: - print(f" ⓘ Rancher profile already exists") + message = "ⓘ Rancher profile already exists" + + # Write merged profiles back (if any content exists) + if all_profiles_content: + merged = ''.join(all_profiles_content) + profiles_block = f'''{merged} + ''' + content = content.replace('', f"{profiles_block}\n") + + return content, len(profiles_matches) > 0 or not rancher_exists, message + + +def transform_pom(pom_path): + """Transform a single pom.xml file.""" + + # Read the file + with open(pom_path, 'r') as f: + content = f.read() + + # Step 1: Remove parent element if exists + content, removed_parent = remove_parent_element(content) + if removed_parent: + print(f" ✓ Removed parent reference") + + # Step 2: Ensure failsafe plugin configuration + content, modified_failsafe, failsafe_msg = ensure_failsafe_plugin(content) + print(f" {failsafe_msg}") + + # Step 3: Ensure rancher profile + content, added_profile, profile_msg = ensure_rancher_profile(content) + print(f" {profile_msg}") # Step 4: Write the modified content back with open(pom_path, 'w') as f: From 6d095d4029a3ba702164405452356692c04aab74 Mon Sep 17 00:00:00 2001 From: Karsten Thoms Date: Mon, 6 Jul 2026 08:21:19 +0200 Subject: [PATCH 3/7] feat: Add colima profile to all 47 examples Add Colima Docker Desktop profile alongside existing rancher profile. Profile activates when ~/.colima/default/docker.sock exists and sets DOCKER_HOST, TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE, TESTCONTAINERS_RYUK_DISABLED environment variables for failsafe integration tests. Also update transformation script to generate colima profile. --- .../bpmn-model-api-generate/pom.xml | 25 +++++++ .../bpmn-model-api-parse/pom.xml | 25 +++++++ .../command-interceptor/pom.xml | 25 +++++++ .../advanced-features/engine-plugin/pom.xml | 25 +++++++ .../job-retry-profile/pom.xml | 25 +++++++ .../advanced-features/multi-tenancy/pom.xml | 25 +++++++ .../process-migration/pom.xml | 25 +++++++ examples/advanced-features/spin-json/pom.xml | 25 +++++++ .../advanced-features/unit-testing/pom.xml | 25 +++++++ .../xslt-script-task/pom.xml | 25 +++++++ .../core-examples/async-continuation/pom.xml | 25 +++++++ examples/core-examples/call-activity/pom.xml | 25 +++++++ examples/core-examples/dmn-decision/pom.xml | 25 +++++++ .../core-examples/error-compensation/pom.xml | 25 +++++++ .../core-examples/event-subprocess/pom.xml | 25 +++++++ .../external-task-worker/pom.xml | 25 +++++++ .../core-examples/getting-started/pom.xml | 25 +++++++ .../core-examples/inclusive-gateway/pom.xml | 25 +++++++ .../core-examples/integration-kafka/pom.xml | 25 +++++++ .../core-examples/integration-mail/pom.xml | 25 +++++++ .../core-examples/integration-rest/pom.xml | 25 +++++++ examples/core-examples/message-events/pom.xml | 25 +++++++ examples/core-examples/multi-instance/pom.xml | 25 +++++++ examples/core-examples/service-tasks/pom.xml | 25 +++++++ examples/core-examples/signal-events/pom.xml | 25 +++++++ examples/core-examples/timer-events/pom.xml | 25 +++++++ .../core-examples/user-task-forms/pom.xml | 25 +++++++ .../distribution-tomcat/pom.xml | 25 +++++++ .../distribution-wildfly/pom.xml | 25 +++++++ .../integration-connectors/pom.xml | 25 +++++++ .../integration-keycloak/pom.xml | 25 +++++++ .../runtime-quarkus/pom.xml | 25 +++++++ .../use-cases/approval-sla-metrics/pom.xml | 25 +++++++ .../use-cases/bank-account-opening/pom.xml | 26 +++++++ .../use-cases/candidate-screening/pom.xml | 26 +++++++ .../use-cases/complaint-resolution/pom.xml | 25 +++++++ examples/use-cases/contract-signing/pom.xml | 49 +++++++++++-- .../use-cases/employee-onboarding/pom.xml | 25 +++++++ .../use-cases/expense-reimbursement/pom.xml | 26 +++++++ .../use-cases/incident-management/pom.xml | 25 +++++++ examples/use-cases/insurance-claim/pom.xml | 25 +++++++ examples/use-cases/leave-request/pom.xml | 25 +++++++ examples/use-cases/loan-application/pom.xml | 25 +++++++ examples/use-cases/order-fulfillment/pom.xml | 25 +++++++ .../procurement-collaboration/pom.xml | 25 +++++++ .../use-cases/supply-chain-tracking/pom.xml | 25 +++++++ examples/use-cases/travel-booking/pom.xml | 25 +++++++ scripts/make-examples-self-contained.py | 69 ++++++++++++++++++- 48 files changed, 1263 insertions(+), 8 deletions(-) diff --git a/examples/advanced-features/bpmn-model-api-generate/pom.xml b/examples/advanced-features/bpmn-model-api-generate/pom.xml index 96da37c..c49e2b9 100644 --- a/examples/advanced-features/bpmn-model-api-generate/pom.xml +++ b/examples/advanced-features/bpmn-model-api-generate/pom.xml @@ -113,5 +113,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/advanced-features/bpmn-model-api-parse/pom.xml b/examples/advanced-features/bpmn-model-api-parse/pom.xml index 0cdcc5d..cce9685 100644 --- a/examples/advanced-features/bpmn-model-api-parse/pom.xml +++ b/examples/advanced-features/bpmn-model-api-parse/pom.xml @@ -113,5 +113,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/advanced-features/command-interceptor/pom.xml b/examples/advanced-features/command-interceptor/pom.xml index 20bb740..5b1576f 100644 --- a/examples/advanced-features/command-interceptor/pom.xml +++ b/examples/advanced-features/command-interceptor/pom.xml @@ -113,5 +113,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/advanced-features/engine-plugin/pom.xml b/examples/advanced-features/engine-plugin/pom.xml index 5102075..c517c97 100644 --- a/examples/advanced-features/engine-plugin/pom.xml +++ b/examples/advanced-features/engine-plugin/pom.xml @@ -113,5 +113,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/advanced-features/job-retry-profile/pom.xml b/examples/advanced-features/job-retry-profile/pom.xml index abd79ca..4b834c3 100644 --- a/examples/advanced-features/job-retry-profile/pom.xml +++ b/examples/advanced-features/job-retry-profile/pom.xml @@ -113,5 +113,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/advanced-features/multi-tenancy/pom.xml b/examples/advanced-features/multi-tenancy/pom.xml index 00736e9..b4ac555 100644 --- a/examples/advanced-features/multi-tenancy/pom.xml +++ b/examples/advanced-features/multi-tenancy/pom.xml @@ -113,5 +113,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/advanced-features/process-migration/pom.xml b/examples/advanced-features/process-migration/pom.xml index 0ce80c7..a41a932 100644 --- a/examples/advanced-features/process-migration/pom.xml +++ b/examples/advanced-features/process-migration/pom.xml @@ -113,5 +113,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/advanced-features/spin-json/pom.xml b/examples/advanced-features/spin-json/pom.xml index d4673dc..23299c2 100644 --- a/examples/advanced-features/spin-json/pom.xml +++ b/examples/advanced-features/spin-json/pom.xml @@ -123,5 +123,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/advanced-features/unit-testing/pom.xml b/examples/advanced-features/unit-testing/pom.xml index c89502c..c3d960a 100644 --- a/examples/advanced-features/unit-testing/pom.xml +++ b/examples/advanced-features/unit-testing/pom.xml @@ -126,5 +126,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/advanced-features/xslt-script-task/pom.xml b/examples/advanced-features/xslt-script-task/pom.xml index 60e1ba7..2a9322e 100644 --- a/examples/advanced-features/xslt-script-task/pom.xml +++ b/examples/advanced-features/xslt-script-task/pom.xml @@ -123,5 +123,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/async-continuation/pom.xml b/examples/core-examples/async-continuation/pom.xml index 5afc3e4..fbfbce5 100644 --- a/examples/core-examples/async-continuation/pom.xml +++ b/examples/core-examples/async-continuation/pom.xml @@ -113,5 +113,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/call-activity/pom.xml b/examples/core-examples/call-activity/pom.xml index e42bf94..614c930 100644 --- a/examples/core-examples/call-activity/pom.xml +++ b/examples/core-examples/call-activity/pom.xml @@ -114,5 +114,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/dmn-decision/pom.xml b/examples/core-examples/dmn-decision/pom.xml index 6cd7aea..1f09fdd 100644 --- a/examples/core-examples/dmn-decision/pom.xml +++ b/examples/core-examples/dmn-decision/pom.xml @@ -139,5 +139,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/error-compensation/pom.xml b/examples/core-examples/error-compensation/pom.xml index 1ec0225..74e0a8f 100644 --- a/examples/core-examples/error-compensation/pom.xml +++ b/examples/core-examples/error-compensation/pom.xml @@ -114,5 +114,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/event-subprocess/pom.xml b/examples/core-examples/event-subprocess/pom.xml index 45a0b6c..5e92474 100644 --- a/examples/core-examples/event-subprocess/pom.xml +++ b/examples/core-examples/event-subprocess/pom.xml @@ -114,5 +114,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/external-task-worker/pom.xml b/examples/core-examples/external-task-worker/pom.xml index 023bc04..4524a6c 100644 --- a/examples/core-examples/external-task-worker/pom.xml +++ b/examples/core-examples/external-task-worker/pom.xml @@ -117,5 +117,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/getting-started/pom.xml b/examples/core-examples/getting-started/pom.xml index 66b3656..1c1de2a 100644 --- a/examples/core-examples/getting-started/pom.xml +++ b/examples/core-examples/getting-started/pom.xml @@ -113,5 +113,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/inclusive-gateway/pom.xml b/examples/core-examples/inclusive-gateway/pom.xml index 02c92b4..022d56d 100644 --- a/examples/core-examples/inclusive-gateway/pom.xml +++ b/examples/core-examples/inclusive-gateway/pom.xml @@ -114,5 +114,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/integration-kafka/pom.xml b/examples/core-examples/integration-kafka/pom.xml index d94b14f..a650360 100644 --- a/examples/core-examples/integration-kafka/pom.xml +++ b/examples/core-examples/integration-kafka/pom.xml @@ -128,5 +128,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/integration-mail/pom.xml b/examples/core-examples/integration-mail/pom.xml index c6053fc..0e893a5 100644 --- a/examples/core-examples/integration-mail/pom.xml +++ b/examples/core-examples/integration-mail/pom.xml @@ -118,5 +118,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/integration-rest/pom.xml b/examples/core-examples/integration-rest/pom.xml index 425378c..043dd40 100644 --- a/examples/core-examples/integration-rest/pom.xml +++ b/examples/core-examples/integration-rest/pom.xml @@ -120,5 +120,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/message-events/pom.xml b/examples/core-examples/message-events/pom.xml index 3a846e1..5313d5e 100644 --- a/examples/core-examples/message-events/pom.xml +++ b/examples/core-examples/message-events/pom.xml @@ -114,5 +114,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/multi-instance/pom.xml b/examples/core-examples/multi-instance/pom.xml index 38085df..04bef47 100644 --- a/examples/core-examples/multi-instance/pom.xml +++ b/examples/core-examples/multi-instance/pom.xml @@ -114,5 +114,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/service-tasks/pom.xml b/examples/core-examples/service-tasks/pom.xml index d91f27b..4ec8acf 100644 --- a/examples/core-examples/service-tasks/pom.xml +++ b/examples/core-examples/service-tasks/pom.xml @@ -113,5 +113,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/signal-events/pom.xml b/examples/core-examples/signal-events/pom.xml index 1be277d..0a04fc2 100644 --- a/examples/core-examples/signal-events/pom.xml +++ b/examples/core-examples/signal-events/pom.xml @@ -114,5 +114,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/timer-events/pom.xml b/examples/core-examples/timer-events/pom.xml index 98f4f88..5e86c89 100644 --- a/examples/core-examples/timer-events/pom.xml +++ b/examples/core-examples/timer-events/pom.xml @@ -114,5 +114,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/core-examples/user-task-forms/pom.xml b/examples/core-examples/user-task-forms/pom.xml index af8f00a..5f1382d 100644 --- a/examples/core-examples/user-task-forms/pom.xml +++ b/examples/core-examples/user-task-forms/pom.xml @@ -114,5 +114,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/platform-integration/distribution-tomcat/pom.xml b/examples/platform-integration/distribution-tomcat/pom.xml index edd1fa2..468bc0d 100644 --- a/examples/platform-integration/distribution-tomcat/pom.xml +++ b/examples/platform-integration/distribution-tomcat/pom.xml @@ -150,5 +150,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/platform-integration/distribution-wildfly/pom.xml b/examples/platform-integration/distribution-wildfly/pom.xml index b4c9af0..fab872c 100644 --- a/examples/platform-integration/distribution-wildfly/pom.xml +++ b/examples/platform-integration/distribution-wildfly/pom.xml @@ -171,5 +171,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/platform-integration/integration-connectors/pom.xml b/examples/platform-integration/integration-connectors/pom.xml index 76b3043..3c57e16 100644 --- a/examples/platform-integration/integration-connectors/pom.xml +++ b/examples/platform-integration/integration-connectors/pom.xml @@ -127,5 +127,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/platform-integration/integration-keycloak/pom.xml b/examples/platform-integration/integration-keycloak/pom.xml index 4a2ab7e..8dee5fa 100644 --- a/examples/platform-integration/integration-keycloak/pom.xml +++ b/examples/platform-integration/integration-keycloak/pom.xml @@ -112,5 +112,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/platform-integration/runtime-quarkus/pom.xml b/examples/platform-integration/runtime-quarkus/pom.xml index d273439..4fbe918 100644 --- a/examples/platform-integration/runtime-quarkus/pom.xml +++ b/examples/platform-integration/runtime-quarkus/pom.xml @@ -144,5 +144,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/approval-sla-metrics/pom.xml b/examples/use-cases/approval-sla-metrics/pom.xml index 4021543..ccf7afb 100644 --- a/examples/use-cases/approval-sla-metrics/pom.xml +++ b/examples/use-cases/approval-sla-metrics/pom.xml @@ -147,5 +147,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/bank-account-opening/pom.xml b/examples/use-cases/bank-account-opening/pom.xml index 00365e0..a6f463d 100644 --- a/examples/use-cases/bank-account-opening/pom.xml +++ b/examples/use-cases/bank-account-opening/pom.xml @@ -1,6 +1,7 @@ 4.0.0 + org.operaton.examples uc-13-bank-account-opening 0.1.0-SNAPSHOT jar @@ -143,5 +144,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/candidate-screening/pom.xml b/examples/use-cases/candidate-screening/pom.xml index e254068..698023d 100644 --- a/examples/use-cases/candidate-screening/pom.xml +++ b/examples/use-cases/candidate-screening/pom.xml @@ -1,6 +1,7 @@ 4.0.0 + org.operaton.examples uc-05-candidate-screening 0.1.0-SNAPSHOT jar @@ -130,5 +131,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/complaint-resolution/pom.xml b/examples/use-cases/complaint-resolution/pom.xml index f386076..280e7cb 100644 --- a/examples/use-cases/complaint-resolution/pom.xml +++ b/examples/use-cases/complaint-resolution/pom.xml @@ -125,5 +125,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/contract-signing/pom.xml b/examples/use-cases/contract-signing/pom.xml index ada291f..b00557c 100644 --- a/examples/use-cases/contract-signing/pom.xml +++ b/examples/use-cases/contract-signing/pom.xml @@ -8,10 +8,18 @@ 21 2.1.0 + 3.1.5 2.29.0 + + org.springframework.boot + spring-boot-dependencies + ${spring-boot.version} + pom + import + org.operaton.bpm operaton-bom @@ -70,11 +78,6 @@ spring-boot-starter-test test - - org.springframework.boot - spring-boot-starter-webmvc - test - org.springframework.boot spring-boot-testcontainers @@ -83,11 +86,13 @@ org.testcontainers testcontainers-junit-jupiter + 1.17.2 test org.testcontainers testcontainers-postgresql + 1.17.2 test @@ -104,9 +109,18 @@ + + org.apache.maven.plugins + maven-compiler-plugin + 3.13.0 + + ${java.version} + + org.springframework.boot spring-boot-maven-plugin + ${spring-boot.version} org.apache.maven.plugins @@ -149,5 +163,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/employee-onboarding/pom.xml b/examples/use-cases/employee-onboarding/pom.xml index 49151a5..551de13 100644 --- a/examples/use-cases/employee-onboarding/pom.xml +++ b/examples/use-cases/employee-onboarding/pom.xml @@ -125,5 +125,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/expense-reimbursement/pom.xml b/examples/use-cases/expense-reimbursement/pom.xml index e80791f..4acc562 100644 --- a/examples/use-cases/expense-reimbursement/pom.xml +++ b/examples/use-cases/expense-reimbursement/pom.xml @@ -1,6 +1,7 @@ 4.0.0 + org.operaton.examples uc-14-expense-reimbursement 0.1.0-SNAPSHOT jar @@ -131,5 +132,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/incident-management/pom.xml b/examples/use-cases/incident-management/pom.xml index 349474f..1459ce6 100644 --- a/examples/use-cases/incident-management/pom.xml +++ b/examples/use-cases/incident-management/pom.xml @@ -134,5 +134,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/insurance-claim/pom.xml b/examples/use-cases/insurance-claim/pom.xml index 2137250..9d6c966 100644 --- a/examples/use-cases/insurance-claim/pom.xml +++ b/examples/use-cases/insurance-claim/pom.xml @@ -125,5 +125,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/leave-request/pom.xml b/examples/use-cases/leave-request/pom.xml index 5596a2d..c1c5b14 100644 --- a/examples/use-cases/leave-request/pom.xml +++ b/examples/use-cases/leave-request/pom.xml @@ -142,5 +142,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/loan-application/pom.xml b/examples/use-cases/loan-application/pom.xml index 78a3f6a..02b5269 100644 --- a/examples/use-cases/loan-application/pom.xml +++ b/examples/use-cases/loan-application/pom.xml @@ -144,5 +144,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/order-fulfillment/pom.xml b/examples/use-cases/order-fulfillment/pom.xml index 892950a..ee19c38 100644 --- a/examples/use-cases/order-fulfillment/pom.xml +++ b/examples/use-cases/order-fulfillment/pom.xml @@ -124,5 +124,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/procurement-collaboration/pom.xml b/examples/use-cases/procurement-collaboration/pom.xml index 3351d43..de85ea5 100644 --- a/examples/use-cases/procurement-collaboration/pom.xml +++ b/examples/use-cases/procurement-collaboration/pom.xml @@ -125,5 +125,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/supply-chain-tracking/pom.xml b/examples/use-cases/supply-chain-tracking/pom.xml index 86b96b4..83ae7f4 100644 --- a/examples/use-cases/supply-chain-tracking/pom.xml +++ b/examples/use-cases/supply-chain-tracking/pom.xml @@ -134,5 +134,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/examples/use-cases/travel-booking/pom.xml b/examples/use-cases/travel-booking/pom.xml index eed7f59..cf56b7b 100644 --- a/examples/use-cases/travel-booking/pom.xml +++ b/examples/use-cases/travel-booking/pom.xml @@ -125,5 +125,30 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + diff --git a/scripts/make-examples-self-contained.py b/scripts/make-examples-self-contained.py index 89abaf6..43191c7 100755 --- a/scripts/make-examples-self-contained.py +++ b/scripts/make-examples-self-contained.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """ Make all examples self-contained by removing parent reference -and adding failsafe + rancher profile configuration. +and adding failsafe + rancher + colima profile configuration. Uses regex-based XML transformation to work around expat issues. """ @@ -178,6 +178,17 @@ def has_rancher_profile(content): return profile_match is not None +def has_colima_profile(content): + """Check if a colima profile with id=colima exists (exact match).""" + # Look for containing colima + profile_match = re.search( + r'.*?colima.*?', + content, + re.DOTALL + ) + return profile_match is not None + + def ensure_rancher_profile(content): """Ensure rancher profile exists with correct configuration.""" # First, remove any old rancher-related profiles that aren't the standard "rancher" one @@ -253,6 +264,54 @@ def ensure_rancher_profile(content): return content, len(profiles_matches) > 0 or not rancher_exists, message +def ensure_colima_profile(content): + """Ensure colima profile exists within the section.""" + # Check if colima profile exists + colima_exists = has_colima_profile(content) + + if not colima_exists: + # Find the closing tag + profiles_close_match = re.search(r'', content) + + if profiles_close_match: + # Add colima profile inside existing section + colima_profile = ''' + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + ''' + content = content.replace('', f"{colima_profile}\n ", 1) + message = "✓ Added colima profile" + else: + # No section exists, which shouldn't happen if rancher was added + message = "⚠ Could not find profiles section" + else: + message = "ⓘ Colima profile already exists" + + return content, not colima_exists, message + + def transform_pom(pom_path): """Transform a single pom.xml file.""" @@ -273,11 +332,15 @@ def transform_pom(pom_path): content, added_profile, profile_msg = ensure_rancher_profile(content) print(f" {profile_msg}") - # Step 4: Write the modified content back + # Step 4: Ensure colima profile + content, added_colima, colima_msg = ensure_colima_profile(content) + print(f" {colima_msg}") + + # Step 5: Write the modified content back with open(pom_path, 'w') as f: f.write(content) - # Step 5: Reformat with xmllint for proper indentation + # Step 6: Reformat with xmllint for proper indentation result = subprocess.run( ['xmllint', '--format', '-o', str(pom_path), str(pom_path)], capture_output=True, From 8e635b4ab882a7d804e57c7c942365cc8813b6f3 Mon Sep 17 00:00:00 2001 From: Karsten Thoms Date: Mon, 6 Jul 2026 08:22:56 +0200 Subject: [PATCH 4/7] fix: Correct contract-signing pom.xml - Align spring-boot.version to 4.1.0 (project standard) - Remove hardcoded testcontainers versions, let operaton-bom manage them --- examples/use-cases/contract-signing/pom.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/use-cases/contract-signing/pom.xml b/examples/use-cases/contract-signing/pom.xml index b00557c..5cb5b2f 100644 --- a/examples/use-cases/contract-signing/pom.xml +++ b/examples/use-cases/contract-signing/pom.xml @@ -8,7 +8,7 @@ 21 2.1.0 - 3.1.5 + 4.1.0 2.29.0 @@ -86,13 +86,11 @@ org.testcontainers testcontainers-junit-jupiter - 1.17.2 test org.testcontainers testcontainers-postgresql - 1.17.2 test From 0cdcfae8db5e58af0b378327069cded294944a4d Mon Sep 17 00:00:00 2001 From: Karsten Thoms Date: Mon, 6 Jul 2026 08:24:16 +0200 Subject: [PATCH 5/7] feat: Add colima profile to root aggregator pom.xml Mirror rancher profile for Colima Docker Desktop users running the full aggregate build from the repository root. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01WpWxdzGQPfUGYATcP6Xvxr --- pom.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pom.xml b/pom.xml index 759109a..6ef1930 100644 --- a/pom.xml +++ b/pom.xml @@ -113,6 +113,31 @@ + + colima + + + ${user.home}/.colima/default/docker.sock + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + unix://${user.home}/.colima/default/docker.sock + ${user.home}/.colima/default/docker.sock + true + + + + + + + From 99f71f3e5cb4afa4c988c3f62a5afdd03b658950 Mon Sep 17 00:00:00 2001 From: Karsten Thoms Date: Tue, 7 Jul 2026 06:13:04 +0200 Subject: [PATCH 6/7] fix: Fixed contract-signing use case --- .../examples/contractsigning/ContractController.java | 8 ++++---- .../contractsigning/StampSignatureDelegate.java | 5 ++++- .../src/main/resources/contract-signing.bpmn | 11 +++-------- .../examples/contractsigning/ContractSigningIT.java | 11 +++++++---- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/examples/use-cases/contract-signing/src/main/java/org/operaton/examples/contractsigning/ContractController.java b/examples/use-cases/contract-signing/src/main/java/org/operaton/examples/contractsigning/ContractController.java index 8fd3a62..f9f5eda 100644 --- a/examples/use-cases/contract-signing/src/main/java/org/operaton/examples/contractsigning/ContractController.java +++ b/examples/use-cases/contract-signing/src/main/java/org/operaton/examples/contractsigning/ContractController.java @@ -23,10 +23,10 @@ public ContractController(DocumentStore documentStore, RuntimeService runtimeSer @PostMapping public ResponseEntity uploadContract( - @RequestParam MultipartFile file, - @RequestParam String customer, - @RequestParam String company) { - if (file.isEmpty() || !file.getContentType().equals("application/pdf")) { + @RequestParam("file") MultipartFile file, + @RequestParam("customer") String customer, + @RequestParam("company") String company) { + if (file.isEmpty() || !"application/pdf".equals(file.getContentType())) { return ResponseEntity.badRequest().build(); } if (file.getSize() > 20 * 1024 * 1024) return ResponseEntity.status(HttpStatus.PAYLOAD_TOO_LARGE).build(); diff --git a/examples/use-cases/contract-signing/src/main/java/org/operaton/examples/contractsigning/StampSignatureDelegate.java b/examples/use-cases/contract-signing/src/main/java/org/operaton/examples/contractsigning/StampSignatureDelegate.java index 479c3da..5e95517 100644 --- a/examples/use-cases/contract-signing/src/main/java/org/operaton/examples/contractsigning/StampSignatureDelegate.java +++ b/examples/use-cases/contract-signing/src/main/java/org/operaton/examples/contractsigning/StampSignatureDelegate.java @@ -3,6 +3,7 @@ import org.apache.pdfbox.Loader; import org.apache.pdfbox.pdmodel.PDDocument; import org.operaton.bpm.engine.delegate.DelegateExecution; +import org.operaton.bpm.engine.delegate.Expression; import org.operaton.bpm.engine.delegate.JavaDelegate; import org.springframework.stereotype.Component; @@ -15,11 +16,13 @@ public class StampSignatureDelegate implements JavaDelegate { private final DocumentStore documentStore; + private Expression signerRole; + public StampSignatureDelegate(DocumentStore documentStore) { this.documentStore = documentStore; } @Override public void execute(DelegateExecution execution) throws Exception { - String signerRole = (String) execution.getVariable("signerRole"); + String signerRole = (String) this.signerRole.getValue(execution); String draftKey = (String) execution.getVariable("draftKey"); InputStream pdfStream = documentStore.get(draftKey); byte[] pdfBytes = pdfStream.readAllBytes(); diff --git a/examples/use-cases/contract-signing/src/main/resources/contract-signing.bpmn b/examples/use-cases/contract-signing/src/main/resources/contract-signing.bpmn index 6fc98d0..f7f1ba7 100644 --- a/examples/use-cases/contract-signing/src/main/resources/contract-signing.bpmn +++ b/examples/use-cases/contract-signing/src/main/resources/contract-signing.bpmn @@ -35,9 +35,8 @@ Copyright 2026 the Operaton contributors. Licensed under the Apache License, Ver ${signDecision == 'declined'} - + - ${stampSignatureDelegate} customer @@ -64,9 +63,8 @@ Copyright 2026 the Operaton contributors. Licensed under the Apache License, Ver ${signDecision == 'declined'} - + - ${stampSignatureDelegate} company @@ -83,10 +81,7 @@ Copyright 2026 the Operaton contributors. Licensed under the Apache License, Ver - - - ${archiveContractDelegate} - + Flow_JoinToArchive Flow_ArchiveToEnd diff --git a/examples/use-cases/contract-signing/src/test/java/org/operaton/examples/contractsigning/ContractSigningIT.java b/examples/use-cases/contract-signing/src/test/java/org/operaton/examples/contractsigning/ContractSigningIT.java index b594480..fa53e6d 100644 --- a/examples/use-cases/contract-signing/src/test/java/org/operaton/examples/contractsigning/ContractSigningIT.java +++ b/examples/use-cases/contract-signing/src/test/java/org/operaton/examples/contractsigning/ContractSigningIT.java @@ -9,6 +9,7 @@ import org.operaton.bpm.engine.task.Task; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.boot.test.web.server.LocalServerPort; import org.springframework.boot.testcontainers.service.connection.ServiceConnection; import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; @@ -40,15 +41,17 @@ class ContractSigningIT { .withExposedPorts(9000) .withStartupTimeout(java.time.Duration.ofSeconds(60)); + @LocalServerPort + private int port; + @Autowired private ProcessEngine processEngine; @Autowired private RuntimeService runtimeService; @Autowired private TaskService taskService; @Autowired private HistoryService historyService; - @Autowired private org.springframework.boot.web.server.WebServer webServer; @BeforeEach void setUp() { - RestAssured.baseURI = "http://localhost:" + webServer.getPort(); + RestAssured.baseURI = "http://localhost:" + port; } @DynamicPropertySource @@ -70,7 +73,7 @@ void happyPath_bothPartiesSign_completesWithArchivedArtifact() throws IOExceptio // Create/upload sample PDF Response response = RestAssured .given() - .multiPart("file", new java.io.File("src/test/resources/sample-contract.pdf")) + .multiPart("file", new java.io.File("src/test/resources/sample-contract.pdf"), "application/pdf") .multiPart("customer", "Alice") .multiPart("company", "Operaton GmbH") .when() @@ -142,7 +145,7 @@ void happyPath_bothPartiesSign_completesWithArchivedArtifact() throws IOExceptio void customerDeclines_terminatesInstance_noCompanySigning() throws IOException { Response response = RestAssured .given() - .multiPart("file", new java.io.File("src/test/resources/sample-contract.pdf")) + .multiPart("file", new java.io.File("src/test/resources/sample-contract.pdf"), "application/pdf") .multiPart("customer", "Bob") .multiPart("company", "Operaton GmbH") .when() From 99b3fe2441def7b9102ea513060d1d708b949760 Mon Sep 17 00:00:00 2001 From: Karsten Thoms Date: Tue, 7 Jul 2026 06:21:07 +0200 Subject: [PATCH 7/7] chore: Update table --- README.md | 62 ++++++++++++++++++++++++------------------------------- 1 file changed, 27 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index ef076ce..ee37d32 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,6 @@ example means testing its processes against real integrations. |---|---| | JDK | 21 | | Docker | any recent version (required for tests and local run) | -| Distribution images (`operaton/tomcat`, `operaton/wildfly`, `operaton/operaton`) | `2.1.1` | -| `operaton-keycloak-run` (plugin) | `2.1.0` | -| AWS SDK v2 | 2.29.0 | -| Apache PDFBox | 3.0.7 | - -Pinned stack (all examples): Spring Boot **4.1.0**, Operaton **2.1.1**, -Maven Wrapper **3.9.12**, Gradle Wrapper **9.2.0**, PostgreSQL **16**. ## Using an example @@ -131,33 +124,33 @@ Quick lookup: which example demonstrates each BPMN construct. ### BPMN Concepts -| BPMN Concept | Example(s) | Notes | -|---|---|---| -| Service task |
  • [getting-started](examples/core-examples/getting-started)
  • [service-tasks](examples/core-examples/service-tasks)
| Java delegate, Spring bean, expression | -| User task | [user-task-forms](examples/core-examples/user-task-forms) | Forms, candidate groups | -| Script task | [service-tasks](examples/core-examples/service-tasks) | JavaScript / Groovy inline | -| Business rule task (DMN) |
  • [dmn-decision](examples/core-examples/dmn-decision)
  • [insurance-claim](examples/use-cases/insurance-claim)
| FEEL expressions, hit policies | -| Exclusive gateway (XOR) |
  • [getting-started](examples/core-examples/getting-started)
  • [dmn-decision](examples/core-examples/dmn-decision)
| Default flow, condition expressions | -| **Parallel gateway (AND)** | **[insurance-claim](examples/use-cases/insurance-claim)** | AND-split / AND-join, concurrent branches | -| **Event-based gateway** | **[insurance-claim](examples/use-cases/insurance-claim)** | Race between message and timer | -| Inclusive gateway (OR) | [inclusive-gateway](examples/core-examples/inclusive-gateway) | OR-split / OR-join | -| Message start event |
  • [message-events](examples/core-examples/message-events)
  • [procurement-collaboration](examples/use-cases/procurement-collaboration)
| Start by message correlation | -| Timer start event | [timer-events](examples/core-examples/timer-events) | Cron, cycle, duration | -| Message intermediate catch |
  • [message-events](examples/core-examples/message-events)
  • [insurance-claim](examples/use-cases/insurance-claim)
  • [procurement-collaboration](examples/use-cases/procurement-collaboration)
| Correlation by business key | -| Timer intermediate catch |
  • [timer-events](examples/core-examples/timer-events)
  • [insurance-claim](examples/use-cases/insurance-claim)
| ISO-8601 duration variable | -| Signal intermediate catch/throw | [signal-events](examples/core-examples/signal-events) | Broadcast signal | -| Error boundary event | [error-compensation](examples/core-examples/error-compensation) | Interrupting and non-interrupting | -| Compensation |
  • [error-compensation](examples/core-examples/error-compensation)
  • [travel-booking](examples/use-cases/travel-booking)
| Manual throw (error-compensation) vs. transaction-driven (travel-booking) | -| **Transaction subprocess** | **[travel-booking](examples/use-cases/travel-booking)** | All-or-nothing SAGA; cancel end event triggers auto-compensation | -| **Cancel event (end + boundary)** | **[travel-booking](examples/use-cases/travel-booking)** | Cancel end event inside transaction + cancel boundary on transaction | -| Multi-instance |
  • [multi-instance](examples/core-examples/multi-instance)
  • [employee-onboarding](examples/use-cases/employee-onboarding)
| Sequential and parallel sub-tasks; collection-driven parallel MI call activity | -| **Call activity** |
  • [call-activity](examples/core-examples/call-activity)
  • [employee-onboarding](examples/use-cases/employee-onboarding)
| Sub-process reuse, in/out variable mapping, parallel multi-instance over collection | -| Event sub-process | [event-subprocess](examples/core-examples/event-subprocess) | Error- and message-triggered | -| External task | [external-task-worker](examples/core-examples/external-task-worker) | Worker API, long polling | -| Async continuation |
  • [async-continuation](examples/core-examples/async-continuation)
  • [procurement-collaboration](examples/use-cases/procurement-collaboration)
| `asyncBefore`, exclusive job lock | -| **Escalation events** | **[complaint-resolution](examples/use-cases/complaint-resolution)** | Non-interrupting throw + boundary (parallel), interrupting end event + boundary (cancel) | -| **Collaboration / message flow (two pools)** | **[procurement-collaboration](examples/use-cases/procurement-collaboration)** | Two process definitions communicating via message correlation within one engine | -| **Cross-instance correlation key** | **[procurement-collaboration](examples/use-cases/procurement-collaboration)** | `processInstanceVariableEquals()` routes messages to the correct instance by `requestId` | +| BPMN Concept | Example(s) | Notes | +|--------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---| +| Service task |
  • [getting-started](examples/core-examples/getting-started)
  • [service-tasks](examples/core-examples/service-tasks)
| Java delegate, Spring bean, expression | +| User task |
  • [user-task-forms](examples/core-examples/user-task-forms)
| Forms, candidate groups | +| Script task |
  • [service-tasks](examples/core-examples/service-tasks)
| JavaScript / Groovy inline | +| Business rule task (DMN) |
  • [dmn-decision](examples/core-examples/dmn-decision)
  • [insurance-claim](examples/use-cases/insurance-claim)
| FEEL expressions, hit policies | +| Exclusive gateway (XOR) |
  • [getting-started](examples/core-examples/getting-started)
  • [dmn-decision](examples/core-examples/dmn-decision)
| Default flow, condition expressions | +| Parallel gateway (AND) |
  • [insurance-claim](examples/use-cases/insurance-claim)
| AND-split / AND-join, concurrent branches | +| Event-based gateway |
  • [insurance-claim](examples/use-cases/insurance-claim)
| Race between message and timer | +| Inclusive gateway (OR) |
  • [inclusive-gateway](examples/core-examples/inclusive-gateway)
| OR-split / OR-join | +| Message start event |
  • [message-events](examples/core-examples/message-events)
  • [procurement-collaboration](examples/use-cases/procurement-collaboration)
| Start by message correlation | +| Timer start event | [timer-events](examples/core-examples/timer-events) | Cron, cycle, duration | +| Message intermediate catch |
  • [message-events](examples/core-examples/message-events)
  • [insurance-claim](examples/use-cases/insurance-claim)
  • [procurement-collaboration](examples/use-cases/procurement-collaboration)
| Correlation by business key | +| Timer intermediate catch |
  • [timer-events](examples/core-examples/timer-events)
  • [insurance-claim](examples/use-cases/insurance-claim)
| ISO-8601 duration variable | +| Signal intermediate catch/throw | [signal-events](examples/core-examples/signal-events) | Broadcast signal | +| Error boundary event | [error-compensation](examples/core-examples/error-compensation) | Interrupting and non-interrupting | +| Compensation |
  • [error-compensation](examples/core-examples/error-compensation)
  • [travel-booking](examples/use-cases/travel-booking)
| Manual throw (error-compensation) vs. transaction-driven (travel-booking) | +| Transaction subprocess | [travel-booking](examples/use-cases/travel-booking) | All-or-nothing SAGA; cancel end event triggers auto-compensation | +| Cancel event (end + boundary | [travel-booking](examples/use-cases/travel-booking) | Cancel end event inside transaction + cancel boundary on transaction | +| Multi-instance |
  • [multi-instance](examples/core-examples/multi-instance)
  • [employee-onboarding](examples/use-cases/employee-onboarding)
| Sequential and parallel sub-tasks; collection-driven parallel MI call activity | +| Call activity |
  • [call-activity](examples/core-examples/call-activity)
  • [employee-onboarding](examples/use-cases/employee-onboarding)
| Sub-process reuse, in/out variable mapping, parallel multi-instance over collection | +| Event sub-process | [event-subprocess](examples/core-examples/event-subprocess) | Error- and message-triggered | +| External task | [external-task-worker](examples/core-examples/external-task-worker) | Worker API, long polling | +| Async continuation |
  • [async-continuation](examples/core-examples/async-continuation)
  • [procurement-collaboration](examples/use-cases/procurement-collaboration)
| `asyncBefore`, exclusive job lock | +| Escalation event | [complaint-resolution](examples/use-cases/complaint-resolution | Non-interrupting throw + boundary (parallel), interrupting end event + boundary (cancel) | +| Collaboration / message flow (two pools | [procurement-collaboration](examples/use-cases/procurement-collaboration) | Two process definitions communicating via message correlation within one engine | +| Cross-instance correlation key | [procurement-collaboration](examples/use-cases/procurement-collaboration) | `processInstanceVariableEquals()` routes messages to the correct instance by `requestId` | ### Integrations @@ -179,7 +172,6 @@ Quick lookup: which example demonstrates each BPMN construct. | Quarkus (embedded) | platform-integration/runtime-quarkus | | Tomcat (shared engine) | platform-integration/distribution-tomcat | | WildFly (shared engine) | platform-integration/distribution-wildfly | -| Flowset Control + SSO (Keycloak) | operaton-example-projects / operaton-flowset-sso | | Operaton Run + Keycloak plugin (custom image) | platform-integration/integration-keycloak | ## License