Good morning,
I am writing an ExecutableToolbarActionsItem to enable my editors to trigger a delta generation and publish. Sometimes a delta generation is not possible, and in my schedule script I check to see if the delta can work:
deltaGeneration = DeploymentUtil.createDeltaGeneration(context).levelRule(1,4);
changeSet = deltaGeneration.calculateChangeSet();
changeSet.configureGenerateTask();
boolean isFullGeneration = changeSet.isFullGenerate();
I would like to know this information before the schedule is triggered, i.e. inside the ExecutableToolbarActionsItem and before I call:
ScheduleStorage scheduleStorage = _baseContext.requireSpecialist(ServicesBroker.TYPE).getService(AdminService.class).getScheduleStorage();
List<ScheduleEntry> allScheduleEntries = scheduleStorage.getScheduleEntries(project); // get all ScheduleEntries of the current project
...
ScheduleEntryControl control = scheduleEntry.execute();
Is it possible to get a ScheduleContext before executing the schedule entry?
Is there another way of determining if a generation will be delta or full before executing it?
I'd really like to give my editors the option of aborting a generation and publish if a Delta is not possible, as a full publish can hit the performance of the Portal server very hard.
Many thanks,
Liam Davison