{ "format": "alga-psa.workflow-bundle", "formatVersion": 1, "exportedAt": "2026-01-27T02:06:59.662Z", "workflows": [ { "key": "fixture.ticket-created-call-notify-subworkflow", "metadata": { "name": "Fixture: Ticket Created Call Notify Subworkflow (CallWorkflow)", "description": "Call a sub-workflow and assert both parent+child side effects (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.callWorkflow", "control.return", "state.set", "transform.assign" ], "schemaRefs": [ "payload.TicketCreated.v1" ] }, "draft": { "draftVersion": 1, "definition": { "id": "2e543a61-3aa7-2852-c3ae-f4ae5feac2a0", "version": 1, "name": "Fixture: Ticket Created Call Notify Subworkflow (CallWorkflow)", "description": "Call a sub-workflow and assert both parent+child side effects (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-call-notify-subworkflow]'" }, "vars.title": { "$expr": "'[fixture ticket-created-call-notify-subworkflow] Parent'" }, "vars.body": { "$expr": "'[fixture ticket-created-call-notify-subworkflow] dedupe=' & payload.fixtureDedupeKey" } } } }, { "id": "call-child", "type": "control.callWorkflow", "workflowId": "00000000-0000-0000-0000-000000000000", "workflowVersion": 1, "inputMapping": { "fixtureNotifyUserId": { "$expr": "payload.fixtureNotifyUserId" }, "fixtureDedupeKey": { "$expr": "payload.fixtureDedupeKey" } } }, { "id": "notify", "type": "action.call", "config": { "actionId": "notifications.send_in_app", "version": 1, "inputMapping": { "recipients": { "$expr": "{ \"user_ids\": [payload.fixtureNotifyUserId] }" }, "title": { "$expr": "vars.title" }, "body": { "$expr": "vars.body" }, "severity": "info", "dedupe_key": { "$expr": "'fixture.ticket-created-call-notify-subworkflow:' & payload.fixtureDedupeKey & ':parent'" } } } }, { "id": "done", "type": "control.return" } ] } }, "publishedVersions": [] }, { "key": "subfixture.ticket-created-call-notify-subworkflow", "metadata": { "name": "Fixture: Ticket Created Call Notify Subworkflow (Child)", "description": "Child workflow for callWorkflow fixture ticket-created-call-notify-subworkflow.", "payloadSchemaRef": "payload.TicketCreated.v1", "payloadSchemaMode": "pinned", "pinnedPayloadSchemaRef": "payload.TicketCreated.v1", "trigger": null, "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" ], "schemaRefs": [ "payload.TicketCreated.v1" ] }, "draft": { "draftVersion": 1, "definition": { "id": "00000000-0000-0000-0000-000000006e0e", "version": 1, "name": "Fixture: Ticket Created Call Notify Subworkflow (Child)", "description": "Child workflow for callWorkflow fixture ticket-created-call-notify-subworkflow.", "payloadSchemaRef": "payload.TicketCreated.v1", "steps": [ { "id": "state-fixture", "type": "state.set", "config": { "state": "FIXTURE" } }, { "id": "assign-text", "type": "transform.assign", "config": { "assign": { "vars.marker": { "$expr": "'[fixture ticket-created-call-notify-subworkflow child]'" }, "vars.title": { "$expr": "'[fixture ticket-created-call-notify-subworkflow child] Child'" }, "vars.body": { "$expr": "'[fixture ticket-created-call-notify-subworkflow child] dedupe=' & payload.fixtureDedupeKey" } } } }, { "id": "notify", "type": "action.call", "config": { "actionId": "notifications.send_in_app", "version": 1, "inputMapping": { "recipients": { "$expr": "{ \"user_ids\": [payload.fixtureNotifyUserId] }" }, "title": { "$expr": "vars.title" }, "body": { "$expr": "vars.body" }, "severity": "info", "dedupe_key": { "$expr": "'fixture.ticket-created-call-notify-subworkflow:' & payload.fixtureDedupeKey & ':child'" } } } }, { "id": "done", "type": "control.return" } ] } }, "publishedVersions": [] } ] }