@SupportsBatching(defaultDuration=TWENTY_FIVE_MILLIS) @SideEffectFree @SeeAlso(value=JoinEnrichment.class) @WritesAttribute(attribute="enrichment.group.id",description="The Group ID to use in order to correlate the \'original\' FlowFile with the \'enrichment\' FlowFile.") @WritesAttribute(attribute="enrichment.role",description="The role to use for enrichment. This will either be ORIGINAL or ENRICHMENT.") @CapabilityDescription(value="Used in conjunction with the JoinEnrichment processor, this processor is responsible for adding the attributes that are necessary for the JoinEnrichment processor to perform its function. Each incoming FlowFile will be cloned. The original FlowFile will have appropriate attributes added and then be transferred to the \'original\' relationship. The clone will have appropriate attributes added and then be routed to the \'enrichment\' relationship. See the documentation for the JoinEnrichment processor (and especially its Additional Details) for more information on how these Processors work together and how to perform enrichment tasks in NiFi by using these Processors.") @Tags(value={"fork","join","enrich","record"}) @InputRequirement(value=INPUT_REQUIRED) public class ForkEnrichment extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
ENRICHMENT_GROUP_ID |
(package private) static String |
ENRICHMENT_ROLE |
(package private) static Relationship |
REL_ENRICHMENT |
(package private) static Relationship |
REL_ORIGINAL |
private static Set<Relationship> |
relationships |
| Constructor and Description |
|---|
ForkEnrichment() |
| Modifier and Type | Method and Description |
|---|---|
Set<Relationship> |
getRelationships() |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatestatic final String ENRICHMENT_ROLE
static final String ENRICHMENT_GROUP_ID
static final Relationship REL_ORIGINAL
static final Relationship REL_ENRICHMENT
private static final Set<Relationship> relationships
public Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorpublic void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractProcessorProcessExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.