Implement Task Level Timeout

Hi all, I am trying to implement timeout for service tasks. If a service task takes more than 10 seconds to execute, terminate the execution of service task, and move to the next configured node. Also, if a task timeouts I want to do some timeout processing.

Camunda provides functionality to add timer boundary event, but I want to implement a timeout for all service tasks and do not want to add boundary event to each service task explicitly.

How can we achieve implicit service task timeout mechanism and how can we catch the event in case of task timeout?

Thanks in advance.