From 76fcd233cd390d7837d81562da3c9530c98cd584 Mon Sep 17 00:00:00 2001 From: bruno souza Date: Wed, 21 Oct 2026 10:10:37 +0100 Subject: [PATCH 1/9] refactor(eip): name the self-call requester config like the kit's global elements --- src/main/mule/eip/eip-global.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/mule/eip/eip-global.xml b/src/main/mule/eip/eip-global.xml index e82efb9..440ad31 100644 --- a/src/main/mule/eip/eip-global.xml +++ b/src/main/mule/eip/eip-global.xml @@ -13,7 +13,7 @@ by the correlation identifier's payment provider simulator (request and callback) and by the Mule correlation ID demo. It shares http.port with the listener, so MUnit's dynamic port works. --> - + From 088981571020009394e0d142336d4cb1dc54dc0f Mon Sep 17 00:00:00 2001 From: bruno souza Date: Wed, 21 Oct 2026 10:10:38 +0100 Subject: [PATCH 2/9] refactor(eip): wave-1 flows follow the kit Mule naming rules (sf- sub-flows, v-variables, typed display names, flow descriptions) --- .../correlation-identifier.xml | 144 +++++++++--------- .../mule-correlation-id.xml | 16 +- .../idempotent-receiver-after.xml | 32 ++-- .../idempotent-receiver-before.xml | 28 ++-- .../idempotent-receiver/payment-common.xml | 74 ++++----- .../eip/correlation-identifier-test-suite.xml | 76 ++++----- .../eip/idempotent-receiver-test-suite.xml | 30 ++-- 7 files changed, 200 insertions(+), 200 deletions(-) diff --git a/src/main/mule/eip/correlation-identifier/correlation-identifier.xml b/src/main/mule/eip/correlation-identifier/correlation-identifier.xml index d55f01a..5febee9 100644 --- a/src/main/mule/eip/correlation-identifier/correlation-identifier.xml +++ b/src/main/mule/eip/correlation-identifier/correlation-identifier.xml @@ -27,44 +27,44 @@ --> - - + - - + + - - + - +{ requestId: vars.vPaymentRequest.requestId, amount: vars.vPaymentRequest.amount }]]> - - + + - - + + - - - + + + - - + + - + - - + + - + - - - + + + - + - + - - + + - + - - + + - - - - + + + + - - + + - - + + - - + + - - - + + + - - - + + + - - + + - - + + - + - + - - + + - + - - - - + + + + - - + + diff --git a/src/main/mule/eip/correlation-identifier/mule-correlation-id.xml b/src/main/mule/eip/correlation-identifier/mule-correlation-id.xml index 0b9ba90..e7d4069 100644 --- a/src/main/mule/eip/correlation-identifier/mule-correlation-id.xml +++ b/src/main/mule/eip/correlation-identifier/mule-correlation-id.xml @@ -21,9 +21,9 @@ --> - + - + - + - - + + - + - - + + - - + - - - - - - - + + + + + + + - - - - + + + + - + +{ orderId: payload.orderId, result: vars.vChargeResult }]]> - + diff --git a/src/main/mule/eip/idempotent-receiver/idempotent-receiver-before.xml b/src/main/mule/eip/idempotent-receiver/idempotent-receiver-before.xml index 6a3919e..a56da9e 100644 --- a/src/main/mule/eip/idempotent-receiver/idempotent-receiver-before.xml +++ b/src/main/mule/eip/idempotent-receiver/idempotent-receiver-before.xml @@ -19,32 +19,32 @@ - Different orders sent by one flow in a loop (one correlation ID, propagated in X-CORRELATION-ID) are rejected as duplicates. --> - + - - - - - - + + + + + + - - - - + + + + - + +{ orderId: payload.orderId, result: vars.vChargeResult }]]> - + diff --git a/src/main/mule/eip/idempotent-receiver/payment-common.xml b/src/main/mule/eip/idempotent-receiver/payment-common.xml index 3450f95..d787d1e 100644 --- a/src/main/mule/eip/idempotent-receiver/payment-common.xml +++ b/src/main/mule/eip/idempotent-receiver/payment-common.xml @@ -13,49 +13,49 @@ - + - - + + - + - - + + - + - - + + - + - - - - + + + + @@ -63,17 +63,17 @@ var orderKeys = payload filter ($ startsWith (vars.ledgerOrderId ++ "|")) - + - - + + - - + + - + @@ -84,37 +84,37 @@ var orderKeys = payload filter ($ startsWith (vars.ledgerOrderId ++ "|")) leaves this flow with the SAME correlation ID (the batch request's), sent in X-CORRELATION-ID, which is exactly what fools the default idempotent validator of the "before" endpoint. --> - + - - - - + + + + - + - - - - + + + + - + - + +{ version: vars.vVersion, results: vars.vResults }]]> diff --git a/src/test/munit/eip/correlation-identifier-test-suite.xml b/src/test/munit/eip/correlation-identifier-test-suite.xml index 95bd8e9..b6592d2 100644 --- a/src/test/munit/eip/correlation-identifier-test-suite.xml +++ b/src/test/munit/eip/correlation-identifier-test-suite.xml @@ -54,10 +54,10 @@ - + - + @@ -65,8 +65,8 @@ - - + + @@ -76,12 +76,12 @@ - + - - + + @@ -93,10 +93,10 @@ - + - + @@ -104,11 +104,11 @@ - - + + - - + + @@ -140,10 +140,10 @@ - + - + @@ -151,8 +151,8 @@ - - + + @@ -174,10 +174,10 @@ - + - + @@ -185,8 +185,8 @@ - - + + @@ -206,10 +206,10 @@ - + - + @@ -217,8 +217,8 @@ - - + + @@ -239,10 +239,10 @@ - + - + @@ -250,8 +250,8 @@ - - + + @@ -277,12 +277,12 @@ - + - + @@ -292,16 +292,16 @@ - + - + - + @@ -312,8 +312,8 @@ - - + + @@ -324,12 +324,12 @@ - + - + diff --git a/src/test/munit/eip/idempotent-receiver-test-suite.xml b/src/test/munit/eip/idempotent-receiver-test-suite.xml index c0b1609..c8915ce 100644 --- a/src/test/munit/eip/idempotent-receiver-test-suite.xml +++ b/src/test/munit/eip/idempotent-receiver-test-suite.xml @@ -39,8 +39,8 @@ - - + + @@ -68,8 +68,8 @@ - - + + @@ -88,10 +88,10 @@ - + - + @@ -108,8 +108,8 @@ - - + + @@ -144,10 +144,10 @@ - + - + @@ -174,7 +174,7 @@ - + @@ -193,8 +193,8 @@ - - + + @@ -249,10 +249,10 @@ - + - + From 35ed4231df0a2dc9cbb6d75e8ae8b622489e7895 Mon Sep 17 00:00:00 2001 From: bruno souza Date: Wed, 21 Oct 2026 10:10:54 +0100 Subject: [PATCH 3/9] test(eip): correlation identifier suite asserts no error status was set instead of a tautological 200 --- .../munit/eip/correlation-identifier-test-suite.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/munit/eip/correlation-identifier-test-suite.xml b/src/test/munit/eip/correlation-identifier-test-suite.xml index b6592d2..5db0de3 100644 --- a/src/test/munit/eip/correlation-identifier-test-suite.xml +++ b/src/test/munit/eip/correlation-identifier-test-suite.xml @@ -160,7 +160,7 @@ - + @@ -193,7 +193,7 @@ - + @@ -226,7 +226,7 @@ - + @@ -256,7 +256,7 @@ - + @@ -268,7 +268,7 @@ - + From 054553163313caa5797b5d70975900277516280e Mon Sep 17 00:00:00 2001 From: bruno souza Date: Wed, 21 Oct 2026 10:11:13 +0100 Subject: [PATCH 4/9] docs: AGENTS.md says EIP follows the kit Mule naming rules and SOLID keeps its quoted names --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 4cccb67..2679728 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,6 +11,8 @@ A catalogue of runnable Mule 4 examples of design and integration patterns, one HTTP endpoint paths are referenced by published articles; do not change them when moving files. +EIP examples use the kit Mule naming rules; SOLID keeps the names its published articles quote. + ## Technology declarations - `app.runtime = 4.9.17` — [pom.xml](pom.xml). From 11cbde41e160e922299b9cd7cebb37c85f254b60 Mon Sep 17 00:00:00 2001 From: bruno souza Date: Wed, 21 Oct 2026 11:17:48 +0100 Subject: [PATCH 5/9] Name Route On Callback Status outcomes; explain the 200 asserts in the correlation-identifier suite --- .../eip/correlation-identifier/correlation-identifier.xml | 8 ++++---- src/test/munit/eip/correlation-identifier-test-suite.xml | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/mule/eip/correlation-identifier/correlation-identifier.xml b/src/main/mule/eip/correlation-identifier/correlation-identifier.xml index 5febee9..d2cc8dc 100644 --- a/src/main/mule/eip/correlation-identifier/correlation-identifier.xml +++ b/src/main/mule/eip/correlation-identifier/correlation-identifier.xml @@ -158,16 +158,16 @@ output application/java - + - + - + - + diff --git a/src/test/munit/eip/correlation-identifier-test-suite.xml b/src/test/munit/eip/correlation-identifier-test-suite.xml index 5db0de3..cd6578a 100644 --- a/src/test/munit/eip/correlation-identifier-test-suite.xml +++ b/src/test/munit/eip/correlation-identifier-test-suite.xml @@ -160,6 +160,7 @@ + @@ -193,6 +194,7 @@ + @@ -226,6 +228,7 @@ + @@ -268,6 +271,7 @@ + From 22a6fc59ee958a8e7a3a48f8dac20df1667707ab Mon Sep 17 00:00:00 2001 From: bruno souza Date: Wed, 21 Oct 2026 14:46:28 +0100 Subject: [PATCH 6/9] EIP: move transactional-client tests out of the message expiration suite and add its missing tests --- .../eip/message-expiration-test-suite.xml | 113 ++++++++++-------- 1 file changed, 62 insertions(+), 51 deletions(-) diff --git a/src/test/munit/eip/message-expiration-test-suite.xml b/src/test/munit/eip/message-expiration-test-suite.xml index 4914034..c1d8c81 100644 --- a/src/test/munit/eip/message-expiration-test-suite.xml +++ b/src/test/munit/eip/message-expiration-test-suite.xml @@ -186,90 +186,101 @@ - + + - - - + + - - - - - - - - + + + + + - - + + - + - - - - - - + + + + + - + - - - + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + From d3d83f1e1b490bd263f27deb619f399582d710c1 Mon Sep 17 00:00:00 2001 From: bruno souza Date: Wed, 21 Oct 2026 14:47:41 +0100 Subject: [PATCH 7/9] EIP: set the response status code on the wave 1-3 listeners that had none --- .../canonical-data-model/canonical-data-model.xml | 8 ++++++-- .../correlation-identifier/mule-correlation-id.xml | 12 +++++++++--- .../mule/eip/idempotent-receiver/payment-common.xml | 4 +++- .../eip/message-filter/stock-reservation-common.xml | 4 +++- .../eip/message-translator/message-translator.xml | 4 +++- .../eip/recipient-list/recipient-list-recipients.xml | 4 +++- .../eip/scatter-gather/scatter-gather-services.xml | 12 +++++++++--- 7 files changed, 36 insertions(+), 12 deletions(-) diff --git a/src/main/mule/eip/canonical-data-model/canonical-data-model.xml b/src/main/mule/eip/canonical-data-model/canonical-data-model.xml index 79a3119..fb5d5cd 100644 --- a/src/main/mule/eip/canonical-data-model/canonical-data-model.xml +++ b/src/main/mule/eip/canonical-data-model/canonical-data-model.xml @@ -34,7 +34,9 @@ two target documents it produced. --> - + + + - + + + - + + + - + + + @@ -49,7 +53,9 @@ output application/json - + + + diff --git a/src/main/mule/eip/idempotent-receiver/payment-common.xml b/src/main/mule/eip/idempotent-receiver/payment-common.xml index 3450f95..4d8823b 100644 --- a/src/main/mule/eip/idempotent-receiver/payment-common.xml +++ b/src/main/mule/eip/idempotent-receiver/payment-common.xml @@ -64,7 +64,9 @@ var orderKeys = payload filter ($ startsWith (vars.ledgerOrderId ++ "|")) - + + + diff --git a/src/main/mule/eip/message-filter/stock-reservation-common.xml b/src/main/mule/eip/message-filter/stock-reservation-common.xml index 9d8355c..7b1031b 100644 --- a/src/main/mule/eip/message-filter/stock-reservation-common.xml +++ b/src/main/mule/eip/message-filter/stock-reservation-common.xml @@ -47,7 +47,9 @@ - + + + diff --git a/src/main/mule/eip/message-translator/message-translator.xml b/src/main/mule/eip/message-translator/message-translator.xml index d270790..ae824ee 100644 --- a/src/main/mule/eip/message-translator/message-translator.xml +++ b/src/main/mule/eip/message-translator/message-translator.xml @@ -35,7 +35,9 @@ whose keys are the header's column names: https://docs.mulesoft.com/dataweave/latest/dataweave-formats-csv --> - + + + diff --git a/src/main/mule/eip/recipient-list/recipient-list-recipients.xml b/src/main/mule/eip/recipient-list/recipient-list-recipients.xml index 78b61d5..b7b9b10 100644 --- a/src/main/mule/eip/recipient-list/recipient-list-recipients.xml +++ b/src/main/mule/eip/recipient-list/recipient-list-recipients.xml @@ -50,7 +50,9 @@ - + + + diff --git a/src/main/mule/eip/scatter-gather/scatter-gather-services.xml b/src/main/mule/eip/scatter-gather/scatter-gather-services.xml index 78c5865..bfc00f8 100644 --- a/src/main/mule/eip/scatter-gather/scatter-gather-services.xml +++ b/src/main/mule/eip/scatter-gather/scatter-gather-services.xml @@ -17,7 +17,9 @@ CUS-NEW score 80 (HIGH_RISK) --> - + + + - + + + - + + + Date: Wed, 21 Oct 2026 15:03:17 +0100 Subject: [PATCH 8/9] EIP: test over HTTP that the message translator and canonical data model answer the error status --- .../eip/canonical-data-model-test-suite.xml | 42 ++++++++++++++++++- .../eip/message-translator-test-suite.xml | 32 +++++++++++++- 2 files changed, 72 insertions(+), 2 deletions(-) diff --git a/src/test/munit/eip/canonical-data-model-test-suite.xml b/src/test/munit/eip/canonical-data-model-test-suite.xml index f00332b..9964056 100644 --- a/src/test/munit/eip/canonical-data-model-test-suite.xml +++ b/src/test/munit/eip/canonical-data-model-test-suite.xml @@ -2,11 +2,13 @@ + http://www.mulesoft.org/schema/mule/munit-tools http://www.mulesoft.org/schema/mule/munit-tools/current/mule-munit-tools.xsd + http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">