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 Jan 24, 2025
1 parent c57b8ca commit aa6959b
Show file tree
Hide file tree
Showing 2 changed files with 439 additions and 462 deletions.
33 changes: 24 additions & 9 deletions openfn-4b31fe8d-913a-402e-ad04-f8f36befaaf5-spec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: miraclefeet
description: null
credentials:
[email protected]:
name: MiracleFeet Production
owner: [email protected]
[email protected]:
name: Bracing Night Workflow Webhook
owner: [email protected]
Expand All @@ -10,6 +13,9 @@ credentials:
[email protected]:
name: Miraclefeet SMS Salesforce Sandbox
owner: [email protected]
"[email protected](OpenFn-owned)":
name: 'Miraclefeet Salesforce Production (OpenFn owned)'
owner: [email protected]
rita@openfn.org-Salesforce-Sandbox-with-MF-bracing-night-workflow-inbox:
name: Salesforce Sandbox with MF bracing night workflow inbox
owner: [email protected]
Expand Down Expand Up @@ -959,15 +965,16 @@ workflows:
condition_label: 'Not a test user (PR)'
condition_expression: |
state.data.form.calcs.general.test_user !== "Yes"

enabled: true
Forwarding-job-Patient-Registration-Forms->Register-New-Patient-to-Device:
Forwarding-job-Patient-Registration-Forms->Add-New-Patient:
source_job: Forwarding-job-Patient-Registration-Forms
target_job: Register-New-Patient-to-Device
target_job: Add-New-Patient
condition_type: on_job_success
enabled: true
Forwarding-job-Patient-Registration-Forms->Add-New-Patient:
Forwarding-job-Patient-Registration-Forms->Register-New-Patient-to-Device:
source_job: Forwarding-job-Patient-Registration-Forms
target_job: Add-New-Patient
target_job: Register-New-Patient-to-Device
condition_type: on_job_success
enabled: true
Treatment-Providers:
Expand Down Expand Up @@ -1192,14 +1199,15 @@ workflows:
condition_label: Not a test user
condition_expression: |
state.data.properties.test_user !== "Yes"

enabled: true
Update-Patient-WF:
name: Update Patient WF
jobs:
Update-Patient:
name: Update Patient
adaptor: '@openfn/[email protected]'
credential: [email protected]SMS-Salesforce-Sandbox
credential: '[email protected]Production-(OpenFn-owned)'
body: |
// =============================================================================
// New job for SF migration to new objects
Expand Down Expand Up @@ -1785,15 +1793,16 @@ workflows:
condition_type: js_expression
condition_label: 'Not a test user (Update Patient)'
condition_expression: |
state.data.form.calcs.case_properties.test_user === "No"
state.data.properties.test_user === "No"

enabled: true
Update-Visit-WF:
name: Update Visit WF
jobs:
Update-Visit:
name: Update Visit
adaptor: '@openfn/[email protected]'
credential: [email protected]SMS-Salesforce-Sandbox
credential: '[email protected]Production-(OpenFn-owned)'
body: |
// =============================================================================
// New job for SF migratio to new objects
Expand Down Expand Up @@ -2478,6 +2487,7 @@ workflows:
condition_label: Appointment case update
condition_expression: |
state.data.properties.visit_from_duplicate_patient !== "1" && state.data.properties.test_user !== "Yes"

enabled: true
Upsert-Clinic-WF:
name: Upsert Clinic WF
Expand Down Expand Up @@ -2571,6 +2581,7 @@ workflows:
condition_label: Location Updated
condition_expression: |
state.data.metadata.test_clinic !== "Yes"

enabled: true
Visit-Forms:
name: Visit Forms
Expand All @@ -2588,7 +2599,7 @@ workflows:
Add-New-Visit:
name: Add New Visit
adaptor: '@openfn/[email protected]'
credential: [email protected]SMS-Salesforce-Sandbox
credential: '[email protected]Production-(OpenFn-owned)'
body: |
//New job for upserting Visits post SF migration
fn(state => {
Expand Down Expand Up @@ -3386,7 +3397,7 @@ workflows:
New-Partner-Brace-Distribution:
name: New Partner Brace Distribution
adaptor: '@openfn/[email protected]'
credential: [email protected]SMS-Salesforce-Sandbox
credential: '[email protected]Production-(OpenFn-owned)'
body: |
fn(state => {
//NOTE: Here we add functions for converting/transformating data
Expand Down Expand Up @@ -3631,6 +3642,7 @@ workflows:
condition_label: 'Not a test user (VF)'
condition_expression: |
state.data.form.calcs.case_properties.test_user !== "Yes"

enabled: true
Forwarding-job-Visit-Forms->Add-New-Visit:
source_job: Forwarding-job-Visit-Forms
Expand Down Expand Up @@ -6934,6 +6946,7 @@ workflows:
condition_label: Patient Registration Form
condition_expression: |
state.data.form.summary.summary.registration_info_label === "OK" && state.data.form.calcs.general.test_user=== "No"

enabled: true
"x-[archive]-Add-New-Visit":
name: 'x [archive] Add New Visit'
Expand Down Expand Up @@ -7748,6 +7761,7 @@ workflows:
condition_label: Visit Form
condition_expression: |
state.data.form['@name'] === "Log Visit Details" && state.data.form.calcs.case_properties.test_user === "Yes"

enabled: true
"x-[archive]-Register-New-Patient-to-Device":
name: 'x [archive] Register New Patient to Device'
Expand Down Expand Up @@ -7887,4 +7901,5 @@ workflows:
condition_label: Patient Registration Form
condition_expression: |
state.data.form.summary.summary.registration_info_label === "OK" && !state.data.form.calcs.general.test_user === "Yes"

enabled: true
Loading

0 comments on commit aa6959b

Please sign in to comment.