Github user JPercivall commented on a diff in the pull request:
https://github.com/apache/nifi/pull/319#discussion_r91147897
--- Diff:
nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
---
@@ -162,20 +146,33 @@ public ValidationResult validate(String subject,
String input, ValidationContext
// static properties
public static final PropertyDescriptor DELETE_ATTRIBUTES = new
PropertyDescriptor.Builder()
.name("Delete Attributes Expression")
- .description("Regular expression for attributes to be deleted
from flowfiles.")
+ .description("Regular expression for attributes to be deleted
from FlowFiles.")
.required(false)
.addValidator(DELETE_PROPERTY_VALIDATOR)
.expressionLanguageSupported(true)
.build();
- // relationships
- public static final Relationship REL_SUCCESS = new
Relationship.Builder()
- .description("All FlowFiles are routed to this
relationship").name("success").build();
+ public static final PropertyDescriptor STORE_STATE = new
PropertyDescriptor.Builder()
+ .name("Store State")
+ .description("Select whether or not state will be stored.
Selecting 'Stateless' will offer the default functionality of purely updating
the attributes on a " +
+ "FlowFile in a stateless manner. Selecting 'Stateful'
will not only store the attributes on the FlowFile but also in the Processors
state. See the 'Stateful Usage' " +
+ "topic of the 'Additional Details' section of this
processor's documentation for more information")
+ .required(true)
+ .allowableValues(DO_NOT_STORE_STATE, STORE_STATE_LOCALLY)
+ .defaultValue(DO_NOT_STORE_STATE)
+ .build();
+ public static final PropertyDescriptor STATEFUL_VARIABLES_INIT_VALUE =
new PropertyDescriptor.Builder()
+ .name("Stateful Variables Initial Value")
+ .description("If using state to set/reference variables then
this value is used to set the initial value of the stateful variable. This will
only be used in the @OnScheduled method " +
+ "when state does not contain a value for the
variable.")
+ .required(false)
+ .defaultValue("0")
--- End diff --
Yeah I agree that it should be empty. I will change
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---