I am using the camunda-external-task-client-js lib to create create a simple node js app that will complete a external send message task
This external send message task works, but after the task complete method call, it gives the below error even though I have not set any duedate for my task
your reply was a good starting point, but I had to research a little bit more, since I’m using Spring Boot. Finally, I ended up with this entries in my application.yaml:
With these settings, even a cron expression of “0/5 * * * * ?” (which means “every 5 seconds”) triggered almost in time. But now I have some more questions:
Which implications do these values for wait-time-in-millis and max-wait have?
Why do I need them at all?
If the implications are stressing some resources too much, I’d rather think about using Spring’s capabilities of timed triggers and create a new process instance from there with runtimeService.createProcessInstanceByKey(…). Unfortunately, with this Spring approach my BPM model could not carry the timed starter event symbol any more…
The settings are all about balancing resource consumption over accuracy with timers.
For the most use cases, you don’t care about a time difference of a minute when you wait for time that will expire in several days. For this reason, the engine implemented a increasing wait interval between job acquisitions, if there are no jobs to execute.