Created
December 26, 2016 16:52
-
-
Save subelsky/eca78d1baf4cf144005bfbc9299a6a96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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