Skip to content

Remove inheritVariables for processBatches call activities - #1893

Draft
stiv03 wants to merge 1 commit into
masterfrom
feature/remove-inherit-variables-processBatches
Draft

Remove inheritVariables for processBatches call activities#1893
stiv03 wants to merge 1 commit into
masterfrom
feature/remove-inherit-variables-processBatches

Conversation

@stiv03

@stiv03 stiv03 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

LMCROSSITXSADEPLOY-3029

Replace flowable:inheritVariables="true" on the processBatches call activities in rollback-mta, xs2-deploy and xs2-bg-deploy with an explicit flowable:in variable list, so only the variables the subprocess actually needs are passed instead of the whole parent variable map.

The required set was derived from:

  • the processBatches step (ExtractBatchedServicesWithResolvedDynamicParametersStep) and its SyncFlowableStep base (correlationId, isSecurityEnabled, stepPhase),
  • the variables it forwards to createOrUpdateServicesSubProcess (already an explicit flowable:in list), minus variables produced inside processBatches itself: servicesToCreate (written, never read) and serviceToProcess (the child multi-instance element variable). dynamicResolvableParameters is kept because the step reads it before overwriting it. batchToProcess remains the caller's multi-instance element variable and is injected per iteration.

@stiv03
stiv03 marked this pull request as draft August 7, 2026 12:57
Replace flowable:inheritVariables="true" on the processBatches call
activities in rollback-mta, xs2-deploy and xs2-bg-deploy with an explicit
flowable:in variable list, so only the variables the subprocess actually
needs are passed instead of the whole parent variable map.

The required set was derived from:
- the processBatches step (ExtractBatchedServicesWithResolvedDynamicParametersStep)
  and its SyncFlowableStep base (correlationId, isSecurityEnabled, stepPhase),
- the variables it forwards to createOrUpdateServicesSubProcess (already an
  explicit flowable:in list),
minus variables produced inside processBatches itself: servicesToCreate
(written, never read) and serviceToProcess (the child multi-instance element
variable). dynamicResolvableParameters is kept because the step reads it before
overwriting it. batchToProcess remains the caller's multi-instance element
variable and is injected per iteration.

Verified: FlowableEngineTest and
ExtractBatchedServicesWithResolvedDynamicParametersStep tests pass.
@stiv03
stiv03 force-pushed the feature/remove-inherit-variables-processBatches branch from 1c8f9db to 16ec113 Compare August 7, 2026 13:15
@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2026

Copy link
Copy Markdown

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.

1 participant