Skip to content

Commit

Permalink
user [email protected] initiated a sync from Lightning
Browse files Browse the repository at this point in the history
  • Loading branch information
openfn[bot] authored and github-actions[bot] committed Nov 8, 2024
1 parent dd4ed30 commit 5e0cf7f
Showing 1 changed file with 150 additions and 162 deletions.
312 changes: 150 additions & 162 deletions openfn-69066751-5f2c-459c-b42e-feba1c802383-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,36 +45,20 @@
"history_retention_period": null,
"dataclip_retention_period": null,
"retention_policy": "retain_all",
"requires_mfa": false,
"workflows": {
"fetch-metadata-and-generate-opts-json": {
"id": "182c38b7-fa91-4bc3-82ed-ebd92e26be8f",
"name": "fetch-metadata-and-generate-opts-json",
"edges": {
"Get-metadata-file-from-Sharepoint->Map-metadata-file-to-option-set-Json-format": {
"enabled": true,
"id": "4ec86a4d-17b0-447c-a816-42f1d95d7f25",
"source_job_id": "aab663a0-6bcc-42fa-9f53-146d8fa44061",
"condition_type": "on_job_success",
"target_job_id": "b5743b64-3250-4dbf-8d74-256a1c7e9623"
},
"Map-metadata-file-to-option-set-Json-format->Save-option-set-json-to-github": {
"enabled": true,
"id": "820d203a-1e9c-494d-8fba-c7c962209de7",
"source_job_id": "b5743b64-3250-4dbf-8d74-256a1c7e9623",
"condition_type": "on_job_success",
"target_job_id": "b224b966-35f4-43ea-90e9-1f5dfcb56416"
},
"webhook->Get-metadata-file-from-Sharepoint": {
"inserted_at": "2024-10-30T12:02:03.305779Z",
"lock_version": 1,
"triggers": {
"webhook": {
"enabled": true,
"id": "441b595b-441a-4938-be44-be49c32f5cc4",
"source_trigger_id": "654e0bc2-22ae-4033-9090-18760ab28ea2",
"condition_type": "always",
"target_job_id": "aab663a0-6bcc-42fa-9f53-146d8fa44061"
"id": "654e0bc2-22ae-4033-9090-18760ab28ea2",
"type": "webhook"
}
},
"concurrency": null,
"inserted_at": "2024-10-30T12:02:03Z",
"updated_at": "2024-10-30T12:02:03Z",
"jobs": {
"Get-metadata-file-from-Sharepoint": {
"id": "aab663a0-6bcc-42fa-9f53-146d8fa44061",
Expand All @@ -98,38 +82,42 @@
"project_credential_id": null
}
},
"triggers": {
"webhook": {
"edges": {
"Get-metadata-file-from-Sharepoint->Map-metadata-file-to-option-set-Json-format": {
"enabled": true,
"id": "654e0bc2-22ae-4033-9090-18760ab28ea2",
"type": "webhook"
"id": "4ec86a4d-17b0-447c-a816-42f1d95d7f25",
"source_job_id": "aab663a0-6bcc-42fa-9f53-146d8fa44061",
"condition_type": "on_job_success",
"target_job_id": "b5743b64-3250-4dbf-8d74-256a1c7e9623"
},
"Map-metadata-file-to-option-set-Json-format->Save-option-set-json-to-github": {
"enabled": true,
"id": "820d203a-1e9c-494d-8fba-c7c962209de7",
"source_job_id": "b5743b64-3250-4dbf-8d74-256a1c7e9623",
"condition_type": "on_job_success",
"target_job_id": "b224b966-35f4-43ea-90e9-1f5dfcb56416"
},
"webhook->Get-metadata-file-from-Sharepoint": {
"enabled": true,
"id": "441b595b-441a-4938-be44-be49c32f5cc4",
"source_trigger_id": "654e0bc2-22ae-4033-9090-18760ab28ea2",
"condition_type": "always",
"target_job_id": "aab663a0-6bcc-42fa-9f53-146d8fa44061"
}
},
"deleted_at": null,
"lock_version": 1
}
},
"wf-3-generate-optsmap": {
"id": "c9d7d47a-5502-4f52-bc30-950746a8b473",
"name": "wf-3-generate-optsmap",
"edges": {
"webhook->Fetch-OptionSets-Metadata": {
"enabled": true,
"id": "f0c1f4e9-2619-46da-b7d6-595bf8ea249a",
"source_trigger_id": "e62241ef-84ef-4ca7-9fec-c350e849390e",
"condition_type": "always",
"target_job_id": "ed90907f-3ba3-4a08-ae52-7425e584dae6"
},
"Fetch-OptionSets-Metadata->Key-Value-Pair": {
"enabled": true,
"id": "fa1fc60a-b2b4-48ef-b4b4-a47eb93d58f6",
"source_job_id": "ed90907f-3ba3-4a08-ae52-7425e584dae6",
"condition_type": "on_job_success",
"target_job_id": "6f832249-fc16-4bab-8ed2-cbaa832611f0"
"inserted_at": "2024-10-30T12:02:03.315657Z",
"lock_version": 1,
"triggers": {
"webhook": {
"enabled": false,
"id": "e62241ef-84ef-4ca7-9fec-c350e849390e",
"type": "webhook"
}
},
"concurrency": null,
"inserted_at": "2024-10-30T12:02:03Z",
"updated_at": "2024-10-30T12:02:03Z",
"jobs": {
"Fetch-OptionSets-Metadata": {
"id": "ed90907f-3ba3-4a08-ae52-7425e584dae6",
Expand All @@ -146,55 +134,36 @@
"project_credential_id": null
}
},
"triggers": {
"webhook": {
"enabled": false,
"id": "e62241ef-84ef-4ca7-9fec-c350e849390e",
"type": "webhook"
}
},
"deleted_at": null,
"lock_version": 1
},
"wf1-dhis2-omrs-migration": {
"id": "73fda9b2-2555-4764-b0f9-388a99583532",
"name": "wf1-dhis2-omrs-migration",
"edges": {
"cron->Fetch-Metadata": {
"enabled": true,
"id": "85b3b59f-90c1-434a-a9a6-1c09dd86ccff",
"source_trigger_id": "f982cc7a-6c9e-4778-9a08-6ddf8469509d",
"condition_type": "always",
"target_job_id": "d7c373f4-a503-4fa6-bfdd-ab456860ae78"
},
"Get-Teis-and-Locations->Create-Patients": {
"enabled": true,
"id": "c2122c54-8ddf-4ed1-9e6a-ff86adc4b7d8",
"source_job_id": "d30561c9-1e9d-467c-b37b-985bcdf1a55c",
"condition_expression": "state.teis.length > 0 && !state.errors\n",
"condition_type": "js_expression",
"condition_label": "has-teis",
"target_job_id": "fe6cdd41-491d-44fd-80af-0ac8891dd766"
},
"Fetch-Metadata->Get-Teis-and-Locations": {
"Fetch-OptionSets-Metadata->Key-Value-Pair": {
"enabled": true,
"id": "cfa7784e-6a3e-4f6f-8578-4dfb410f4a41",
"source_job_id": "d7c373f4-a503-4fa6-bfdd-ab456860ae78",
"condition_expression": "state.trackedEntityInstances.length > 0\n",
"id": "fa1fc60a-b2b4-48ef-b4b4-a47eb93d58f6",
"source_job_id": "ed90907f-3ba3-4a08-ae52-7425e584dae6",
"condition_type": "on_job_success",
"target_job_id": "d30561c9-1e9d-467c-b37b-985bcdf1a55c"
"target_job_id": "6f832249-fc16-4bab-8ed2-cbaa832611f0"
},
"Create-Patients->Update-Teis": {
"webhook->Fetch-OptionSets-Metadata": {
"enabled": true,
"id": "22aa79eb-9f8d-404d-9880-09c866470085",
"source_job_id": "fe6cdd41-491d-44fd-80af-0ac8891dd766",
"condition_type": "on_job_success",
"target_job_id": "df3ec9f2-6913-4742-8898-44734deed649"
"id": "f0c1f4e9-2619-46da-b7d6-595bf8ea249a",
"source_trigger_id": "e62241ef-84ef-4ca7-9fec-c350e849390e",
"condition_type": "always",
"target_job_id": "ed90907f-3ba3-4a08-ae52-7425e584dae6"
}
}
},
"wf1-dhis2-omrs-migration": {
"id": "73fda9b2-2555-4764-b0f9-388a99583532",
"name": "wf1-dhis2-omrs-migration",
"inserted_at": "2024-11-07T07:35:48.656212Z",
"lock_version": 16,
"triggers": {
"cron": {
"enabled": false,
"id": "f982cc7a-6c9e-4778-9a08-6ddf8469509d",
"type": "cron",
"cron_expression": "0 0 * * *"
}
},
"concurrency": null,
"inserted_at": "2024-10-30T12:02:03Z",
"updated_at": "2024-11-07T07:35:48Z",
"jobs": {
"Fetch-Metadata": {
"id": "d7c373f4-a503-4fa6-bfdd-ab456860ae78",
Expand Down Expand Up @@ -225,82 +194,53 @@
"project_credential_id": null
}
},
"triggers": {
"cron": {
"enabled": false,
"id": "f982cc7a-6c9e-4778-9a08-6ddf8469509d",
"type": "cron",
"cron_expression": "0 0 * * *"
}
},
"deleted_at": null,
"lock_version": 16
},
"wf2-omrs-dhis2": {
"id": "c886121c-0a91-45b5-ae30-7d0922b693be",
"name": "wf2-omrs-dhis2",
"edges": {
"Get-Patients->Mappings": {
"enabled": true,
"id": "ff6aff74-ffd9-48cc-8441-94a77f847418",
"source_job_id": "ecaf53cc-fbde-4703-827b-7b8a5126fb82",
"condition_expression": "state.patients.length > 0 && !state.errors\n",
"condition_type": "js_expression",
"condition_label": "has-patients",
"target_job_id": "f022ca80-7da0-4fdb-9728-38e34280c516"
},
"Get-TEIs->Create-Events": {
"enabled": true,
"id": "5384f7c8-7b38-44cd-8055-e3f6c46932e7",
"source_job_id": "793f4fe1-d717-4caa-a617-2b5e2b19880d",
"condition_expression": "state.TEIs && !state.errors\n",
"condition_type": "js_expression",
"condition_label": "has-teis",
"target_job_id": "a1176a6e-cdee-4ddc-9fe1-e49aa7b719cd"
},
"Create-Events->Update-TEIs": {
"enabled": true,
"id": "63cd0a29-5d94-489e-9ba0-8a6690a555bc",
"source_job_id": "a1176a6e-cdee-4ddc-9fe1-e49aa7b719cd",
"condition_expression": "state?.genderUpdated?.length > 0 && !state.errors\n",
"condition_type": "js_expression",
"condition_label": "has-gender-updated",
"target_job_id": "abe0d282-5209-47b5-9272-4cba048a5ba8"
},
"cron->Get-Patients": {
"cron->Fetch-Metadata": {
"enabled": true,
"id": "60f8f83d-7e0d-402f-90ee-8d8d85488097",
"source_trigger_id": "a38c8cfb-8fad-46b3-b69c-a7f6108a0d8c",
"id": "85b3b59f-90c1-434a-a9a6-1c09dd86ccff",
"source_trigger_id": "f982cc7a-6c9e-4778-9a08-6ddf8469509d",
"condition_type": "always",
"target_job_id": "ecaf53cc-fbde-4703-827b-7b8a5126fb82"
"target_job_id": "d7c373f4-a503-4fa6-bfdd-ab456860ae78"
},
"Upsert-TEIs->Get-Encounters": {
"Get-Teis-and-Locations->Create-Patients": {
"enabled": true,
"id": "0075ae81-bef3-4fe9-969a-847f8bcde8fa",
"source_job_id": "5f3d2b64-435a-4df5-9d99-9fc37728d0b8",
"condition_expression": "state.patientUuids.length > 0 && !state.errors\n",
"id": "c2122c54-8ddf-4ed1-9e6a-ff86adc4b7d8",
"source_job_id": "d30561c9-1e9d-467c-b37b-985bcdf1a55c",
"condition_expression": "state.teis.length > 0 && !state.errors\n",
"condition_type": "js_expression",
"condition_label": "has-patient-uuids",
"target_job_id": "a5c005be-2d95-4809-ad77-fd62f93dc976"
"condition_label": "has-teis",
"target_job_id": "fe6cdd41-491d-44fd-80af-0ac8891dd766"
},
"Mappings->Upsert-TEIs": {
"Fetch-Metadata->Get-Teis-and-Locations": {
"enabled": true,
"id": "e45c7204-ae45-438f-ad71-4c663bc72850",
"source_job_id": "f022ca80-7da0-4fdb-9728-38e34280c516",
"id": "cfa7784e-6a3e-4f6f-8578-4dfb410f4a41",
"source_job_id": "d7c373f4-a503-4fa6-bfdd-ab456860ae78",
"condition_expression": "state.trackedEntityInstances.length > 0\n",
"condition_type": "on_job_success",
"target_job_id": "5f3d2b64-435a-4df5-9d99-9fc37728d0b8"
"target_job_id": "d30561c9-1e9d-467c-b37b-985bcdf1a55c"
},
"Get-Encounters->Get-TEIs": {
"Create-Patients->Update-Teis": {
"enabled": true,
"id": "2332a5e2-aa7b-4646-8193-958923e235f3",
"source_job_id": "a5c005be-2d95-4809-ad77-fd62f93dc976",
"id": "22aa79eb-9f8d-404d-9880-09c866470085",
"source_job_id": "fe6cdd41-491d-44fd-80af-0ac8891dd766",
"condition_type": "on_job_success",
"target_job_id": "793f4fe1-d717-4caa-a617-2b5e2b19880d"
"target_job_id": "df3ec9f2-6913-4742-8898-44734deed649"
}
}
},
"wf2-omrs-dhis2": {
"id": "c886121c-0a91-45b5-ae30-7d0922b693be",
"name": "wf2-omrs-dhis2",
"inserted_at": "2024-11-07T16:41:41.148511Z",
"lock_version": 29,
"triggers": {
"cron": {
"enabled": false,
"id": "a38c8cfb-8fad-46b3-b69c-a7f6108a0d8c",
"type": "cron",
"cron_expression": "0 0 * * *"
}
},
"concurrency": null,
"inserted_at": "2024-10-30T12:02:03Z",
"updated_at": "2024-11-07T16:41:41Z",
"jobs": {
"Get-Patients": {
"id": "ecaf53cc-fbde-4703-827b-7b8a5126fb82",
Expand Down Expand Up @@ -352,17 +292,65 @@
"project_credential_id": "9716980f-1b35-4295-adde-b05bc47002da"
}
},
"triggers": {
"cron": {
"enabled": false,
"id": "a38c8cfb-8fad-46b3-b69c-a7f6108a0d8c",
"type": "cron",
"cron_expression": "0 0 * * *"
"edges": {
"cron->Get-Patients": {
"enabled": true,
"id": "60f8f83d-7e0d-402f-90ee-8d8d85488097",
"source_trigger_id": "a38c8cfb-8fad-46b3-b69c-a7f6108a0d8c",
"condition_type": "always",
"target_job_id": "ecaf53cc-fbde-4703-827b-7b8a5126fb82"
},
"Upsert-TEIs->Get-Encounters": {
"enabled": true,
"id": "0075ae81-bef3-4fe9-969a-847f8bcde8fa",
"source_job_id": "5f3d2b64-435a-4df5-9d99-9fc37728d0b8",
"condition_expression": "state.patientUuids.length > 0 && !state.errors\n",
"condition_type": "js_expression",
"condition_label": "has-patient-uuids",
"target_job_id": "a5c005be-2d95-4809-ad77-fd62f93dc976"
},
"Mappings->Upsert-TEIs": {
"enabled": true,
"id": "e45c7204-ae45-438f-ad71-4c663bc72850",
"source_job_id": "f022ca80-7da0-4fdb-9728-38e34280c516",
"condition_type": "on_job_success",
"target_job_id": "5f3d2b64-435a-4df5-9d99-9fc37728d0b8"
},
"Get-Patients->Mappings": {
"enabled": true,
"id": "ff6aff74-ffd9-48cc-8441-94a77f847418",
"source_job_id": "ecaf53cc-fbde-4703-827b-7b8a5126fb82",
"condition_expression": "state.patients.length > 0 && !state.errors\n",
"condition_type": "js_expression",
"condition_label": "has-patients",
"target_job_id": "f022ca80-7da0-4fdb-9728-38e34280c516"
},
"Get-TEIs->Create-Events": {
"enabled": true,
"id": "5384f7c8-7b38-44cd-8055-e3f6c46932e7",
"source_job_id": "793f4fe1-d717-4caa-a617-2b5e2b19880d",
"condition_expression": "state.TEIs && !state.errors\n",
"condition_type": "js_expression",
"condition_label": "has-teis",
"target_job_id": "a1176a6e-cdee-4ddc-9fe1-e49aa7b719cd"
},
"Create-Events->Update-TEIs": {
"enabled": true,
"id": "63cd0a29-5d94-489e-9ba0-8a6690a555bc",
"source_job_id": "a1176a6e-cdee-4ddc-9fe1-e49aa7b719cd",
"condition_expression": "state?.genderUpdated?.length > 0 && !state.errors\n",
"condition_type": "js_expression",
"condition_label": "has-gender-updated",
"target_job_id": "abe0d282-5209-47b5-9272-4cba048a5ba8"
},
"Get-Encounters->Get-TEIs": {
"enabled": true,
"id": "2332a5e2-aa7b-4646-8193-958923e235f3",
"source_job_id": "a5c005be-2d95-4809-ad77-fd62f93dc976",
"condition_type": "on_job_success",
"target_job_id": "793f4fe1-d717-4caa-a617-2b5e2b19880d"
}
},
"deleted_at": null,
"lock_version": 29
}
}
},
"requires_mfa": false
}
}

0 comments on commit 5e0cf7f

Please sign in to comment.