A timer exception in a script task doesnt work

Hi! We have a script taks with a exception flow , we have configured the timer with this:

If the script task delay more than 15 second it has to go in flow exception, but it doesnt

Any option??

Regards,Rebeca

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to Peter Lewis

    It's legacy code where we have an expression with multiple integrations (read-only) being executed from that rule. We do have  timeout set to 10 sec in integration rule. However, if the integration errors out due to any issue ( e.g., network connectivity issue), we would like to retry the entire  expression

  • 0
    Appian Employee
    in reply to akshayan

    I think you're better off having a gateway after the script task that can check the results and decide whether to retry it. If you have a timeout in your integration, then the integration should never take more than 10 seconds (and the node should complete successfully), so then you can use the results to decide what to do next.

    In general I'd recommend only using exceptions on nodes that are attended (e.g. Script Task, Sub-Process). Any other nodes it's usually better to have th node complete and then use logic in a gateway to determine what to do next.