This example shows how to automate a simple order process using Camunda, external tasks and camunda-worker-node.
The following process is the basis of this example:
It defines two external tasks, orderProcess:checkout
and orderProcess:shipment
.
The script index.js
bootstraps camunda-worker-node and hooks in the (external) implementation for both tasks.
Upon execution the workers log the work they perform.
If you don't have Camunda running already, start it via:
npm run support:start-camunda
Stop it later on via
npm run support:stop-camunda
Deploy the process:
npm run support:deploy
Start 1000 process instances:
npm run support:start-process -- --stream
Start workers:
npm run start-workers
MIT