Skip to content

Conversation

benyaa
Copy link

@benyaa benyaa commented Dec 15, 2021

Hi,
It seems that the current error handling resets the FlowFile's original content..
So:

  1. I fixed it by throwing exception so the original FlowFile won't be rewritten and then transfer it to failure.
  2. I added a capability to preserve the field names
  3. I added a capability to process messages separated by a demarcator(like when consuming using the ConsumeKafka processor)
  4. I added a new processor that converts the Protobuf messages into Avro messages so they would be easier to handle with NiFi(rather than JSON that doesn't preserve the original schema)
  5. I changed the processors' names to EncodeProtobuf and DecodeProtobuf to match NiFi conventions

Hope it's good enough!

benyaa and others added 23 commits August 8, 2019 14:19
…ention

2. moved setUpSchema to OnScheduled so it could evaluate expression language from variable registry
3. Added documentation and added new property PROTOBUF_MESSAGE_TYPE to allow default message type.
- upgraded protobuf & nifi libraries
- Changed name to AbstractProtobufProcessor so it would fit the conv…
- Updated tests to use properties by their variables.
- Added docs and added expression evaluation to compile schema
…configured) and added option to batch process messages with a demarcator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants