mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-02 10:04:09 +03:00
6b4c79ff0d
- add workflow runner module - add an endpoint to trigger a workflow via api - improve error handling for serverless functions ## Testing - create 2 serverless functions - create a workflow - create this workflow Version ``` { "type": "MANUAL", "input": {"b": "bb"}, "nextAction": { "name": "step_1", "displayName": "Code", "type": "CODE", "valid": true, "settings": { "serverlessFunctionId": "Serverless function 1 Id", "errorHandlingOptions": { "retryOnFailure": { "value": false }, "continueOnFailure": { "value": false } } }, "nextAction": { "name": "step_1", "displayName": "Code", "type": "CODE", "valid": true, "settings": { "serverlessFunctionId": "Serverless function 1 Id", "errorHandlingOptions": { "retryOnFailure": { "value": false }, "continueOnFailure": { "value": false } } }, "nextAction": { "name": "step_1", "displayName": "Code", "type": "CODE", "valid": true, "settings": { "serverlessFunctionId": "Serverless function 2 Id", "errorHandlingOptions": { "retryOnFailure": { "value": false }, "continueOnFailure": { "value": false } } } } } } } ` `` - call ``` mutation Trigger { triggerWorkflow(workflowVersionId: "WORKFLOW_VERSION_ID") { result } } ``` - try when errors are injected in serverless function |
||
---|---|---|
.. | ||
__mocks__ | ||
.storybook | ||
public | ||
scripts | ||
src | ||
.env.example | ||
.eslintrc-ci.cjs | ||
.eslintrc.cjs | ||
.gitignore | ||
.prettierignore | ||
.swcrc | ||
codegen-metadata.cjs | ||
codegen.cjs | ||
index.html | ||
jest.config.ts | ||
nyc.config.cjs | ||
package.json | ||
project.json | ||
README.md | ||
setupTests.ts | ||
tsconfig.app.json | ||
tsconfig.json | ||
tsconfig.spec.json | ||
tsconfig.storybook.json | ||
tsup.config.ts | ||
tsup.ui.index.tsx | ||
vite.config.ts |
Run yarn dev
while server running on port 3000