{ "format": "alga-psa.workflow-bundle", "formatVersion": 1, "exportedAt": "2026-01-27T19:09:36.182Z", "workflows": [ { "key": "fixture.ticket-created-call-triage-subworkflow-real", "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": "tickets.add_comment", "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-triage-subworkflow-real]'" }, "vars.title": { "$expr": "'[fixture ticket-created-call-triage-subworkflow-real] Parent'" }, "vars.body": { "$expr": "'[fixture ticket-created-call-triage-subworkflow-real] 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": "tickets.add_comment", "version": 1, "inputMapping": { "ticket_id": { "$expr": "payload.ticketId" }, "body": { "$expr": "(vars.marker ? vars.marker : '[fixture ticket-created-call-triage-subworkflow-real]') & ' ' & (vars.body ? vars.body : (vars.title ? vars.title : ''))" }, "visibility": "internal" } } }, { "id": "done", "type": "control.return" } ] } }, "publishedVersions": [] }, { "key": "subfixture.ticket-created-call-triage-subworkflow-real", "metadata": { "name": "Fixture: Ticket Created Call Notify Subworkflow (Child)", "description": "Child workflow for callWorkflow fixture ticket-created-call-triage-subworkflow-real.", "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": "tickets.add_comment", "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-triage-subworkflow-real.", "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-triage-subworkflow-real child]'" }, "vars.title": { "$expr": "'[fixture ticket-created-call-triage-subworkflow-real child] Child'" }, "vars.body": { "$expr": "'[fixture ticket-created-call-triage-subworkflow-real child] dedupe=' & payload.fixtureDedupeKey" } } } }, { "id": "notify", "type": "action.call", "config": { "actionId": "tickets.add_comment", "version": 1, "inputMapping": { "ticket_id": { "$expr": "payload.ticketId" }, "body": { "$expr": "(vars.marker ? vars.marker : '[fixture ticket-created-call-triage-subworkflow-real]') & ' ' & (vars.body ? vars.body : (vars.title ? vars.title : ''))" }, "visibility": "internal" } } }, { "id": "done", "type": "control.return" } ] } }, "publishedVersions": [] } ] }