Nifi equals条件不匹配

huangapple go评论61阅读模式
英文:

Nifi equals condition doesnt match

问题

为什么第一个条件总是被跳过

${name:equals('xxx'):not():or('zzz'):not():or('aaa'):and(${number:equals(1)})}

${name:equals('xxx') 

被NiFi跳过了吗

无论哪个条件排在第一位,处理器总是跳过它

有关我可以做什么的任何建议...

英文:

Why the first condition always is skipping

${name:equals('xxx'):not():or('zzz'):not():or('aaa'):and(${number:equals(1)})}

Is

${name:equals('xxx') 

skipped by NiFi

It doesn't matter which one condition is first always skipped by the processor

Any suggestions on what I can do ...

答案1

得分: 1

我建议这个表达式(查看 https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#or):

${name:equals('xxx'):not():or(${name:equals('xxx'):not()}):or(${name:equals('aaaa'):not()}):and(${number:equals(1)})}
英文:

I suggest this expression

(check https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#or):

${name:equals('xxx'):not():or(${name:equals('xxx'):not()}):or(${name:equals('aaaa'):not()}):and(${number:equals(1)})}

huangapple
  • 本文由 发表于 2023年6月15日 15:40:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76480169.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定