This is an automated email from the ASF dual-hosted git repository.

tpalfy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new cf4eed0224 NIFI-10207: ensure allowableValues matches SUPPORTED_STATE 
in ProcessorRunStatusEntity
cf4eed0224 is described below

commit cf4eed0224dabea3d8e739ae31f69354cc4542c6
Author: Otto Fowler <[email protected]>
AuthorDate: Fri Jul 8 16:38:39 2022 -0400

    NIFI-10207: ensure allowableValues matches SUPPORTED_STATE in 
ProcessorRunStatusEntity
    
    This closes #6188.
    
    Signed-off-by: Tamas Palfy <[email protected]>
---
 .../java/org/apache/nifi/web/api/entity/ProcessorRunStatusEntity.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessorRunStatusEntity.java
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessorRunStatusEntity.java
index 44323a3261..8ea2623f8b 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessorRunStatusEntity.java
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessorRunStatusEntity.java
@@ -26,6 +26,7 @@ import javax.xml.bind.annotation.XmlType;
 @XmlType(name = "processorRunStatus")
 public class ProcessorRunStatusEntity extends ComponentRunStatusEntity {
 
+    // Must match the @ApiModelProperty.allowableValues above getState()
     private static String[] SUPPORTED_STATE = {"RUNNING", "RUN_ONCE", 
"STOPPED", "DISABLED"};
 
     @Override
@@ -39,7 +40,7 @@ public class ProcessorRunStatusEntity extends 
ComponentRunStatusEntity {
      */
     @ApiModelProperty(
             value = "The run status of the Processor.",
-            allowableValues = "RUNNING, STOPPED, DISABLED"
+            allowableValues = "RUNNING, STOPPED, DISABLED, RUN_ONCE"
     )
     public String getState() {
         return super.getState();

Reply via email to