From e4dda497bb8c8bb44ebc562f3562f65801dfc338 Mon Sep 17 00:00:00 2001 From: sbouchex Date: Tue, 16 Jan 2018 22:23:51 +0100 Subject: [PATCH] NIFI-4784: Fixed runStatus allowedValues. This closes #2407 --- .../org/apache/nifi/web/api/dto/status/ProcessorStatusDTO.java | 3 ++- .../nifi/web/api/dto/status/ProcessorStatusSnapshotDTO.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessorStatusDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessorStatusDTO.java index d4d6fdf22d..054d5652bb 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessorStatusDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessorStatusDTO.java @@ -77,7 +77,8 @@ public class ProcessorStatusDTO implements Cloneable { this.type = type; } - @ApiModelProperty("The run status of the Processor") + @ApiModelProperty(value="The run status of the Processor", + allowableValues = "Running, Stopped, Disabled, Invalid") public String getRunStatus() { return runStatus; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessorStatusSnapshotDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessorStatusSnapshotDTO.java index 44a9d203d4..3d17e94fcb 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessorStatusSnapshotDTO.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessorStatusSnapshotDTO.java @@ -94,7 +94,7 @@ public class ProcessorStatusSnapshotDTO implements Cloneable { */ @ApiModelProperty( value = "The state of the processor.", - allowableValues = "RUNNING, STOPPED, DISABLED, INVALID" + allowableValues = "Running, Stopped, Disabled, Invalid" ) public String getRunStatus() { return runStatus;