[Fix] Allow to archive activities in state CLOSED

This commit is contained in:
Robert von Burg 2017-10-31 10:55:47 +01:00
parent b0ef4ff50d
commit d21785edd0
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ public class RemoveActivityArchival extends ActivityArchivalPolicy {
@Override
public void archive(Activity activity) {
if (!activity.getState().isExecuted())
if (!activity.getState().isExecuted() && !activity.getState().isClosed())
throw new IllegalStateException("Can not archive non-executed " + activity.getLocator());
tx().remove(activity);