mirror of https://github.com/apache/nifi.git
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:
parent
143d7e6829
commit
b855d0acae
|
@ -4080,8 +4080,8 @@ public final class StandardProcessGroup implements ProcessGroup {
|
||||||
final Map<String, String> properties = populatePropertiesMap(processor.getProperties(), proposed.getProperties(), proposed.getPropertyDescriptors(), processor.getProcessGroup());
|
final Map<String, String> properties = populatePropertiesMap(processor.getProperties(), proposed.getProperties(), proposed.getPropertyDescriptors(), processor.getProcessGroup());
|
||||||
processor.setProperties(properties, true);
|
processor.setProperties(properties, true);
|
||||||
processor.setRunDuration(proposed.getRunDurationMillis(), TimeUnit.MILLISECONDS);
|
processor.setRunDuration(proposed.getRunDurationMillis(), TimeUnit.MILLISECONDS);
|
||||||
processor.setScheduldingPeriod(proposed.getSchedulingPeriod());
|
|
||||||
processor.setSchedulingStrategy(SchedulingStrategy.valueOf(proposed.getSchedulingStrategy()));
|
processor.setSchedulingStrategy(SchedulingStrategy.valueOf(proposed.getSchedulingStrategy()));
|
||||||
|
processor.setScheduldingPeriod(proposed.getSchedulingPeriod());
|
||||||
processor.setStyle(proposed.getStyle());
|
processor.setStyle(proposed.getStyle());
|
||||||
processor.setYieldPeriod(proposed.getYieldDuration());
|
processor.setYieldPeriod(proposed.getYieldDuration());
|
||||||
processor.setPosition(new Position(proposed.getPosition().getX(), proposed.getPosition().getY()));
|
processor.setPosition(new Position(proposed.getPosition().getX(), proposed.getPosition().getY()));
|
||||||
|
|
Loading…
Reference in New Issue