Forum Discussion

david_sierra-fernandez's avatar
11 days ago
Solved

How to trigger or test an activity escalation immediately without waiting

Hi all,

 

I'm testing an activity escalation in a Workflow Map and would like to know how to trigger it right away instead of waiting for the configured escalation time to pass.

 

Could someone share the standard ways to force or test an escalation in a test environment—for example, whether there is a scheduled task/agent or method that can be run on demand, or which date/timeout properties on the workflow activity or assignment determine when it becomes eligible for escalation?

 

Thanks in advance for any help!

 

David

  • Hi David,

    Escalation needs two things: the activity has to be overdue, and the escalation job has to run. In a test environment you can force both.

    Which properties make an activity eligible

    These are set on the Workflow Map activity:

    • Expected Duration sets the due date. The due date of the activity is calculated by adding the expected duration to the date the activity was activated.
    • Timeout Duration is the amount of calendar time after the duedate before the activity is escalated.
    • Escalate To is the Identity that replaces the assignee when this activity is overdue. When there is no identity specified here, issues are escalated to the Process Owner. If no identity is specified there, they are escalated to the Creator of the workflow map.

    An activity becomes eligible once activation date + Expected Duration + Timeout Duration is in the past. To get there quickly, either:

    • set both durations to 0 on the map before starting a new test workflow, or
    • on a running test instance, move the activity's due date into the past using an admin edit or AML.

       

    Watch out for blank values. Aras Support has confirmed that if the expected duration or Timeout Duration are left blank, it will automatically escalate the activity that night after creation.

    What does the escalating:

    Nothing escalates in real time. A scheduled server method does it. In the standard Scheduler Service setup, it runs the Check Escalations method to automatically escalate and designated Workflow Activities at 00:12, after the Send Email Reminders job. You can run it on demand in either of these ways:

    • Run the method directly as an admin user. For example, run it from the Method item, or send <AML><Item type="Method" action="Check Escalations"/></AML> through Nash or an AML test tool.
    • Change the Scheduler config temporarily so the Check Escalations job runs every few minutes, then restart the Scheduler Service. Change it back afterwards.
      should be located somewhere in \instancename\Scheduler\InnovatorServiceConfig.xml
      You can find path using  services.msc → Innovator Service → Properties. The "Path to executable" field shows the folder.

    Testing custom logic:

    If you've added an On Escalate server event on the activity, it runs when Check Escalations processes the activity. That makes it easy to debug once the activity is overdue.

    Things to know:

    Check Escalations looks at all active workflows, not just yours. In a shared test database, other overdue activities may get escalated too, and their assignees may be notified.

    regards

    Michael

3 Replies

  • Hi Michael,

    Just wanted to let you know that it worked perfectly.

    Running Check Escalations manually and adjusting the durations/overdue conditions allowed me to trigger and test the escalation immediately. This was exactly what I was looking for.

    Thanks a lot for the detailed explanation and the additional notes regarding the scheduler configuration and escalation behavior. They were very helpful.

    Best regards,

    David Sierra

    • mconstantin_aras_com's avatar
      mconstantin_aras_com
      Creator III

      Hi
      Excellent, I really appreciate the feedback 😀
      Have a nice week-end

  • Hi David,

    Escalation needs two things: the activity has to be overdue, and the escalation job has to run. In a test environment you can force both.

    Which properties make an activity eligible

    These are set on the Workflow Map activity:

    • Expected Duration sets the due date. The due date of the activity is calculated by adding the expected duration to the date the activity was activated.
    • Timeout Duration is the amount of calendar time after the duedate before the activity is escalated.
    • Escalate To is the Identity that replaces the assignee when this activity is overdue. When there is no identity specified here, issues are escalated to the Process Owner. If no identity is specified there, they are escalated to the Creator of the workflow map.

    An activity becomes eligible once activation date + Expected Duration + Timeout Duration is in the past. To get there quickly, either:

    • set both durations to 0 on the map before starting a new test workflow, or
    • on a running test instance, move the activity's due date into the past using an admin edit or AML.

       

    Watch out for blank values. Aras Support has confirmed that if the expected duration or Timeout Duration are left blank, it will automatically escalate the activity that night after creation.

    What does the escalating:

    Nothing escalates in real time. A scheduled server method does it. In the standard Scheduler Service setup, it runs the Check Escalations method to automatically escalate and designated Workflow Activities at 00:12, after the Send Email Reminders job. You can run it on demand in either of these ways:

    • Run the method directly as an admin user. For example, run it from the Method item, or send <AML><Item type="Method" action="Check Escalations"/></AML> through Nash or an AML test tool.
    • Change the Scheduler config temporarily so the Check Escalations job runs every few minutes, then restart the Scheduler Service. Change it back afterwards.
      should be located somewhere in \instancename\Scheduler\InnovatorServiceConfig.xml
      You can find path using  services.msc → Innovator Service → Properties. The "Path to executable" field shows the folder.

    Testing custom logic:

    If you've added an On Escalate server event on the activity, it runs when Check Escalations processes the activity. That makes it easy to debug once the activity is overdue.

    Things to know:

    Check Escalations looks at all active workflows, not just yours. In a shared test database, other overdue activities may get escalated too, and their assignees may be notified.

    regards

    Michael