How to trigger or test an activity escalation immediately without waiting
- 6 days ago
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