I have a workflow bpmn2 file, containing, Custom Task (backed by custom WorkItemHandler implementation), Script task etc. Can I specify "timeout" for eash task within the workflow file (or through API) ?
While executing the process, the process will throw error if a particular task doesn't execute within the configured timeout. Is there any inbuilt feature like this in JBPM workflow engine?
you could try to use timer boundary event on task to cancel it when not completed in time but that would mean set boundary event on each task individually.
Alternatively you can do that in your work item handler to have like a monitoring thread that counts the time and in case if exceeds given value will thrown an exception.