mirror of https://github.com/apache/nifi.git
NIFI-13256 Corrected Example WriteHelloWorld Processor Attributes
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #8841.
This commit is contained in:
parent
439851fa6e
commit
15ac906725
|
@ -153,10 +153,10 @@ class WriteHelloWorld(FlowFileTransform):
|
|||
version = '0.0.1-SNAPSHOT'
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
pass
|
||||
|
||||
def transform(self, context, flowfile):
|
||||
return FlowFileTransformResult(relationship = "success", contents = "Hello World", attributes = {"greeting", "hello"})
|
||||
return FlowFileTransformResult(relationship = "success", contents = "Hello World", attributes = {"greeting": "hello"})
|
||||
----
|
||||
|
||||
The `transform` method is expected to take two arguments: the context (of type `nifiapi.properties.ProcessContext`) and
|
||||
|
|
Loading…
Reference in New Issue