Constraining a process within a time box

I would like to have a Camunda process be bound by a time duration. For example, Process A should take a maximum of N days to complete. There is a completion event at the end. But if the completion event is not triggered within N days, then the process should terminate in an error state. Thank you for any help.

Hi @tmcgarry801, welcome to the forum! There are two patterns for modeling this, both are in this model:

First, you can wrap your process in a sub-process and attach an interrupting timer boundary event. This has the benefit of being able to time box only certain steps within a larger process, giving you flexibility.

Or, you can use an event sub-process (in the bottom left) with an interrupting timer start event that will cancel the whole process. This approach does not need the additional sub-process wrapping the rest of the process and works for the entire running process. If you don’t need to allow some tasks but time box others, then this approach is probably best.

1 Like

Thanks so much!! I’ll give it a try.

1 Like