{ "format": "alga-psa.workflow-bundle", "formatVersion": 1, "exportedAt": "2026-01-26T00:00:00.000Z", "workflows": [ { "key": "fixture.schedule-block-created", "metadata": { "name": "Fixture: Schedule Block Created → Rebalance Task + Notify", "description": "Create a project task to rebalance scheduling and send an in-app notification when a schedule block is created.", "payloadSchemaRef": "payload.ScheduleBlockCreated.v1", "payloadSchemaMode": "pinned", "pinnedPayloadSchemaRef": "payload.ScheduleBlockCreated.v1", "trigger": { "type": "event", "eventName": "SCHEDULE_BLOCK_CREATED" }, "isSystem": false, "isVisible": true, "isPaused": false, "concurrencyLimit": null, "autoPauseOnFailure": false, "failureRateThreshold": null, "failureRateMinRuns": null, "retentionPolicyOverride": null }, "dependencies": { "actions": [ { "actionId": "projects.create_task", "version": 1 }, { "actionId": "notifications.send_in_app", "version": 1 } ], "nodeTypes": ["action.call", "control.return", "state.set", "transform.assign"], "schemaRefs": ["payload.ScheduleBlockCreated.v1"] }, "draft": { "draftVersion": 1, "definition": { "id": "00000000-0000-0000-0000-00000000f510", "version": 1, "name": "Fixture: Schedule Block Created → Rebalance Task + Notify", "description": "Create a project task to rebalance scheduling and send an in-app notification when a schedule block is created.", "payloadSchemaRef": "payload.ScheduleBlockCreated.v1", "trigger": { "type": "event", "eventName": "SCHEDULE_BLOCK_CREATED" }, "steps": [ { "id": "state-schedule", "type": "state.set", "config": { "state": "SCHEDULE" } }, { "id": "assign-text", "type": "transform.assign", "config": { "assign": { "vars.marker": { "$expr": "'[fixture schedule-block-created]'" }, "vars.taskTitle": { "$expr": "vars.marker & ' Rebalance scheduleBlockId=' & payload.scheduleBlockId" }, "vars.notifyTitle": { "$expr": "vars.marker & ' Schedule block created'" }, "vars.notifyBody": { "$expr": "'scheduleBlockId=' & payload.scheduleBlockId & ' startAt=' & payload.startAt" } } } }, { "id": "create-task", "type": "action.call", "config": { "actionId": "projects.create_task", "version": 1, "inputMapping": { "project_id": { "$expr": "payload.fixtureProjectId" }, "title": { "$expr": "vars.taskTitle" } } } }, { "id": "notify", "type": "action.call", "config": { "actionId": "notifications.send_in_app", "version": 1, "inputMapping": { "recipients": { "$expr": "{ \"user_ids\": [payload.fixtureNotifyUserId] }" }, "title": { "$expr": "vars.notifyTitle" }, "body": { "$expr": "vars.notifyBody" }, "severity": "info", "dedupe_key": { "$expr": "'fixture.schedule-block-created:' & payload.scheduleBlockId" } } } }, { "id": "done", "type": "control.return" } ] } }, "publishedVersions": [ { "version": 1, "definition": { "id": "00000000-0000-0000-0000-00000000f510", "version": 1, "name": "Fixture: Schedule Block Created → Rebalance Task + Notify", "description": "Create a project task to rebalance scheduling and send an in-app notification when a schedule block is created.", "payloadSchemaRef": "payload.ScheduleBlockCreated.v1", "trigger": { "type": "event", "eventName": "SCHEDULE_BLOCK_CREATED" }, "steps": [ { "id": "state-schedule", "type": "state.set", "config": { "state": "SCHEDULE" } }, { "id": "assign-text", "type": "transform.assign", "config": { "assign": { "vars.marker": { "$expr": "'[fixture schedule-block-created]'" }, "vars.taskTitle": { "$expr": "vars.marker & ' Rebalance scheduleBlockId=' & payload.scheduleBlockId" }, "vars.notifyTitle": { "$expr": "vars.marker & ' Schedule block created'" }, "vars.notifyBody": { "$expr": "'scheduleBlockId=' & payload.scheduleBlockId & ' startAt=' & payload.startAt" } } } }, { "id": "create-task", "type": "action.call", "config": { "actionId": "projects.create_task", "version": 1, "inputMapping": { "project_id": { "$expr": "payload.fixtureProjectId" }, "title": { "$expr": "vars.taskTitle" } } } }, { "id": "notify", "type": "action.call", "config": { "actionId": "notifications.send_in_app", "version": 1, "inputMapping": { "recipients": { "$expr": "{ \"user_ids\": [payload.fixtureNotifyUserId] }" }, "title": { "$expr": "vars.notifyTitle" }, "body": { "$expr": "vars.notifyBody" }, "severity": "info", "dedupe_key": { "$expr": "'fixture.schedule-block-created:' & payload.scheduleBlockId" } } } }, { "id": "done", "type": "control.return" } ] }, "payloadSchemaJson": null } ] } ] }