I apologize if this is specified elsewhere, but I couldn't find it.

* I was wondering when the jars, used by a particular Groovy script (in the ExecuteScript processor), are reloaded. I.e. if one jar is updated, when will the script pick up the new version? I know that upon restarting the processor, the updated jar is considered, but I was wondering in which other occasions that happens; * Do people tend to use fat (shadow) jars for this sort of jars referenced by groovy scripts? I don't think it makes sense to keep track of all the dependencies manually otherwise; * When using the {P,J}ython processor, I read Matt advice to use the following construct in the script:

```
for flowFile in session.get(N):
    if flowFile:
       # do your thing here
```

Does the same hold for Groovy, i.e. should someone do

```
session.get(N).each{ flowFile ->
// do your thing here
if(condition) {
session.transfer(flowFile, REL_SUCCESS)
} else {
session.transfer(flowFile, REL_FAILURE)}

}
```

Is this approach safe in groovy inside a `each`? Or is this approach not needed at all in Groovy, while it is needed in {P,J}ython?

Thanks in advance!

Giovanni

Reply via email to