Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
expression language not working in nifi update attribute
Labels:
- Labels:
-
Apache NiFi
Contributor
Created ‎11-15-2023 02:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
iam trying to publish data into multiple kafka topics with some conditions but instead of returning value of the expression , whole value passed for the property is coming.
customerTopic should return me the value of the expression but its returning the expression itself
attaching the images of the flow.
1 ACCEPTED SOLUTION
Expert Contributor
Created ‎11-15-2023 05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try that value:
${kafka.topic:contains('alerts'):ifElse('customerTopicKafkaTesting1',${kafka.topic:contains('events'):ifElse('customerTopicKafkaTesting2',${kafka.topic:contains('ack'):ifElse('customerTopicKafkaTesting3','Not_Found')})})}
You forgot to close ${kafka.topic:contains('events')...}
1 REPLY 1
Expert Contributor
Created ‎11-15-2023 05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try that value:
${kafka.topic:contains('alerts'):ifElse('customerTopicKafkaTesting1',${kafka.topic:contains('events'):ifElse('customerTopicKafkaTesting2',${kafka.topic:contains('ack'):ifElse('customerTopicKafkaTesting3','Not_Found')})})}
You forgot to close ${kafka.topic:contains('events')...}
