This processor will package FlowFile attributes and content into an output FlowFile that can be exported from NiFi and imported back into NiFi, preserving the original attributes and content.
flowfile, flowfile-stream, flowfile-stream-v3, package, attributes
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values.
Display Name | API Name | Default Value | Allowable Values | Description |
---|---|---|---|---|
Maximum Batch Size | max-batch-size | 1 | Maximum number of FlowFiles to package into one output FlowFile using a best effort, non guaranteed approach. Multiple input queues can produce unexpected batching behavior. |
Name | Description |
---|---|
success | The packaged FlowFile is sent to this relationship |
original | The FlowFiles that were used to create the package are sent to this relationship |
Name | Description |
---|---|
mime.type | The mime.type will be changed to application/flowfile-v3 |
Send FlowFile content and attributes from one NiFi instance to another NiFi instance.
A Remote Process Group is preferred to send FlowFiles between two NiFi instances, but an alternative is to use PackageFlowFile then InvokeHTTP sending to ListenHTTP.
"Maximum Batch Size" > 1 can help improve performance by batching many flowfiles together into 1 larger file that is transmitted by InvokeHTTP.
Connect the success relationship of PackageFlowFile to the input of InvokeHTTP.
"HTTP Method" = "POST" to send data to ListenHTTP.
"HTTP URL" should include the hostname, port, and path to the ListenHTTP.
"Request Content-Type" = "${mime.type}" because PackageFlowFile output files have attribute mime.type=application/flowfile-v3.
"Listening Port" = a unique port number.
ListenHTTP automatically unpacks files that have attribute mime.type=application/flowfile-v3.
If PackageFlowFile batches 99 FlowFiles into 1 file that InvokeHTTP sends, then the original 99 FlowFiles will be output by ListenHTTP.
Export FlowFile content and attributes from NiFi to external storage and reimport.
"Maximum Batch Size" > 1 can improve storage efficiency by batching many FlowFiles together into 1 larger file that is stored.
Connect the success relationship to the input of any NiFi egress processor for offline storage.
"Packaging Format" = "application/flowfile-v3".
Connect the output of a NiFi ingress processor that reads files stored offline to the input of UnpackContent.
If PackageFlowFile batches 99 FlowFiles into 1 file that is read from storage, then the original 99 FlowFiles will be output by UnpackContent.