MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / onTrigger

Function onTrigger

extensions/script/ExampleProcessor.py:22–26  ·  view source on GitHub ↗
(context, session)

Source from the content-addressed store, hash-verified

20 processor.setSupportsDynamicProperties()
21
22def onTrigger(context, session):
23 flow_file = session.get()
24 if flow_file is not None:
25 flow_file.addAttribute("Python attribute","attributevalue")
26 session.transfer(flow_file, REL_SUCCESS)

Callers 1

onTriggerMethod · 0.50

Calls 3

getMethod · 0.45
addAttributeMethod · 0.45
transferMethod · 0.45

Tested by

no test coverage detected