External tasks for Camunda BPM process + saving process data to MongoDB.
- Rebuild the project:
mvn clean install
- Build and run docker containers (camunda. mongodb, mongo-express and the external tasks app):
docker compose up -d
- Download and start Camunda Modeler (https://camunda.com/download/modeler/). Open process model innovations_process.bpmn and deploy it to Camunda Platform container:
- Check the deployment in Camunda Cockpit (http://localhost:8080/camunda/app/cockpit/default/#/processes):
Default Camunda username/password: demo/demo
- Use Postman to start Camunda process instance with input variables (innovationId, innovationCost, innovationEffect):
POST http://localhost:8080/engine-rest/process-definition/key/innovations_process/start
Body:
{
"variables": {
"innovationCost": {
"value":2100,
"type":"integer"
},
"innovationEffect": {
"value":5600,
"type":"integer"
},
"innovationId": {
"value": "01-2023"
}
}
}
Default Camunda username/password: demo/demo
Authorization: Basic
- Start multiple instances of the process with different input variable values.
- Open Mongo Express UI and check the contents of innovation_db database (http://localhost:8081/db/innovations_db/innovation):
Default Mongo Express username/password: root/root



