Pierre,Sorry, I just signed up for the mailing list. Here is the code.  Can you 
see any problems with this?ThanksAshwini
------from nifiapi.flowfiletransform import FlowFileTransform, 
FlowFileTransformResultfrom org.python.core import PySet
class WriteHelloWorld(FlowFileTransform):    class Java:        implements = 
['org.apache.nifi.python.processor.FlowFileTransform']    class 
ProcessorDetails:        version = '2.0.0-M2'
    def __init__(self, **kwargs):        super().__init__(**kwargs)
    def transform(self, context, flowfile):        return 
FlowFileTransformResult(relationship = "success", contents = "Hello World", 
attributes = {"greeting", "hello"})         def getRelationships(self):        
return PySet([self.REL_SUCCESS])

Reply via email to