Skip to content

Instantly share code, notes, and snippets.

@subelsky
Created December 26, 2016 16:52
Show Gist options
  • Save subelsky/eca78d1baf4cf144005bfbc9299a6a96 to your computer and use it in GitHub Desktop.
Save subelsky/eca78d1baf4cf144005bfbc9299a6a96 to your computer and use it in GitHub Desktop.
# There's not much documentation about nifi's JRuby API but it closely follows
# what the python API looks like:
# see http://funnifi.blogspot.com/2016/02/executescript-processor-hello-world.html
flow_file = session.get()
updated_flow_file = session.putAttribute(flow_file,"my-attribute","my-value")
session.transfer(updated_flow_file,REL_SUCCESS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment