Member since
06-28-2017
9
Posts
0
Kudos Received
0
Solutions
11-21-2018
03:59 PM
Thanks for your answer, I wanted to have only "one" queue were all flowfiles would be waiting.I know now that it was i bad idea => I reduced the size of the queue and now use backpresure. It corrected the priority problem. Thanks again !
... View more
11-13-2018
05:32 PM
Thanks Matt for this very clear article I'm using a priorityAttributePrioritizer for my queues and it seems that is not taken in account when the flowfile is not in the active queue. (The queue size is 50000, and when a flowfile with a better priorityAttribute than all flowfiles in the queue arrives, it is only processed when it arrives in the active queue) Is this the expected behaviour ? I was expecting that the flowfile with a better priority will be processed first no matter the number of flowfiles in the queue
... View more
04-05-2018
02:47 PM
If anyone needs it (Matt answers helped me a lot but is not exactly correct) : for(var prop in context.properties) { if(prop.isDynamic()) {
var name = prop.getName();
var value = context.getProperty(name).evaluateAttributeExpressions(flowFile).getValue(); //or var value = context.getProperty(name).getValue(); if AttributeExpression are not needed
log.info('name : ' + name + " value : " + value);
} }
... View more
04-05-2018
01:21 PM
Thanks a lot ! , i'll have a look to JsonSlurper and JsonOutput
... View more
04-05-2018
08:30 AM
@Matt Burgess
... View more
04-03-2018
01:03 PM
This is working perfectly with this groovy script. However, I wanted to do that in Javascript (since I want to manipulate JSON objects), is there an easy way to filter the dynamics properties ? For now, I can retrieve the list of properties (in context.properties), but I don't see any difference between the "hard coded properties" ("script engine","script file", "modules directory") and the properties I added myself. Thanks in advance if you can help
... View more
04-03-2018
09:37 AM
Not really.. but Matt's answer is what I needed, thank for your answer anyway !
... View more
04-03-2018
09:35 AM
Thanks Matt ! This is exactly what I needed
... View more
03-30-2018
08:46 AM
Hi, I am trying to make a Javascript code for the executeScript processor and I wonder if it's possible to get the name of a custom property added from the executeSript Properties tab. I know that if I add a property "myProperty", I can access it from the script by using myProperty.getValue() (or with .evaluateAttributeExpressions() when needed). But is it possible to find the key "myProperty" from inside the script ? I would like to do something like for(i = 0 ; i < customProperties.length ; i++){
propertyName = customProperties[i].getName()
value = propertyName.getValue()
//Do something with propertyName and its value
} Thanks in advance ! Félicien
... View more
Labels:
- Labels:
-
Apache NiFi