Terminate process model after n- minutes

Hi Team,

We have a scenario where Process Model 1 calls Sub‑Process Model 2 in synchronous mode. Sub‑Process Model 2 contains Process 2.1 and Process 2.2.
Normally, these complete within expected time, but if Process Model 2 runs longer than 15 minutes, we want to:
- Terminate Sub‑Process Model 2.
- Mark it as completed so it doesn’t remain in an in‑progress state.


Essentially:
- Process Model 1 (synchronous) → Process Model 2.1 & 2.2.
- If execution exceeds 15 minutes, enforce a timeout, terminate, and mark complete.


Question to the Community:
- What is the recommended way to implement this timeout/termination logic in Appian?
- Is there a best practice for handling long‑running synchronous sub‑processes (e.g., timers, escalation paths, or design patterns)?

Error "The amount of time allocated for the completion of an unattended activity was insufficient to allow the activity to complete."

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to purvajadurga-hzn
    This will help clarify how the sub‑process is managed when execution exceeds the defined threshold

    The parent process terminates so the subprocesses are ended.  If you need anything more detailed than that to happen, then the timers will need to be handled within the child processes will need to take specific action (with their own timer nodes) -- however, you're asking me to fill in details here when you didn't provide the specific requirements.  What I've provided above therefore is the simplest normal execution, where the parent process timer simply causes any/all subprocesses to halt when the timer expires.