Github user arpadboda commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/448#discussion_r239111667
  
    --- Diff: nanofi/include/api/nanofi.h ---
    @@ -165,6 +355,31 @@ uint8_t remove_attribute(flow_file_record*, char *key);
     
     int transmit_flowfile(flow_file_record *, nifi_instance *);
     
    +/**
    + * Adds a custom processor for later instantiation
    + * @param name name of the processor
    + * @param logic the callback to be invoked when the processor is triggered
    + * @return 0 on success, -1 otherwise (name already in use for eg.)
    + **/
    +int add_custom_processor(const char * name, processor_logic* logic);
    --- End diff --
    
    
    I don't see the simple way of doing this. The part I see complicated is 
registering static properties in a custom processor, so we should rely on 
dynamic ones, however those require evaluation in every trigger by their 
nature. 
    
    How would you do this? 


---

Reply via email to