class LongRunningProcessClearTask extends LongRunningProcessTask<List<LongRunningProcessStatus>> {

    @Override public List<LongRunningProcessStatus> call() {
        ArrayList<LongRunningProcessStatus> res = new ArrayList<>();

        for (UUID prodId : procIds)
            res.add(prepareProcessForRemoving(prodId));

        // All-or-nothing strategy. Processes will be removed only if all processes can be removed.
        removeProcessesFromMetadataStorage();

        return res;
    }

    public  LongRunningProcessClearTask(List<UUID> procIds);

}