Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow example #12

Open
mtuchi opened this issue Mar 21, 2024 · 0 comments
Open

Update workflow example #12

mtuchi opened this issue Mar 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mtuchi
Copy link
Collaborator

mtuchi commented Mar 21, 2024

Background, context, and business value

The current lightning-workflow.json is outdate. From @openfn/[email protected] there is a change in workflow structure to resemble new lighting naming conviction

The specific request, in as few words as possible

Update https://github.com/OpenFn/project/blob/main/lightning-workflow.json to use the new workflow structure

{
  "options": {
    "start": "get-data",
    "timeout": 1200000
  },
  "workflow": {
    "steps": [
      {
        "id": "get-data",
        "adaptor": "[email protected]",
        "state": {},
        "configuration": "./tmp/db-credential.json",
        "expression": "./jobs/1-getPatientData.js",
        "next": {
          "post-data": {
            "condition": "true"
          }
        }
      },
      {
        "id": "post-data",
        "adaptor": "http@latest",
        "configuration": "./tmp/api-credential.json",
        "state": {},
        "expression": "./jobs/2-postData.js"
      }
    ]
  }
}
@mtuchi mtuchi added the enhancement New feature or request label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant