PlanningState planningState) {
this.task = task;
this.context = context;
this.planningState = planningState;
AllocationResult allocationResult = AllocationResult.createCurrent(
planningState.getCurrentScenario(), task);
if (allocationResult.getAggregate().isEmpty()) {
try {
Messagebox.show(_("Some allocations needed"), _("Warning"),
Messagebox.OK, Messagebox.EXCLAMATION);
} catch (InterruptedException e) {
throw new RuntimeException(e);