cancel
Showing results for 
Search instead for 
Did you mean: 

Technical and functional error management

miko2009
Champ in-the-making
Champ in-the-making
Hello,

We are thinking about replacing our current BPM engine (old version of jBPM) by Activiti.
To do so, we plan to deploy a first workflow to see if that would be a viable solution.

For example, for a task in the workflow calling a webservice:
  • Technical errors: when webservice is unavailable, we would like that the task is retried every 5 minutes and fails after 10 attempts, going to an "error" task (same as described below, requiring manual action)
  • Functional errors: when webservice returns a 404 error code, we would like that the workflow goes to an "error" task where our support team could analyze the error and execute again the task that failed

  • Do you have any ideas or advices on how we should do that properly with Activiti?

    Thank you!
    1 REPLY 1

    trademak
    Star Contributor
    Star Contributor
    A service task in Activiti can be made async which means that it will be retried automatically when an exception is thrown. The retry time and number of attempts can be configured. In case of a functional error you just not throw an exception but move forward to an error task (modeled with an exclusive gateway or programmed with a specific transition in the service task).

    Best regards,