[Fix] Allow to archive activities in state CLOSED
This commit is contained in:
parent
b0ef4ff50d
commit
d21785edd0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue