Skip to content

Commit

Permalink
add body file path
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchi committed Jan 11, 2024
1 parent a76caa2 commit 6bcd1a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
5 changes: 1 addition & 4 deletions jobs/expression.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
// language-http

get('someUrl', { ...params }, callback);
post('someUrl', { body: state => state.data })'
fn(state => state);
15 changes: 7 additions & 8 deletions project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,32 @@ workflows:
adaptor: '@openfn/language-http@latest'
# credential:
# globals:
body: |
fn(state => state);
body: 'file://.jobs/expression.js'

Send-to-OpenHIM-to-route-to-aleksa:
name: Send to OpenHIM to route to aleksa
adaptor: '@openfn/language-http@latest'
# credential:
# globals:
body: |
fn(state => state);
Notify-CHW-upload-successful:
name: Notify CHW upload successful
adaptor: '@openfn/language-http@latest'
# credential:
# globals:
body: |
fn(state => state);
Notify-CHW-upload-failed:
name: Notify CHW upload failed
adaptor: '@openfn/language-http@latest'
# credential:
# globals:
body: |
fn(state => state);
triggers:
webhook:
type: webhook
Expand Down Expand Up @@ -73,7 +72,7 @@ workflows:
# globals:
body: |
// Get started by adding operations from the API reference
triggers:
webhook:
type: webhook
Expand All @@ -83,4 +82,4 @@ workflows:
source_trigger: webhook
target_job: New-job
condition_type: always
enabled: true
enabled: true

0 comments on commit 6bcd1a9

Please sign in to comment.