Timed Event Not Triggering External Task Execution

Problem Description:
I am experiencing an issue with my BPMN process in Camunda. The hourly timed event is being triggered as expected, but the configured external task is not executed properly.

The symptoms include:

  1. The open task count increases every time the timed event is triggered.
  2. The external tasks are never executed or acknowledged.
  3. These tasks accumulate over time, remaining incomplete and potentially causing performance issues.

Current Setup:

  • The BPMN process includes a timed event configured to trigger every hour.
  • The next step in the process is an external task that should invoke an external service.
  • The external service is operational and functioning correctly outside Camunda but seems to not be invoked by the BPMN process.

Troubleshooting Attempts:

  1. Verified the external worker setup to ensure it is connected and polling for tasks.
  2. Confirmed that the timed event is triggering at the correct intervals.
  3. Reviewed the BPMN configuration of the external task to ensure all parameters are correctly set.
  4. Checked the Camunda logs and the external worker logs, but no clear errors explaining the issue were found.

Questions/Concerns:

  1. Is there any additional configuration required in Camunda to ensure the external worker receives and processes tasks triggered by the timed event?
  2. Could this be related to task locking or an issue with the external worker setup?
  3. Are there any specific debugging tools or methods in Camunda to pinpoint where the issue occurs in the process?

Technical Context:

  • Camunda 7
  • External Worker: Javascript external worker

Any insights or guidance would be greatly appreciated!

Hey @Derick_Avila and welcome to the forum!

Assuming that you do not have any trouble with the timer-event as it triggers as expected it seems like that something is wrong with the configuration of the external-task implementation or the connection between the Camunda-REST API and your worker.

Answering your questions

  1. Please check the official docs about External Tasks | docs.camunda.org or one of the official supported GitHub - camunda/camunda-external-task-client-js: Implement your BPMN Service Task in NodeJS. external task-clients to verify your setup.
  2. If you receive no response from your fetchAndLock requests fired from your worker the external task is free to be fetched from any worker which asks for it by its topic. Only receiving a successful response would lock this task instance for the worker by its id and the provided lock duration time.
  3. You can check the correct state of the external task in Cockpit which should show an active execution token on the external task and an external-task instance in the bottom-navigation “External Tasks”. If none of this is shown to you, you can check the engine-logs and provide any information about it here.

Could you provide the bpmn file of your process?

Hope this helps!