Statistic shows event as ENDED_TIMEOUT but it is still in Activity Window and running

Document ID : KB000087492
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
N/A

Scenario:
 
A WF contains a script and an event:
 
0EMb0000000IYJj.png

In the script, the event is modified by MODIFY_TASK and a Maximum Run Time is set (3 minutes in the test). If the file for which the event checks is not present, the event should be stopped after the Maximum Run Time.
The test workflow is executed once. The file to check must not be present:
 
0EMb0000000IYJt.png
 
0EMb0000000IYJy.png

After ca. the Maximum Run Time of 3 minutes, the activity window is empty again and the statistics show:

0EMb0000000IYK3.png
 

In this case it works as expected.

Now the Workflow is executed several times:
 
0EMb0000000IYK8.png

After all Workflows are finished, some Events remain in the activity window and keep on checking:

0EMb0000000IYKD.png

They are not just in the activity window, they are really running and checking. When the checked file is now created, they end correctly.

Compare the statistics of the Workflow and the activity window:
 
0EMb0000000IYKI.png

One says ENDED_TIMEOUT, the other Sleeping for the same object. This is incorrect.
Cause:
Cause type:
Defect
Root Cause: A problem has been fixed where in a certain situation, a File Event objects stay active after exceeding the MRT.
Resolution:
Update to a fix version listed below or a newer version if available.

Fix Status: Released

Fix Version(s):
AE Server and Initialdata
Automation Engine 12.1.0 - Available
Automation Engine 12.0.3 - Available
Automation Engine 11.2.6 - Available
Additional Information:
Workaround :
Create an Timer Event that runs regularly. Each time, the following SQL-Select is executed:
 
select ah_idnr from eh, ah where eh_status = 1701 and eh_otype = 'EVNT' and ah_status = 1942 and ah_idnr = eh_ah_idnr;

All found objects are then canceled:
 
0EMb0000000IYJe.png