Skip to main content
November 9, 2023
Question

How to catch error in a running process model?

  • November 9, 2023
  • 3 replies
  • 0 views

We what to catch errors in a running process model, save the error in DB.

We also want to know when the PM halts, save something to DB, too.

    3 replies

    stefanhelzle0001
    Brainy
    November 9, 2023

    When a node in a process fails, that process stops and an email is sent according to the alert settings in the model. That's all you can do.

    In this blog post I describe how you can setup a working support model for Appian applications.

    appian.rocks/.../

    jordand0005
    November 9, 2023

    Hi Liang,

    I have provided a solution to a similar error monitoring problem here:  [mention:6d86a8f6095842bf84e240f2703d7b9b:46448885d0e64133bbfbf0cd7b0fd6f7] 

    I believe the same plug in can be used to address your issue. You can use the associated smart services to query which processes have nodes that have an error. You can then capture the process instance and node information and then save to DB if required. BUT there isn't functionality as yet to save the exact error message. 

    We have a similar use case in our application. We use the plug in functionality to produce a report for developers which shows process models with outstanding errors (after we automatically retry the process models 5 times to address DB connection drop issues).

    I hope this helps - please see the other discussion post I've linked for further information.

    abhayd3663
    November 9, 2023

    Here is some work around:

    - Create parallel process flow for error, which starts with the timer.

    - Setup timer which is more than the time required by the primary flow. Ex. the primary flow needs 5 min to complete, setup timer to 1hr etc. 

    - For any reason the primary flow halts due to an error, the timer flow will get triggers after the predefined time. 

    - Capture PV values and store to DB or send to email as suitable.

    - Incase when the primary flow completes without any error, the timer flow will not get triggered.