Hi Sebastian and Maciej,
Please have a look at this. I just add two lines in TaskActivity and TaskTimeoutTest could pass successfully.
DbSession taskDbSession = EnvironmentImpl .getFromCurrent(DbSession.class);
TaskImpl task = (TaskImpl) taskDbSession.findTaskByExecution(execution);
if (task!=null) {
task.setSignalling(false);
+ HistoryEvent.fire(new TaskTimeout("time out"), (ExecutionImpl)execution);
+ taskDbSession.delete(task);
}
The testcase project is in the attach. Please think about it. If there is any chance, please don't change ExternalActivityBehaviour, at least not this time. Thank you very much.