From 06b17f1d2876b63002beb8956e46b5e6d8d8fe85 Mon Sep 17 00:00:00 2001 From: "openfn[bot]" Date: Thu, 7 Nov 2024 12:53:33 +0000 Subject: [PATCH] user aissatou@openfn.org initiated a sync from Lightning --- ...9c20-4af7-47aa-81cd-511b22105623-spec.yaml | 55 ++++++++++++++ ...c20-4af7-47aa-81cd-511b22105623-state.json | 75 +++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 openfn-3f789c20-4af7-47aa-81cd-511b22105623-spec.yaml create mode 100644 openfn-3f789c20-4af7-47aa-81cd-511b22105623-state.json diff --git a/openfn-3f789c20-4af7-47aa-81cd-511b22105623-spec.yaml b/openfn-3f789c20-4af7-47aa-81cd-511b22105623-spec.yaml new file mode 100644 index 0000000..8d6d1c6 --- /dev/null +++ b/openfn-3f789c20-4af7-47aa-81cd-511b22105623-spec.yaml @@ -0,0 +1,55 @@ +name: cht-sandbox +description: null +credentials: null +workflows: + Sample-Workflow: + name: Sample Workflow + jobs: + Get-Patients: + name: Get Patients + adaptor: '@openfn/language-cht@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + Transform-and-map-patients: + name: Transform and map patients + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + Load-to-DHIS2: + name: Load to DHIS2 + adaptor: '@openfn/language-dhis2@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + cron: + type: cron + cron_expression: '0 0 * * *' + enabled: true + edges: + cron->Get-Patients: + source_trigger: cron + target_job: Get-Patients + condition_type: always + enabled: true + Get-Patients->Transform-and-map-patients: + source_job: Get-Patients + target_job: Transform-and-map-patients + condition_type: on_job_success + enabled: true + Transform-and-map-patients->Load-to-DHIS2: + source_job: Transform-and-map-patients + target_job: Load-to-DHIS2 + condition_type: on_job_success + enabled: true diff --git a/openfn-3f789c20-4af7-47aa-81cd-511b22105623-state.json b/openfn-3f789c20-4af7-47aa-81cd-511b22105623-state.json new file mode 100644 index 0000000..f45d741 --- /dev/null +++ b/openfn-3f789c20-4af7-47aa-81cd-511b22105623-state.json @@ -0,0 +1,75 @@ +{ + "id": "3f789c20-4af7-47aa-81cd-511b22105623", + "name": "cht-sandbox", + "description": null, + "inserted_at": "2024-11-07T11:32:07Z", + "updated_at": "2024-11-07T11:32:07Z", + "project_credentials": {}, + "scheduled_deletion": null, + "history_retention_period": null, + "dataclip_retention_period": null, + "retention_policy": "retain_all", + "requires_mfa": false, + "workflows": { + "Sample-Workflow": { + "id": "c80ea84e-4a5b-44db-b863-9305d5e225e2", + "name": "Sample Workflow", + "inserted_at": "2024-11-07T12:49:44.252128Z", + "lock_version": 2, + "triggers": { + "cron": { + "enabled": true, + "id": "5257dc8b-f1c8-4073-8772-2a23958d1b01", + "type": "cron", + "cron_expression": "0 0 * * *" + } + }, + "jobs": { + "Get-Patients": { + "id": "6c132952-404d-434b-8ee5-c161704c9f86", + "name": "Get Patients", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-cht@latest", + "project_credential_id": null + }, + "Transform-and-map-patients": { + "id": "02495f58-cb2c-4b0e-8cf7-d41293455ee0", + "name": "Transform and map patients", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "Load-to-DHIS2": { + "id": "9af97a93-22c5-4bf4-8f69-86ac2d6e6af7", + "name": "Load to DHIS2", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-dhis2@latest", + "project_credential_id": null + } + }, + "edges": { + "cron->Get-Patients": { + "enabled": true, + "id": "3c0a1c52-1f6b-4210-8ead-7d50cea97428", + "source_trigger_id": "5257dc8b-f1c8-4073-8772-2a23958d1b01", + "condition_type": "always", + "target_job_id": "6c132952-404d-434b-8ee5-c161704c9f86" + }, + "Get-Patients->Transform-and-map-patients": { + "enabled": true, + "id": "038b5924-a4b4-4434-8f85-d4101aa3da61", + "source_job_id": "6c132952-404d-434b-8ee5-c161704c9f86", + "condition_type": "on_job_success", + "target_job_id": "02495f58-cb2c-4b0e-8cf7-d41293455ee0" + }, + "Transform-and-map-patients->Load-to-DHIS2": { + "enabled": true, + "id": "818f484f-b685-4352-8553-93514b4df739", + "source_job_id": "02495f58-cb2c-4b0e-8cf7-d41293455ee0", + "condition_type": "on_job_success", + "target_job_id": "9af97a93-22c5-4bf4-8f69-86ac2d6e6af7" + } + } + } + } +} \ No newline at end of file