https://github.com/webini/workflow-poc
https://github.com/webini/workflow-poc
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/webini/workflow-poc
- Owner: Webini
- Created: 2017-05-22T23:40:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-10T15:42:17.000Z (over 8 years ago)
- Last Synced: 2025-03-31T13:33:44.452Z (about 1 year ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Lambda API
==========
## Variables
Name | Value
---- | -----
data | Previous data
data.{body,headers,query,method} | This fields are available if this is the first message
## Methods
Name | Parameters | Action
---- | ---------- | -------
workflow.split(datas) | array | Each element passed to workflow.split will start the same workflow at the current step + 1. The data will be hydrated with array item.
workflow.cancel(message) | string | Cancel the workflow
async api[api defined in the project](method, path, body) | string, string, object | Make an api call
workflow.external(workflowName, data, cancel = false) | string, object, boolean | Call an external workflow, if cancel = true, the current workflow is cancelled and the response won't be forwarded to the next steps.
Env
===
Variable | Default | Description
----------------------- | -------------- | --------------
RABBITMQ_URL | | RabbitMQ url (format like `amqp://localhost:5672` )
SENTRY_URL | | Sentry url (`https://@sentry.io/`)
EXCHANGE_NAME | workflow | name where the workflows request will pop
QUEUE_NAME | workflow-messages | name of the binded queue
WORKFLOW_API_URL | http://localhost:8080 | workflow api URL
WORKFLOW_API_KEY | | workflow api key