This repository gathers some workers in order to subscribe and complete Camunda's External Tasks.
To create your own workers, see 2. Create your own workers
npm install
npm run start path/to/script1 path/to/script2 ... path/to/scriptN
# Example
npm run start github/checkRepository github/createRepository github/deleteRepository keycloak/retrieveUserInfo
Some workers need extra environment variables in order to run :
Name | Description | Needed by script |
---|---|---|
CAMUNDA_ENGINE_URL |
URL of the Camunda engine | all |
GITHUB_URL |
Base URL of the GitHub server to use (ex: https://api.github.com ) |
github/* |
GITHUB_TOKEN |
Token of the GitHub account to use | github/* |
USERINFO_URL |
URL where Keycloak user information can be retrieved | keycloak/retrieveUserInfo.js |
Create a JS file with the following exports :
module.exports = {
topic: 'my-topic',
callback: async function({ task, taskService }) {
/*
Your code here
*/
},
};
Full documentation of task
and taskService
variables