Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
id: testworkflow
name: Test Workflow
version: '1.0'
functions:
- name: getCurrentTime
operation: http://us-central-workflowsample.cloudfunctions.net/api.yml#datetime
- name: readWikipedia
operation: https://en.wikipedia.org/w/api.json#readLatest
states:
- name: GetTodaysWikipediaArticles
type: operation
start:
kind: default
actions:
- name: getctime
functionRef:
refName: getCurrentTime
- name: gettodaysarticles
functionRef:
refName: readWikipedia
parameters:
query:
action: opensearch
search: "{{ $.dayOfTheWeek }}"
end:
kind: default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment