Skip to content

EIP wave 1: align naming with the kit Mule rules (no behaviour change) - #7

Closed
brunosouzas wants to merge 6 commits into
mainfrom
ab102-eip-wave-1-naming
Closed

brunosouzas wants to merge 6 commits into
mainfrom
ab102-eip-wave-1-naming

Conversation

@brunosouzas

Copy link
Copy Markdown
Owner

Stacked on #6: merge after #6. The base is main, so until #6 is merged this diff also shows #6's commits. The commits that belong to this PR are the last four.

What changed: the wave-1 EIP code (idempotent receiver, correlation identifier, eip-global.xml) and its MUnit suites now follow the same kit Mule naming rules as wave 2:

  • every flow and sub-flow has a doc:description (FLOW-4);
  • sub-flows have the sf- prefix (FLOW-6);
  • variables have the v prefix;
  • display names follow FLOW-5: SET v…, INFO:/WARN: Log …, Refer to …, Raise <TYPE> Error - …, Try …, On Error Continue (…), and verb + object for everything else;
  • object stores and the requester config are named … Object Store / … Config (FLOW-3).

Nothing else changes. HTTP endpoint paths, flow names (the ones with listeners), status codes and behaviour are the same. httpStatus keeps its name, as the documented exception, because the shared error handler in global.xml reads it. SOLID is not touched, because its published articles quote its current names. AGENTS.md now records this rule.

Also in this PR: the correlation identifier suite had three tautological vars.httpStatus default 200 == 200 checks. They now assert that no error status was set, as review finding 6 on #6 required for the wave-2 suites.

Renames that wiki pages may quote

Kind Old New
sub-flow payment-charge-order sf-charge-order
sub-flow payment-record-duplicate sf-record-duplicate-charge
sub-flow payment-ledger-summary sf-summarise-payment-ledger
sub-flow payment-validate-charge-request sf-validate-charge-request
sub-flow payment-request-from-provider sf-request-payment-from-provider
variable chargeResult vChargeResult
variable chargeId vChargeId
variable ledgerOrderId vLedgerOrderId
variable version vVersion
variable results vResults
variable paymentRequest vPaymentRequest
variable providerRequestBody vProviderRequestBody
variable chargedOrder vChargedOrder
variable providerRequest vProviderRequest
variable callback vCallback
variable unmatched vUnmatched
variable pendingRequest vPendingRequest
variable outcome vOutcome
variable known (os:contains target) vKnown
display name Charge once Try Charge Once
display name Reject duplicates by orderId Reject Duplicates By orderId
display name Duplicate: 409 On Error Continue (duplicate)
display name Match and claim the pending request Try Match And Claim Pending Request
display name Claim the pending request Claim Pending Request
display name Send payment request to provider Send Payment Request To Provider
display name Log lost claim / Log unmatched callback WARN: Log lost claim / WARN: Log unmatched callback
display name HTTP requester to this app Self Call Http Request Config

Flow names are unchanged: payment-before-charge-endpoint, payment-after-charge-endpoint, payment-get-ledger, payment-charge-batch-client, payment-provider-simulator, payment-confirm-from-provider-callback, payment-get-status, mule-correlation-id-echo, mule-correlation-id-call-default, mule-correlation-id-call-never. The full display-name list is in the diff.

Spec: none. This is a rename with no behaviour change.
Checks: JAVA_HOME=17 mvn clean test → BUILD SUCCESS, 95 tests, 0 failures, 0 errors, application coverage 99.62%. xmllint passes on every changed file. A diff of path=/allowedMethods/statusCode against #6 shows no endpoint change.
Review: no independent review yet.

AB#102

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
brunosouzas-agent added a commit that referenced this pull request Nov 26, 2026
Stacks this pull request on #7: keeps #7's wave 1 names and adds this
pull request's <http:response> to the wave 1 listeners
(mule-correlation-id.xml, payment-common.xml).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brunosouzas-agent

Copy link
Copy Markdown
Collaborator

Closed by Bruno's decision: everything in this pull request reached main with the squash of #12 (cf49f18), which was stacked on this branch. main differs from this head (9b634f0) only by #12's own 11 files. The branch is kept, so links pinned to 9b634f0 still resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants