1 Reply Latest reply on Nov 20, 2014 11:30 AM by swiderski.maciej

    Can I specify timeout for every JBPM task?

    sanbhat

      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?

        • 1. Re: Can I specify timeout for every JBPM task?
          swiderski.maciej

          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.

           

          HTH

          1 of 1 people found this helpful