Created
January 31, 2017 23:57
-
-
Save pvillard31/c2926fdcff57b017a771d2d1acdb5cba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<template encoding-version="1.0"> | |
<description></description> | |
<groupId>e5a5f628-0159-1000-afdb-0edd88ca8397</groupId> | |
<name>template-nifi-oauth2</name> | |
<snippet> | |
<connections> | |
<id>f66d8688-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f66cc7c3-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f66cf0d7-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f67789c5-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f6851a4a-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>Response</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f658f8c6-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f67b108d-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f658f8c6-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>failure</selectedRelationships> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f66cc7c3-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f686ecaf-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<bends> | |
<x>651.8000415039064</x> | |
<y>64.8001055908203</y> | |
</bends> | |
<bends> | |
<x>657.5600512695314</x> | |
<y>56.160090942382794</y> | |
</bends> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f643a07d-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>Failure</selectedRelationships> | |
<selectedRelationships>No Retry</selectedRelationships> | |
<selectedRelationships>Retry</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f643a07d-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f688065e-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<bends> | |
<x>1927.6401293945314</x> | |
<y>671.0400958251953</y> | |
</bends> | |
<bends> | |
<x>1906.040153808594</x> | |
<y>684.0001177978515</y> | |
</bends> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f658f8c6-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>Failure</selectedRelationships> | |
<selectedRelationships>No Retry</selectedRelationships> | |
<selectedRelationships>Retry</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f658f8c6-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f68ac11b-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f689e207-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>matched</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f6851a4a-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f6aa5976-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f6a768c2-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>Response</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f643a07d-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f6b97882-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f66cf0d7-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>unmatched</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f6b5cccd-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f6bb1266-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f6badf53-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>Response</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f689e207-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f6bd762e-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f6a50b96-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f6a4d400-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f6bd9782-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f6b5cccd-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>success</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f6a50b96-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<connections> | |
<id>f6bdd232-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> | |
<backPressureObjectThreshold>10000</backPressureObjectThreshold> | |
<destination> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f643a07d-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</destination> | |
<flowFileExpiration>0 sec</flowFileExpiration> | |
<labelIndex>1</labelIndex> | |
<name></name> | |
<selectedRelationships>matched</selectedRelationships> | |
<source> | |
<groupId>e5a5f628-0159-1000-0000-000000000000</groupId> | |
<id>f6b5cccd-0159-1000-0000-000000000000</id> | |
<type>PROCESSOR</type> | |
</source> | |
<zIndex>0</zIndex> | |
</connections> | |
<controllerServices> | |
<id>f6aa99d0-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<descriptors> | |
<entry> | |
<key>Maximum Outstanding Requests</key> | |
<value> | |
<name>Maximum Outstanding Requests</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Request Expiration</key> | |
<value> | |
<name>Request Expiration</name> | |
</value> | |
</entry> | |
</descriptors> | |
<name>StandardHttpContextMap</name> | |
<properties> | |
<entry> | |
<key>Maximum Outstanding Requests</key> | |
</entry> | |
<entry> | |
<key>Request Expiration</key> | |
</entry> | |
</properties> | |
<state>ENABLED</state> | |
<type>org.apache.nifi.http.StandardHttpContextMap</type> | |
</controllerServices> | |
<processors> | |
<id>f643a07d-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>785.7197778320312</x> | |
<y>0.0</y> | |
</position> | |
<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 Host</key> | |
<value> | |
<name>Proxy Host</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Proxy Port</key> | |
<value> | |
<name>Proxy Port</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>Trusted Hostname</key> | |
<value> | |
<name>Trusted Hostname</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> | |
</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>${authorizeUrl}?client_id=${clientID}&redirect_uri=${redirectUrl}&response_type=code</value> | |
</entry> | |
<entry> | |
<key>SSL Context Service</key> | |
</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> | |
</entry> | |
<entry> | |
<key>Basic Authentication Password</key> | |
</entry> | |
<entry> | |
<key>Proxy Host</key> | |
</entry> | |
<entry> | |
<key>Proxy Port</key> | |
</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>Trusted Hostname</key> | |
</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> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>InvokeHTTP</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>Failure</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>No Retry</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>Original</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>Response</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>Retry</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.InvokeHTTP</type> | |
</processors> | |
<processors> | |
<id>f658f8c6-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>1709.2800805664062</x> | |
<y>501.6401062011719</y> | |
</position> | |
<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 Host</key> | |
<value> | |
<name>Proxy Host</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Proxy Port</key> | |
<value> | |
<name>Proxy Port</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>Trusted Hostname</key> | |
<value> | |
<name>Trusted Hostname</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> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>HTTP Method</key> | |
<value>POST</value> | |
</entry> | |
<entry> | |
<key>Remote URL</key> | |
<value>${requestTokenUrl}</value> | |
</entry> | |
<entry> | |
<key>SSL Context Service</key> | |
</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> | |
</entry> | |
<entry> | |
<key>Basic Authentication Password</key> | |
</entry> | |
<entry> | |
<key>Proxy Host</key> | |
</entry> | |
<entry> | |
<key>Proxy Port</key> | |
</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>Trusted Hostname</key> | |
</entry> | |
<entry> | |
<key>Add Response Headers to Request</key> | |
<value>false</value> | |
</entry> | |
<entry> | |
<key>Content-Type</key> | |
<value>application/x-www-form-urlencoded</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> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>InvokeHTTP</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>Failure</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>No Retry</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>Original</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>Response</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>Retry</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.InvokeHTTP</type> | |
</processors> | |
<processors> | |
<id>f66cc7c3-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>1705.8801196289064</x> | |
<y>243.360023803711</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>Regular Expression</key> | |
<value> | |
<name>Regular Expression</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Replacement Value</key> | |
<value> | |
<name>Replacement Value</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Character Set</key> | |
<value> | |
<name>Character Set</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Maximum Buffer Size</key> | |
<value> | |
<name>Maximum Buffer Size</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Replacement Strategy</key> | |
<value> | |
<name>Replacement Strategy</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Evaluation Mode</key> | |
<value> | |
<name>Evaluation Mode</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>Regular Expression</key> | |
<value>(?s)(^.*$)</value> | |
</entry> | |
<entry> | |
<key>Replacement Value</key> | |
<value>client_id=${clientID}&redirect_uri=${redirectUrl}&client_secret=${clientSecret}&code=${code}&grant_type=authorization_code</value> | |
</entry> | |
<entry> | |
<key>Character Set</key> | |
<value>UTF-8</value> | |
</entry> | |
<entry> | |
<key>Maximum Buffer Size</key> | |
<value>1 MB</value> | |
</entry> | |
<entry> | |
<key>Replacement Strategy</key> | |
<value>Regex Replace</value> | |
</entry> | |
<entry> | |
<key>Evaluation Mode</key> | |
<value>Entire text</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>ReplaceText</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>failure</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.ReplaceText</type> | |
</processors> | |
<processors> | |
<id>f66cf0d7-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>1142.8403393554688</x> | |
<y>247.68008117675777</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>Delete Attributes Expression</key> | |
<value> | |
<name>Delete Attributes Expression</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Store State</key> | |
<value> | |
<name>Store State</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Stateful Variables Initial Value</key> | |
<value> | |
<name>Stateful Variables Initial Value</name> | |
</value> | |
</entry> | |
<entry> | |
<key>code</key> | |
<value> | |
<name>code</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>Delete Attributes Expression</key> | |
</entry> | |
<entry> | |
<key>Store State</key> | |
<value>Do not store state</value> | |
</entry> | |
<entry> | |
<key>Stateful Variables Initial Value</key> | |
</entry> | |
<entry> | |
<key>code</key> | |
<value>${http.query.string:substringAfter('='):substringBefore('&')}</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>UpdateAttribute</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.attributes.UpdateAttribute</type> | |
</processors> | |
<processors> | |
<id>f6851a4a-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>1147.1599865722658</x> | |
<y>511.2001037597655</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>Destination</key> | |
<value> | |
<name>Destination</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Return Type</key> | |
<value> | |
<name>Return Type</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Path Not Found Behavior</key> | |
<value> | |
<name>Path Not Found Behavior</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Null Value Representation</key> | |
<value> | |
<name>Null Value Representation</name> | |
</value> | |
</entry> | |
<entry> | |
<key>access_token</key> | |
<value> | |
<name>access_token</name> | |
</value> | |
</entry> | |
<entry> | |
<key>blog_id</key> | |
<value> | |
<name>blog_id</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>Destination</key> | |
<value>flowfile-attribute</value> | |
</entry> | |
<entry> | |
<key>Return Type</key> | |
<value>auto-detect</value> | |
</entry> | |
<entry> | |
<key>Path Not Found Behavior</key> | |
<value>ignore</value> | |
</entry> | |
<entry> | |
<key>Null Value Representation</key> | |
<value>empty string</value> | |
</entry> | |
<entry> | |
<key>access_token</key> | |
<value>$.access_token</value> | |
</entry> | |
<entry> | |
<key>blog_id</key> | |
<value>$.blog_id</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>EvaluateJsonPath</name> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>failure</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>matched</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>unmatched</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.EvaluateJsonPath</type> | |
</processors> | |
<processors> | |
<id>f689e207-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>572.1999719238281</x> | |
<y>516.5600891113281</y> | |
</position> | |
<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 Host</key> | |
<value> | |
<name>Proxy Host</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Proxy Port</key> | |
<value> | |
<name>Proxy Port</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>Trusted Hostname</key> | |
<value> | |
<name>Trusted Hostname</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>Authorization</key> | |
<value> | |
<name>Authorization</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://public-api.wordpress.com/rest/v1.1/sites/${blog_id}/stats</value> | |
</entry> | |
<entry> | |
<key>SSL Context Service</key> | |
</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> | |
</entry> | |
<entry> | |
<key>Basic Authentication Password</key> | |
</entry> | |
<entry> | |
<key>Proxy Host</key> | |
</entry> | |
<entry> | |
<key>Proxy Port</key> | |
</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>Trusted Hostname</key> | |
</entry> | |
<entry> | |
<key>Add Response Headers to Request</key> | |
<value>false</value> | |
</entry> | |
<entry> | |
<key>Content-Type</key> | |
<value>application/x-www-form-urlencoded</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>Authorization</key> | |
<value>Bearer ${access_token}</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>InvokeHTTP</name> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>Failure</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>No Retry</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>Original</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>Response</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>Retry</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.InvokeHTTP</type> | |
</processors> | |
<processors> | |
<id>f6a4d400-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>110.35992065429696</x> | |
<y>1.1413574213747779E-4</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>Listening Port</key> | |
<value> | |
<name>Listening Port</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Hostname</key> | |
<value> | |
<name>Hostname</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>HTTP Context Map</key> | |
<value> | |
<identifiesControllerService>org.apache.nifi.http.HttpContextMap</identifiesControllerService> | |
<name>HTTP Context Map</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Allowed Paths</key> | |
<value> | |
<name>Allowed Paths</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Default URL Character Set</key> | |
<value> | |
<name>Default URL Character Set</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Allow GET</key> | |
<value> | |
<name>Allow GET</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Allow POST</key> | |
<value> | |
<name>Allow POST</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Allow PUT</key> | |
<value> | |
<name>Allow PUT</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Allow DELETE</key> | |
<value> | |
<name>Allow DELETE</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Allow HEAD</key> | |
<value> | |
<name>Allow HEAD</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Allow OPTIONS</key> | |
<value> | |
<name>Allow OPTIONS</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Additional HTTP Methods</key> | |
<value> | |
<name>Additional HTTP Methods</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Client Authentication</key> | |
<value> | |
<name>Client Authentication</name> | |
</value> | |
</entry> | |
<entry> | |
<key>container-queue-size</key> | |
<value> | |
<name>container-queue-size</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>Listening Port</key> | |
<value>9999</value> | |
</entry> | |
<entry> | |
<key>Hostname</key> | |
<value>localhost</value> | |
</entry> | |
<entry> | |
<key>SSL Context Service</key> | |
</entry> | |
<entry> | |
<key>HTTP Context Map</key> | |
<value>f6aa99d0-0159-1000-0000-000000000000</value> | |
</entry> | |
<entry> | |
<key>Allowed Paths</key> | |
</entry> | |
<entry> | |
<key>Default URL Character Set</key> | |
<value>UTF-8</value> | |
</entry> | |
<entry> | |
<key>Allow GET</key> | |
<value>true</value> | |
</entry> | |
<entry> | |
<key>Allow POST</key> | |
<value>true</value> | |
</entry> | |
<entry> | |
<key>Allow PUT</key> | |
<value>true</value> | |
</entry> | |
<entry> | |
<key>Allow DELETE</key> | |
<value>true</value> | |
</entry> | |
<entry> | |
<key>Allow HEAD</key> | |
<value>false</value> | |
</entry> | |
<entry> | |
<key>Allow OPTIONS</key> | |
<value>false</value> | |
</entry> | |
<entry> | |
<key>Additional HTTP Methods</key> | |
</entry> | |
<entry> | |
<key>Client Authentication</key> | |
<value>No Authentication</value> | |
</entry> | |
<entry> | |
<key>container-queue-size</key> | |
<value>50</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>1 ms</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>HandleHttpRequest</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.HandleHttpRequest</type> | |
</processors> | |
<processors> | |
<id>f6a50b96-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>0.9198901367187773</x> | |
<y>243.36014099121098</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>Delete Attributes Expression</key> | |
<value> | |
<name>Delete Attributes Expression</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Store State</key> | |
<value> | |
<name>Store State</name> | |
</value> | |
</entry> | |
<entry> | |
<key>Stateful Variables Initial Value</key> | |
<value> | |
<name>Stateful Variables Initial Value</name> | |
</value> | |
</entry> | |
<entry> | |
<key>authenticateUrl</key> | |
<value> | |
<name>authenticateUrl</name> | |
</value> | |
</entry> | |
<entry> | |
<key>authorizeUrl</key> | |
<value> | |
<name>authorizeUrl</name> | |
</value> | |
</entry> | |
<entry> | |
<key>clientID</key> | |
<value> | |
<name>clientID</name> | |
</value> | |
</entry> | |
<entry> | |
<key>clientSecret</key> | |
<value> | |
<name>clientSecret</name> | |
</value> | |
</entry> | |
<entry> | |
<key>redirectUrl</key> | |
<value> | |
<name>redirectUrl</name> | |
</value> | |
</entry> | |
<entry> | |
<key>requestTokenUrl</key> | |
<value> | |
<name>requestTokenUrl</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>Delete Attributes Expression</key> | |
</entry> | |
<entry> | |
<key>Store State</key> | |
<value>Do not store state</value> | |
</entry> | |
<entry> | |
<key>Stateful Variables Initial Value</key> | |
</entry> | |
<entry> | |
<key>authenticateUrl</key> | |
<value>https://public-api.wordpress.com/oauth2/authenticate</value> | |
</entry> | |
<entry> | |
<key>authorizeUrl</key> | |
<value>https://public-api.wordpress.com/oauth2/authorize</value> | |
</entry> | |
<entry> | |
<key>clientID</key> | |
<value>51785</value> | |
</entry> | |
<entry> | |
<key>clientSecret</key> | |
<value>OCJrRm3Y7HkoX6dysczZHHuYt53Cr6puXjLWFpu39JxsFapbNegwbRwm7KAIsqT9</value> | |
</entry> | |
<entry> | |
<key>redirectUrl</key> | |
<value>http://localhost:9999/</value> | |
</entry> | |
<entry> | |
<key>requestTokenUrl</key> | |
<value>https://public-api.wordpress.com/oauth2/token</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>UpdateAttribute</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.attributes.UpdateAttribute</type> | |
</processors> | |
<processors> | |
<id>f6a768c2-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>1456.760009765625</x> | |
<y>1.4400885009765716</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>HTTP Status Code</key> | |
<value> | |
<name>HTTP Status Code</name> | |
</value> | |
</entry> | |
<entry> | |
<key>HTTP Context Map</key> | |
<value> | |
<identifiesControllerService>org.apache.nifi.http.HttpContextMap</identifiesControllerService> | |
<name>HTTP Context Map</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>HTTP Status Code</key> | |
<value>${invokehttp.status.code}</value> | |
</entry> | |
<entry> | |
<key>HTTP Context Map</key> | |
<value>f6aa99d0-0159-1000-0000-000000000000</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>HandleHttpResponse</name> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>failure</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.HandleHttpResponse</type> | |
</processors> | |
<processors> | |
<id>f6b5cccd-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>572.5999682617189</x> | |
<y>244.79998596191422</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>Routing Strategy</key> | |
<value> | |
<name>Routing Strategy</name> | |
</value> | |
</entry> | |
<entry> | |
<key>isGetCode</key> | |
<value> | |
<name>isGetCode</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>Routing Strategy</key> | |
<value>Route to 'match' if all match</value> | |
</entry> | |
<entry> | |
<key>isGetCode</key> | |
<value>${http.request.url:contains('getCode')}</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>RouteOnAttribute</name> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>matched</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>false</autoTerminate> | |
<name>unmatched</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.RouteOnAttribute</type> | |
</processors> | |
<processors> | |
<id>f6badf53-0159-1000-0000-000000000000</id> | |
<parentGroupId>e5a5f628-0159-1000-0000-000000000000</parentGroupId> | |
<position> | |
<x>0.0</x> | |
<y>516.0401251220703</y> | |
</position> | |
<config> | |
<bulletinLevel>WARN</bulletinLevel> | |
<comments></comments> | |
<concurrentlySchedulableTaskCount>1</concurrentlySchedulableTaskCount> | |
<descriptors> | |
<entry> | |
<key>HTTP Status Code</key> | |
<value> | |
<name>HTTP Status Code</name> | |
</value> | |
</entry> | |
<entry> | |
<key>HTTP Context Map</key> | |
<value> | |
<identifiesControllerService>org.apache.nifi.http.HttpContextMap</identifiesControllerService> | |
<name>HTTP Context Map</name> | |
</value> | |
</entry> | |
</descriptors> | |
<executionNode>ALL</executionNode> | |
<lossTolerant>false</lossTolerant> | |
<penaltyDuration>30 sec</penaltyDuration> | |
<properties> | |
<entry> | |
<key>HTTP Status Code</key> | |
<value>200</value> | |
</entry> | |
<entry> | |
<key>HTTP Context Map</key> | |
<value>f6aa99d0-0159-1000-0000-000000000000</value> | |
</entry> | |
</properties> | |
<runDurationMillis>0</runDurationMillis> | |
<schedulingPeriod>0 sec</schedulingPeriod> | |
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy> | |
<yieldDuration>1 sec</yieldDuration> | |
</config> | |
<name>HandleHttpResponse</name> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>failure</name> | |
</relationships> | |
<relationships> | |
<autoTerminate>true</autoTerminate> | |
<name>success</name> | |
</relationships> | |
<style></style> | |
<type>org.apache.nifi.processors.standard.HandleHttpResponse</type> | |
</processors> | |
</snippet> | |
<timestamp>02/01/2017 00:55:53 CET</timestamp> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment