Skip to content

Instantly share code, notes, and snippets.

@prb112
Created May 16, 2020 01:18
Show Gist options
  • Save prb112/ef998c94fb94db8305486fef1f125be7 to your computer and use it in GitHub Desktop.
Save prb112/ef998c94fb94db8305486fef1f125be7 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.3">
<description></description>
<groupId>1aee98d5-0172-1000-7a2d-00d37a42e7da</groupId>
<name>Fhir Metadata Flow</name>
<snippet>
<connections>
<id>7fc1990d-d604-370e-0000-000000000000</id>
<parentGroupId>d7051a5f-6d05-30ab-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
<backPressureObjectThreshold>10000</backPressureObjectThreshold>
<destination>
<groupId>d7051a5f-6d05-30ab-0000-000000000000</groupId>
<id>27e61087-cecf-3c0b-0000-000000000000</id>
<type>OUTPUT_PORT</type>
</destination>
<flowFileExpiration>0 sec</flowFileExpiration>
<labelIndex>1</labelIndex>
<loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
<loadBalancePartitionAttribute></loadBalancePartitionAttribute>
<loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
<loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
<name></name>
<selectedRelationships>success</selectedRelationships>
<source>
<groupId>d7051a5f-6d05-30ab-0000-000000000000</groupId>
<id>d1312a86-2858-37b0-0000-000000000000</id>
<type>PROCESSOR</type>
</source>
<zIndex>0</zIndex>
</connections>
<connections>
<id>8732a26c-ddbd-3ada-0000-000000000000</id>
<parentGroupId>d7051a5f-6d05-30ab-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
<backPressureObjectThreshold>10000</backPressureObjectThreshold>
<destination>
<groupId>d7051a5f-6d05-30ab-0000-000000000000</groupId>
<id>d1312a86-2858-37b0-0000-000000000000</id>
<type>PROCESSOR</type>
</destination>
<flowFileExpiration>0 sec</flowFileExpiration>
<labelIndex>1</labelIndex>
<loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
<loadBalancePartitionAttribute></loadBalancePartitionAttribute>
<loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
<loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
<name></name>
<selectedRelationships>Failure</selectedRelationships>
<selectedRelationships>No Retry</selectedRelationships>
<selectedRelationships>Original</selectedRelationships>
<selectedRelationships>Response</selectedRelationships>
<selectedRelationships>Retry</selectedRelationships>
<source>
<groupId>d7051a5f-6d05-30ab-0000-000000000000</groupId>
<id>0bb6dc62-daed-394e-0000-000000000000</id>
<type>PROCESSOR</type>
</source>
<zIndex>0</zIndex>
</connections>
<connections>
<id>c40aba93-6aee-3ade-0000-000000000000</id>
<parentGroupId>d7051a5f-6d05-30ab-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
<backPressureObjectThreshold>10000</backPressureObjectThreshold>
<destination>
<groupId>d7051a5f-6d05-30ab-0000-000000000000</groupId>
<id>e0ed03ed-27f9-3002-0000-000000000000</id>
<type>PROCESSOR</type>
</destination>
<flowFileExpiration>0 sec</flowFileExpiration>
<labelIndex>1</labelIndex>
<loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
<loadBalancePartitionAttribute></loadBalancePartitionAttribute>
<loadBalanceStatus>LOAD_BALANCE_NOT_CONFIGURED</loadBalanceStatus>
<loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
<name></name>
<selectedRelationships>Failure</selectedRelationships>
<selectedRelationships>No Retry</selectedRelationships>
<selectedRelationships>Original</selectedRelationships>
<selectedRelationships>Response</selectedRelationships>
<selectedRelationships>Retry</selectedRelationships>
<source>
<groupId>d7051a5f-6d05-30ab-0000-000000000000</groupId>
<id>0bb6dc62-daed-394e-0000-000000000000</id>
<type>PROCESSOR</type>
</source>
<zIndex>0</zIndex>
</connections>
<controllerServices>
<id>3bf78d12-701a-38c1-0000-000000000000</id>
<parentGroupId>d7051a5f-6d05-30ab-0000-000000000000</parentGroupId>
<bundle>
<artifact>nifi-ssl-context-service-nar</artifact>
<group>org.apache.nifi</group>
<version>1.11.4</version>
</bundle>
<comments></comments>
<descriptors>
<entry>
<key>Keystore Filename</key>
<value>
<name>Keystore Filename</name>
</value>
</entry>
<entry>
<key>Keystore Password</key>
<value>
<name>Keystore Password</name>
</value>
</entry>
<entry>
<key>key-password</key>
<value>
<name>key-password</name>
</value>
</entry>
<entry>
<key>Keystore Type</key>
<value>
<name>Keystore Type</name>
</value>
</entry>
<entry>
<key>Truststore Filename</key>
<value>
<name>Truststore Filename</name>
</value>
</entry>
<entry>
<key>Truststore Password</key>
<value>
<name>Truststore Password</name>
</value>
</entry>
<entry>
<key>Truststore Type</key>
<value>
<name>Truststore Type</name>
</value>
</entry>
<entry>
<key>SSL Protocol</key>
<value>
<name>SSL Protocol</name>
</value>
</entry>
</descriptors>
<name>StandardRestrictedSSLContextService</name>
<persistsState>false</persistsState>
<properties>
<entry>
<key>Keystore Filename</key>
</entry>
<entry>
<key>Keystore Password</key>
</entry>
<entry>
<key>key-password</key>
</entry>
<entry>
<key>Keystore Type</key>
</entry>
<entry>
<key>Truststore Filename</key>
<value>/fhirKeyStore.p12</value>
</entry>
<entry>
<key>Truststore Password</key>
</entry>
<entry>
<key>Truststore Type</key>
<value>PKCS12</value>
</entry>
<entry>
<key>SSL Protocol</key>
</entry>
</properties>
<state>ENABLED</state>
<type>org.apache.nifi.ssl.StandardRestrictedSSLContextService</type>
</controllerServices>
<outputPorts>
<id>27e61087-cecf-3c0b-0000-000000000000</id>
<parentGroupId>d7051a5f-6d05-30ab-0000-000000000000</parentGroupId>
<position>
<x>672.0</x>
<y>328.0</y>
</position>
<allowRemoteAccess>true</allowRemoteAccess>
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
<name>Output</name>
<state>RUNNING</state>
<transmitting>false</transmitting>
<type>OUTPUT_PORT</type>
</outputPorts>
<processors>
<id>0bb6dc62-daed-394e-0000-000000000000</id>
<parentGroupId>d7051a5f-6d05-30ab-0000-000000000000</parentGroupId>
<position>
<x>1.0</x>
<y>15.0</y>
</position>
<bundle>
<artifact>nifi-standard-nar</artifact>
<group>org.apache.nifi</group>
<version>1.11.4</version>
</bundle>
<config>
<bulletinLevel>WARN</bulletinLevel>
<comments></comments>
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
<descriptors>
<entry>
<key>HTTP Method</key>
<value>
<name>HTTP Method</name>
</value>
</entry>
<entry>
<key>Remote URL</key>
<value>
<name>Remote URL</name>
</value>
</entry>
<entry>
<key>SSL Context Service</key>
<value>
<identifiesControllerService>org.apache.nifi.ssl.SSLContextService</identifiesControllerService>
<name>SSL Context Service</name>
</value>
</entry>
<entry>
<key>Connection Timeout</key>
<value>
<name>Connection Timeout</name>
</value>
</entry>
<entry>
<key>Read Timeout</key>
<value>
<name>Read Timeout</name>
</value>
</entry>
<entry>
<key>Include Date Header</key>
<value>
<name>Include Date Header</name>
</value>
</entry>
<entry>
<key>Follow Redirects</key>
<value>
<name>Follow Redirects</name>
</value>
</entry>
<entry>
<key>Attributes to Send</key>
<value>
<name>Attributes to Send</name>
</value>
</entry>
<entry>
<key>Basic Authentication Username</key>
<value>
<name>Basic Authentication Username</name>
</value>
</entry>
<entry>
<key>Basic Authentication Password</key>
<value>
<name>Basic Authentication Password</name>
</value>
</entry>
<entry>
<key>proxy-configuration-service</key>
<value>
<identifiesControllerService>org.apache.nifi.proxy.ProxyConfigurationService</identifiesControllerService>
<name>proxy-configuration-service</name>
</value>
</entry>
<entry>
<key>Proxy Host</key>
<value>
<name>Proxy Host</name>
</value>
</entry>
<entry>
<key>Proxy Port</key>
<value>
<name>Proxy Port</name>
</value>
</entry>
<entry>
<key>Proxy Type</key>
<value>
<name>Proxy Type</name>
</value>
</entry>
<entry>
<key>invokehttp-proxy-user</key>
<value>
<name>invokehttp-proxy-user</name>
</value>
</entry>
<entry>
<key>invokehttp-proxy-password</key>
<value>
<name>invokehttp-proxy-password</name>
</value>
</entry>
<entry>
<key>Put Response Body In Attribute</key>
<value>
<name>Put Response Body In Attribute</name>
</value>
</entry>
<entry>
<key>Max Length To Put In Attribute</key>
<value>
<name>Max Length To Put In Attribute</name>
</value>
</entry>
<entry>
<key>Digest Authentication</key>
<value>
<name>Digest Authentication</name>
</value>
</entry>
<entry>
<key>Always Output Response</key>
<value>
<name>Always Output Response</name>
</value>
</entry>
<entry>
<key>Add Response Headers to Request</key>
<value>
<name>Add Response Headers to Request</name>
</value>
</entry>
<entry>
<key>Content-Type</key>
<value>
<name>Content-Type</name>
</value>
</entry>
<entry>
<key>send-message-body</key>
<value>
<name>send-message-body</name>
</value>
</entry>
<entry>
<key>Use Chunked Encoding</key>
<value>
<name>Use Chunked Encoding</name>
</value>
</entry>
<entry>
<key>Penalize on "No Retry"</key>
<value>
<name>Penalize on "No Retry"</name>
</value>
</entry>
<entry>
<key>use-etag</key>
<value>
<name>use-etag</name>
</value>
</entry>
<entry>
<key>etag-max-cache-size</key>
<value>
<name>etag-max-cache-size</name>
</value>
</entry>
<entry>
<key>ignore-response-content</key>
<value>
<name>ignore-response-content</name>
</value>
</entry>
</descriptors>
<executionNode>ALL</executionNode>
<lossTolerant>false</lossTolerant>
<penaltyDuration>30 sec</penaltyDuration>
<properties>
<entry>
<key>HTTP Method</key>
<value>GET</value>
</entry>
<entry>
<key>Remote URL</key>
<value>https://host.docker.internal:9443/fhir-server/api/v4/metadata</value>
</entry>
<entry>
<key>SSL Context Service</key>
<value>3bf78d12-701a-38c1-0000-000000000000</value>
</entry>
<entry>
<key>Connection Timeout</key>
<value>5 secs</value>
</entry>
<entry>
<key>Read Timeout</key>
<value>15 secs</value>
</entry>
<entry>
<key>Include Date Header</key>
<value>True</value>
</entry>
<entry>
<key>Follow Redirects</key>
<value>True</value>
</entry>
<entry>
<key>Attributes to Send</key>
</entry>
<entry>
<key>Basic Authentication Username</key>
<value>fhiruser</value>
</entry>
<entry>
<key>Basic Authentication Password</key>
</entry>
<entry>
<key>proxy-configuration-service</key>
</entry>
<entry>
<key>Proxy Host</key>
</entry>
<entry>
<key>Proxy Port</key>
</entry>
<entry>
<key>Proxy Type</key>
<value>http</value>
</entry>
<entry>
<key>invokehttp-proxy-user</key>
</entry>
<entry>
<key>invokehttp-proxy-password</key>
</entry>
<entry>
<key>Put Response Body In Attribute</key>
</entry>
<entry>
<key>Max Length To Put In Attribute</key>
<value>256</value>
</entry>
<entry>
<key>Digest Authentication</key>
<value>false</value>
</entry>
<entry>
<key>Always Output Response</key>
<value>false</value>
</entry>
<entry>
<key>Add Response Headers to Request</key>
<value>false</value>
</entry>
<entry>
<key>Content-Type</key>
<value>${mime.type}</value>
</entry>
<entry>
<key>send-message-body</key>
<value>true</value>
</entry>
<entry>
<key>Use Chunked Encoding</key>
<value>false</value>
</entry>
<entry>
<key>Penalize on "No Retry"</key>
<value>false</value>
</entry>
<entry>
<key>use-etag</key>
<value>false</value>
</entry>
<entry>
<key>etag-max-cache-size</key>
<value>10MB</value>
</entry>
<entry>
<key>ignore-response-content</key>
<value>false</value>
</entry>
</properties>
<runDurationMillis>0</runDurationMillis>
<schedulingPeriod>0 sec</schedulingPeriod>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<yieldDuration>1 sec</yieldDuration>
</config>
<executionNodeRestricted>false</executionNodeRestricted>
<name>InvokeHTTP</name>
<relationships>
<autoTerminate>false</autoTerminate>
<name>Failure</name>
</relationships>
<relationships>
<autoTerminate>false</autoTerminate>
<name>No Retry</name>
</relationships>
<relationships>
<autoTerminate>false</autoTerminate>
<name>Original</name>
</relationships>
<relationships>
<autoTerminate>false</autoTerminate>
<name>Response</name>
</relationships>
<relationships>
<autoTerminate>false</autoTerminate>
<name>Retry</name>
</relationships>
<state>STOPPED</state>
<style/>
<type>org.apache.nifi.processors.standard.InvokeHTTP</type>
</processors>
<processors>
<id>d1312a86-2858-37b0-0000-000000000000</id>
<parentGroupId>d7051a5f-6d05-30ab-0000-000000000000</parentGroupId>
<position>
<x>0.0</x>
<y>288.0</y>
</position>
<bundle>
<artifact>nifi-standard-nar</artifact>
<group>org.apache.nifi</group>
<version>1.11.4</version>
</bundle>
<config>
<bulletinLevel>WARN</bulletinLevel>
<comments></comments>
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
<descriptors>
<entry>
<key>log-level</key>
<value>
<name>log-level</name>
</value>
</entry>
<entry>
<key>log-prefix</key>
<value>
<name>log-prefix</name>
</value>
</entry>
<entry>
<key>log-message</key>
<value>
<name>log-message</name>
</value>
</entry>
</descriptors>
<executionNode>ALL</executionNode>
<lossTolerant>false</lossTolerant>
<penaltyDuration>30 sec</penaltyDuration>
<properties>
<entry>
<key>log-level</key>
<value>info</value>
</entry>
<entry>
<key>log-prefix</key>
</entry>
<entry>
<key>log-message</key>
</entry>
</properties>
<runDurationMillis>0</runDurationMillis>
<schedulingPeriod>0 sec</schedulingPeriod>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<yieldDuration>1 sec</yieldDuration>
</config>
<executionNodeRestricted>false</executionNodeRestricted>
<name>LogMessage</name>
<relationships>
<autoTerminate>false</autoTerminate>
<name>success</name>
</relationships>
<state>STOPPED</state>
<style/>
<type>org.apache.nifi.processors.standard.LogMessage</type>
</processors>
<processors>
<id>e0ed03ed-27f9-3002-0000-000000000000</id>
<parentGroupId>d7051a5f-6d05-30ab-0000-000000000000</parentGroupId>
<position>
<x>584.0</x>
<y>0.0</y>
</position>
<bundle>
<artifact>nifi-standard-nar</artifact>
<group>org.apache.nifi</group>
<version>1.11.4</version>
</bundle>
<config>
<bulletinLevel>WARN</bulletinLevel>
<comments></comments>
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount>
<descriptors>
<entry>
<key>FlowFile Success Iterations</key>
<value>
<name>FlowFile Success Iterations</name>
</value>
</entry>
<entry>
<key>FlowFile Failure Iterations</key>
<value>
<name>FlowFile Failure Iterations</name>
</value>
</entry>
<entry>
<key>FlowFile Rollback Iterations</key>
<value>
<name>FlowFile Rollback Iterations</name>
</value>
</entry>
<entry>
<key>FlowFile Rollback Yield Iterations</key>
<value>
<name>FlowFile Rollback Yield Iterations</name>
</value>
</entry>
<entry>
<key>FlowFile Rollback Penalty Iterations</key>
<value>
<name>FlowFile Rollback Penalty Iterations</name>
</value>
</entry>
<entry>
<key>FlowFile Exception Iterations</key>
<value>
<name>FlowFile Exception Iterations</name>
</value>
</entry>
<entry>
<key>FlowFile Exception Class</key>
<value>
<name>FlowFile Exception Class</name>
</value>
</entry>
<entry>
<key>No FlowFile Skip Iterations</key>
<value>
<name>No FlowFile Skip Iterations</name>
</value>
</entry>
<entry>
<key>No FlowFile Exception Iterations</key>
<value>
<name>No FlowFile Exception Iterations</name>
</value>
</entry>
<entry>
<key>No FlowFile Yield Iterations</key>
<value>
<name>No FlowFile Yield Iterations</name>
</value>
</entry>
<entry>
<key>No FlowFile Exception Class</key>
<value>
<name>No FlowFile Exception Class</name>
</value>
</entry>
<entry>
<key>Write Iterations</key>
<value>
<name>Write Iterations</name>
</value>
</entry>
<entry>
<key>Content Size</key>
<value>
<name>Content Size</name>
</value>
</entry>
<entry>
<key>@OnScheduled Pause Time</key>
<value>
<name>@OnScheduled Pause Time</name>
</value>
</entry>
<entry>
<key>Fail When @OnScheduled called</key>
<value>
<name>Fail When @OnScheduled called</name>
</value>
</entry>
<entry>
<key>@OnUnscheduled Pause Time</key>
<value>
<name>@OnUnscheduled Pause Time</name>
</value>
</entry>
<entry>
<key>Fail When @OnUnscheduled called</key>
<value>
<name>Fail When @OnUnscheduled called</name>
</value>
</entry>
<entry>
<key>@OnStopped Pause Time</key>
<value>
<name>@OnStopped Pause Time</name>
</value>
</entry>
<entry>
<key>Fail When @OnStopped called</key>
<value>
<name>Fail When @OnStopped called</name>
</value>
</entry>
<entry>
<key>OnTrigger Pause Time</key>
<value>
<name>OnTrigger Pause Time</name>
</value>
</entry>
<entry>
<key>CustomValidate Pause Time</key>
<value>
<name>CustomValidate Pause Time</name>
</value>
</entry>
<entry>
<key>Ignore Interrupts When Paused</key>
<value>
<name>Ignore Interrupts When Paused</name>
</value>
</entry>
</descriptors>
<executionNode>ALL</executionNode>
<lossTolerant>false</lossTolerant>
<penaltyDuration>30 sec</penaltyDuration>
<properties>
<entry>
<key>FlowFile Success Iterations</key>
<value>1</value>
</entry>
<entry>
<key>FlowFile Failure Iterations</key>
<value>0</value>
</entry>
<entry>
<key>FlowFile Rollback Iterations</key>
<value>0</value>
</entry>
<entry>
<key>FlowFile Rollback Yield Iterations</key>
<value>0</value>
</entry>
<entry>
<key>FlowFile Rollback Penalty Iterations</key>
<value>0</value>
</entry>
<entry>
<key>FlowFile Exception Iterations</key>
<value>0</value>
</entry>
<entry>
<key>FlowFile Exception Class</key>
<value>java.lang.RuntimeException</value>
</entry>
<entry>
<key>No FlowFile Skip Iterations</key>
<value>1</value>
</entry>
<entry>
<key>No FlowFile Exception Iterations</key>
<value>0</value>
</entry>
<entry>
<key>No FlowFile Yield Iterations</key>
<value>0</value>
</entry>
<entry>
<key>No FlowFile Exception Class</key>
<value>java.lang.RuntimeException</value>
</entry>
<entry>
<key>Write Iterations</key>
<value>0</value>
</entry>
<entry>
<key>Content Size</key>
<value>1 KB</value>
</entry>
<entry>
<key>@OnScheduled Pause Time</key>
<value>0 sec</value>
</entry>
<entry>
<key>Fail When @OnScheduled called</key>
<value>false</value>
</entry>
<entry>
<key>@OnUnscheduled Pause Time</key>
<value>0 sec</value>
</entry>
<entry>
<key>Fail When @OnUnscheduled called</key>
<value>false</value>
</entry>
<entry>
<key>@OnStopped Pause Time</key>
<value>0 sec</value>
</entry>
<entry>
<key>Fail When @OnStopped called</key>
<value>false</value>
</entry>
<entry>
<key>OnTrigger Pause Time</key>
<value>0 sec</value>
</entry>
<entry>
<key>CustomValidate Pause Time</key>
<value>0 sec</value>
</entry>
<entry>
<key>Ignore Interrupts When Paused</key>
<value>false</value>
</entry>
</properties>
<runDurationMillis>0</runDurationMillis>
<schedulingPeriod>0 sec</schedulingPeriod>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<yieldDuration>1 sec</yieldDuration>
</config>
<executionNodeRestricted>false</executionNodeRestricted>
<name>DebugFlow</name>
<relationships>
<autoTerminate>true</autoTerminate>
<name>failure</name>
</relationships>
<relationships>
<autoTerminate>true</autoTerminate>
<name>success</name>
</relationships>
<state>STOPPED</state>
<style/>
<type>org.apache.nifi.processors.standard.DebugFlow</type>
</processors>
</snippet>
<timestamp>05/16/2020 01:07:41 UTC</timestamp>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment