mirror of https://github.com/apache/nifi.git
NIFI-10207: ensure allowableValues matches SUPPORTED_STATE in ProcessorRunStatusEntity
This closes #6188. Signed-off-by: Tamas Palfy <tpalfy@apache.org>
This commit is contained in:
parent
06db7968fa
commit
cf4eed0224
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue