{ "format": "alga-psa.workflow-bundle", "formatVersion": 1, "exportedAt": "2026-01-27T02:06:59.690Z", "workflows": [ { "key": "fixture.ticket-created-foreach-heavy", "metadata": { "name": "Fixture: Ticket Created Foreach Heavy", "description": "For each generated item, send an in-app notification (TICKET_CREATED).", "payloadSchemaRef": "payload.TicketCreated.v1", "payloadSchemaMode": "pinned", "pinnedPayloadSchemaRef": "payload.TicketCreated.v1", "trigger": { "type": "event", "eventName": "TICKET_CREATED" }, "isSystem": false, "isVisible": true, "isPaused": false, "concurrencyLimit": null, "autoPauseOnFailure": false, "failureRateThreshold": null, "failureRateMinRuns": null, "retentionPolicyOverride": null }, "dependencies": { "actions": [ { "actionId": "notifications.send_in_app", "version": 1 } ], "nodeTypes": [ "action.call", "control.return", "state.set", "transform.assign", "control.forEach" ], "schemaRefs": [ "payload.TicketCreated.v1" ] }, "draft": { "draftVersion": 1, "definition": { "id": "94ac9a31-f507-fb65-da71-e0ea1c189f29", "version": 1, "name": "Fixture: Ticket Created Foreach Heavy", "description": "For each generated item, send an in-app notification (TICKET_CREATED).", "payloadSchemaRef": "payload.TicketCreated.v1", "trigger": { "type": "event", "eventName": "TICKET_CREATED" }, "steps": [ { "id": "state-fixture", "type": "state.set", "config": { "state": "FIXTURE" } }, { "id": "assign-text", "type": "transform.assign", "config": { "assign": { "vars.marker": { "$expr": "'[fixture ticket-created-foreach-heavy]'" }, "vars.title": { "$expr": "'[fixture ticket-created-foreach-heavy] ForEach notify'" }, "vars.body": { "$expr": "'[fixture ticket-created-foreach-heavy] dedupe=' & payload.fixtureDedupeKey" } } } }, { "id": "for-each-item", "type": "control.forEach", "items": { "$expr": "[{ \"i\": 0, \"userId\": payload.fixtureNotifyUserId }, { \"i\": 1, \"userId\": payload.fixtureNotifyUserId }]" }, "itemVar": "item", "body": [ { "id": "notify", "type": "action.call", "config": { "actionId": "notifications.send_in_app", "version": 1, "inputMapping": { "recipients": { "$expr": "{ \"user_ids\": [vars.item.userId] }" }, "title": { "$expr": "vars.title & ' #' & vars.item.i" }, "body": { "$expr": "vars.body & ' item=' & vars.item.i" }, "severity": "info", "dedupe_key": { "$expr": "'fixture.ticket-created-foreach-heavy:' & payload.fixtureDedupeKey & ':' & vars.item.i" } } } } ], "onItemError": "fail" }, { "id": "done", "type": "control.return" } ] } }, "publishedVersions": [ { "version": 1, "definition": { "id": "94ac9a31-f507-fb65-da71-e0ea1c189f29", "version": 1, "name": "Fixture: Ticket Created Foreach Heavy", "description": "For each generated item, send an in-app notification (TICKET_CREATED).", "payloadSchemaRef": "payload.TicketCreated.v1", "trigger": { "type": "event", "eventName": "TICKET_CREATED" }, "steps": [ { "id": "state-fixture", "type": "state.set", "config": { "state": "FIXTURE" } }, { "id": "assign-text", "type": "transform.assign", "config": { "assign": { "vars.marker": { "$expr": "'[fixture ticket-created-foreach-heavy]'" }, "vars.title": { "$expr": "'[fixture ticket-created-foreach-heavy] ForEach notify'" }, "vars.body": { "$expr": "'[fixture ticket-created-foreach-heavy] dedupe=' & payload.fixtureDedupeKey" } } } }, { "id": "for-each-item", "type": "control.forEach", "items": { "$expr": "[{ \"i\": 0, \"userId\": payload.fixtureNotifyUserId }, { \"i\": 1, \"userId\": payload.fixtureNotifyUserId }]" }, "itemVar": "item", "body": [ { "id": "notify", "type": "action.call", "config": { "actionId": "notifications.send_in_app", "version": 1, "inputMapping": { "recipients": { "$expr": "{ \"user_ids\": [vars.item.userId] }" }, "title": { "$expr": "vars.title & ' #' & vars.item.i" }, "body": { "$expr": "vars.body & ' item=' & vars.item.i" }, "severity": "info", "dedupe_key": { "$expr": "'fixture.ticket-created-foreach-heavy:' & payload.fixtureDedupeKey & ':' & vars.item.i" } } } } ], "onItemError": "fail" }, { "id": "done", "type": "control.return" } ] }, "payloadSchemaJson": null } ] } ] }