Skip to main content
← Back to list
01Issue
FeatureShippedSwamp CLI
Assigneesstack72

#286 Docs: document self.* expressions in modelIdOrName during forEach

Opened by stack72 · 5/7/2026· Shipped 5/7/2026

Problem Statement

The workflow reference docs don't document that self.* expressions now resolve in modelIdOrName and methodName during forEach expansion.

Proposed Solution

Update content/manual/reference/workflows.md to document this capability in the forEach section, with an example like:

steps:
  - name: summary-${{ self.region }}
    forEach:
      item: region
      in: ${{ inputs.regions }}
    task:
      type: model_method
      modelIdOrName: aws-alarms-${{ self.region }}
      methodName: get_summary
      inputs:
        historyHours: 24

This enables forEach steps to target different model instances per iteration without requiring a nested workflow-of-workflows pattern.

Alternatives Considered

N/A — straightforward documentation update.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 3 MOREPR_MERGEDCOMPLETE

Shipped

5/7/2026, 7:11:42 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack725/7/2026, 6:50:33 PM

Sign in to post a ripple.