NIFI-7629: Make property PROJECT_ID evaluate EL on processors ConsumeGCPubSub & PublishGCPubSub

This commit is contained in:
Cuong Nguyen 2020-07-11 12:12:46 +07:00 committed by markap14
parent 19a84dd3dd
commit c7a235f854
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ public class ConsumeGCPubSub extends AbstractGCPubSubProcessor {
private String getSubscriptionName(ProcessContext context) {
final String subscriptionName = context.getProperty(SUBSCRIPTION).evaluateAttributeExpressions().getValue();
final String projectId = context.getProperty(PROJECT_ID).getValue();
final String projectId = context.getProperty(PROJECT_ID).evaluateAttributeExpressions().getValue();
if (subscriptionName.contains("/")) {
return ProjectSubscriptionName.parse(subscriptionName).toString();

View File

@ -209,7 +209,7 @@ public class PublishGCPubSub extends AbstractGCPubSubProcessor{
private ProjectTopicName getTopicName(ProcessContext context) {
final String topic = context.getProperty(TOPIC_NAME).evaluateAttributeExpressions().getValue();
final String projectId = context.getProperty(PROJECT_ID).getValue();
final String projectId = context.getProperty(PROJECT_ID).evaluateAttributeExpressions().getValue();
if (topic.contains("/")) {
return ProjectTopicName.parse(topic);