NIFI-4884 Fixing ordering during import from registry so that we set schedule strategy on a processor before setting scheduling duration. This closes #2472

This commit is contained in:
Bryan Bende 2018-02-15 12:42:47 -05:00 committed by Matt Gilman
parent 143d7e6829
commit b855d0acae
No known key found for this signature in database
GPG Key ID: DF61EC19432AEE37
1 changed files with 1 additions and 1 deletions

View File

@ -4080,8 +4080,8 @@ public final class StandardProcessGroup implements ProcessGroup {
final Map<String, String> properties = populatePropertiesMap(processor.getProperties(), proposed.getProperties(), proposed.getPropertyDescriptors(), processor.getProcessGroup());
processor.setProperties(properties, true);
processor.setRunDuration(proposed.getRunDurationMillis(), TimeUnit.MILLISECONDS);
processor.setScheduldingPeriod(proposed.getSchedulingPeriod());
processor.setSchedulingStrategy(SchedulingStrategy.valueOf(proposed.getSchedulingStrategy()));
processor.setScheduldingPeriod(proposed.getSchedulingPeriod());
processor.setStyle(proposed.getStyle());
processor.setYieldPeriod(proposed.getYieldDuration());
processor.setPosition(new Position(proposed.getPosition().getX(), proposed.getPosition().getY()));