public boolean isExpressionLanguageSupported() { return expressionLanguageSupported || !expressionLanguageScope.equals(ExpressionLanguageScope.NONE); }
&& propertyDescriptor.getExpressionLanguageScope().equals(ExpressionLanguageScope.NONE) ? "true (undefined scope)" : propertyDescriptor.getExpressionLanguageScope().getDescription(); dto.setExpressionLanguageScope(description);
private void writeDynamicProperty(final DynamicProperty property) throws IOException { writeStartElement("dynamicProperty"); writeTextElement("name", property.name()); writeTextElement("value", property.value()); writeTextElement("description", property.description()); writeBooleanElement("expressionLanguageSupported", property.supportsExpressionLanguage()); writeTextElement("expressionLanguageScope", property.expressionLanguageScope() == null ? null : property.expressionLanguageScope().name()); writeEndElement(); }
private void writeProperty(final PropertyDescriptor property) throws IOException { writeStartElement("property"); writeTextElement("name", property.getName()); writeTextElement("displayName", property.getDisplayName()); writeTextElement("description", property.getDescription()); writeTextElement("defaultValue", property.getDefaultValue()); writeTextElement("controllerServiceDefinition", property.getControllerServiceDefinition() == null ? null : property.getControllerServiceDefinition().getName()); writeTextArray("allowableValues", "allowableValue", property.getAllowableValues(), AllowableValue::getDisplayName); writeBooleanElement("required", property.isRequired()); writeBooleanElement("sensitive", property.isSensitive()); writeBooleanElement("expressionLanguageSupported", property.isExpressionLanguageSupported()); writeTextElement("expressionLanguageScope", property.getExpressionLanguageScope() == null ? null : property.getExpressionLanguageScope().name()); writeBooleanElement("dynamicallyModifiesClasspath", property.isDynamicClasspathModifier()); writeBooleanElement("dynamic", property.isDynamic()); writeEndElement(); }
&& (attributesAvailable && !ExpressionLanguageScope.FLOWFILE_ATTRIBUTES.equals(expressionLanguageScope))) { throw new IllegalStateException("Attempting to evaluate expression language for " + propertyDescriptor.getName() + " using flow file attributes but the scope evaluation is set to " + expressionLanguageScope + ". The" && ExpressionLanguageScope.FLOWFILE_ATTRIBUTES.equals(expressionLanguageScope) && this.serviceLookup instanceof MockValidationContext) { return; && ExpressionLanguageScope.FLOWFILE_ATTRIBUTES.equals(expressionLanguageScope) && (this.serviceLookup.getInputRequirement() == null || this.serviceLookup.getInputRequirement().value().equals(InputRequirement.Requirement.INPUT_FORBIDDEN))) { && ExpressionLanguageScope.FLOWFILE_ATTRIBUTES.equals(expressionLanguageScope) && !((MockProcessContext) this.serviceLookup).hasIncomingConnection()) { return; && (!attributesAvailable && ExpressionLanguageScope.FLOWFILE_ATTRIBUTES.equals(expressionLanguageScope))) { throw new IllegalStateException("Attempting to evaluate expression language for " + propertyDescriptor.getName() + " without using flow file attributes but the scope evaluation is set to " + expressionLanguageScope + ". The"
String text; if(dynamicProperty.expressionLanguageScope().equals(ExpressionLanguageScope.NONE)) { if(dynamicProperty.supportsExpressionLanguage()) { text = "Supports Expression Language: true (undefined scope)";
&& (attributesAvailable && !ExpressionLanguageScope.FLOWFILE_ATTRIBUTES.equals(expressionLanguageScope))) { throw new IllegalStateException("Attempting to evaluate expression language for " + propertyDescriptor.getName() + " using flow file attributes but the scope evaluation is set to " + expressionLanguageScope + ". The" && ExpressionLanguageScope.FLOWFILE_ATTRIBUTES.equals(expressionLanguageScope) && this.serviceLookup instanceof MockValidationContext) { return; && ExpressionLanguageScope.FLOWFILE_ATTRIBUTES.equals(expressionLanguageScope) && (this.serviceLookup.getInputRequirement() == null || this.serviceLookup.getInputRequirement().value().equals(InputRequirement.Requirement.INPUT_FORBIDDEN))) { && ExpressionLanguageScope.FLOWFILE_ATTRIBUTES.equals(expressionLanguageScope) && !((MockProcessContext) this.serviceLookup).hasIncomingConnection()) { return; && (!attributesAvailable && ExpressionLanguageScope.FLOWFILE_ATTRIBUTES.equals(expressionLanguageScope))) { throw new IllegalStateException("Attempting to evaluate expression language for " + propertyDescriptor.getName() + " without using flow file attributes but the scope evaluation is set to " + expressionLanguageScope + ". The"