Shows how to post a dynamically built JSON.
01581038-6f14-1cd3-1a2c-5127087ce271
POST with a Dynamic Body
01581043-6f14-1cd3-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
1 GB
10000
01581038-6f14-1cd3-0000-000000000000
0158103a-6f14-1cd3-0000-000000000000
PROCESSOR
0 sec
1
success
01581038-6f14-1cd3-0000-000000000000
01581039-6f14-1cd3-0000-000000000000
PROCESSOR
0
01581046-6f14-1cd3-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
1 GB
10000
01581038-6f14-1cd3-0000-000000000000
0158103d-6f14-1cd3-0000-000000000000
PROCESSOR
0 sec
1
success
01581038-6f14-1cd3-0000-000000000000
0158103a-6f14-1cd3-0000-000000000000
PROCESSOR
0
01581049-6f14-1cd3-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
1 GB
10000
01581038-6f14-1cd3-0000-000000000000
0158103b-6f14-1cd3-0000-000000000000
PROCESSOR
0 sec
1
success
01581038-6f14-1cd3-0000-000000000000
01581040-6f14-1cd3-0000-000000000000
PROCESSOR
0
16ea7eac-0158-1000-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
1 GB
10000
01581038-6f14-1cd3-0000-000000000000
01581040-6f14-1cd3-0000-000000000000
PROCESSOR
0 sec
1
success
01581038-6f14-1cd3-0000-000000000000
0158103d-6f14-1cd3-0000-000000000000
PROCESSOR
0
16efcb51-0158-1000-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
1 GB
10000
01581038-6f14-1cd3-0000-000000000000
0158103f-6f14-1cd3-0000-000000000000
PROCESSOR
0 sec
1
Response
01581038-6f14-1cd3-0000-000000000000
0158103b-6f14-1cd3-0000-000000000000
PROCESSOR
0
16f05b0d-0158-1000-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
1 GB
10000
01581038-6f14-1cd3-0000-000000000000
0158103e-6f14-1cd3-0000-000000000000
PROCESSOR
0 sec
1
success
01581038-6f14-1cd3-0000-000000000000
0158103f-6f14-1cd3-0000-000000000000
PROCESSOR
0
16f071d4-0158-1000-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
1 GB
10000
01581038-6f14-1cd3-0000-000000000000
0158103d-6f14-1cd3-0000-000000000000
PROCESSOR
0 sec
1
loop.next
01581038-6f14-1cd3-0000-000000000000
0158103e-6f14-1cd3-0000-000000000000
PROCESSOR
0
01581039-6f14-1cd3-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
588.4300852816435
0.0
WARN
1
File Size
File Size
Batch Size
Batch Size
Data Format
Data Format
Unique FlowFiles
Unique FlowFiles
false
30 sec
File Size
1b
Batch Size
1
Data Format
Binary
Unique FlowFiles
false
0
60 sec
TIMER_DRIVEN
1 sec
Trigger the flow
false
success
org.apache.nifi.processors.standard.GenerateFlowFile
0158103a-6f14-1cd3-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
589.849560546875
221.6400036111938
WARN
1
Delete Attributes Expression
Delete Attributes Expression
counter
counter
false
30 sec
Delete Attributes Expression
counter
0
0
0 sec
TIMER_DRIVEN
1 sec
Initialise a counter
false
success
org.apache.nifi.processors.attributes.UpdateAttribute
0158103b-6f14-1cd3-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
602.0533081054688
742.5029288034634
WARN
1
HTTP Method
HTTP Method
Remote URL
Remote URL
SSL Context Service
org.apache.nifi.ssl.SSLContextService
SSL Context Service
Connection Timeout
Connection Timeout
Read Timeout
Read Timeout
Include Date Header
Include Date Header
Follow Redirects
Follow Redirects
Attributes to Send
Attributes to Send
Basic Authentication Username
Basic Authentication Username
Basic Authentication Password
Basic Authentication Password
Proxy Host
Proxy Host
Proxy Port
Proxy Port
invokehttp-proxy-user
invokehttp-proxy-user
invokehttp-proxy-password
invokehttp-proxy-password
Put Response Body In Attribute
Put Response Body In Attribute
Max Length To Put In Attribute
Max Length To Put In Attribute
Digest Authentication
Digest Authentication
Always Output Response
Always Output Response
Trusted Hostname
Trusted Hostname
Add Response Headers to Request
Add Response Headers to Request
Content-Type
Content-Type
send-message-body
send-message-body
Use Chunked Encoding
Use Chunked Encoding
Penalize on "No Retry"
Penalize on "No Retry"
false
30 sec
HTTP Method
POST
Remote URL
http://jsonplaceholder.typicode.com/posts
SSL Context Service
Connection Timeout
5 secs
Read Timeout
15 secs
Include Date Header
True
Follow Redirects
True
Attributes to Send
Basic Authentication Username
Basic Authentication Password
Proxy Host
Proxy Port
invokehttp-proxy-user
invokehttp-proxy-password
Put Response Body In Attribute
Max Length To Put In Attribute
256
Digest Authentication
false
Always Output Response
false
Trusted Hostname
Add Response Headers to Request
false
Content-Type
${mime.type}
send-message-body
true
Use Chunked Encoding
false
Penalize on "No Retry"
false
0
0 sec
TIMER_DRIVEN
1 sec
Make a new post
true
Failure
true
No Retry
true
Original
false
Response
true
Retry
org.apache.nifi.processors.standard.InvokeHTTP
0158103d-6f14-1cd3-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
590.8855224609376
447.03626162817045
WARN
1
Delete Attributes Expression
Delete Attributes Expression
body
body
title
title
userId
userId
false
30 sec
Delete Attributes Expression
body
bar
title
foo
userId
${counter:plus(1)}
0
0 sec
TIMER_DRIVEN
1 sec
Define request parameters
false
success
org.apache.nifi.processors.attributes.UpdateAttribute
0158103e-6f14-1cd3-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
1.1943298339845114
435.56684504185773
WARN
1
Routing Strategy
Routing Strategy
loop.next
loop.next
false
30 sec
Routing Strategy
Route to Property name
loop.next
${counter:lt(5)}
0
0 sec
TIMER_DRIVEN
1 sec
Iterate
false
loop.next
true
unmatched
org.apache.nifi.processors.standard.RouteOnAttribute
0158103f-6f14-1cd3-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
0.0
736.7815636697873
WARN
1
Delete Attributes Expression
Delete Attributes Expression
counter
counter
false
30 sec
Delete Attributes Expression
counter
${counter:plus(1)}
0
0 sec
TIMER_DRIVEN
1 sec
Increment the counter
false
success
org.apache.nifi.processors.attributes.UpdateAttribute
01581040-6f14-1cd3-0000-000000000000
01581038-6f14-1cd3-0000-000000000000
1182.3199649408673
445.8492938536356
WARN
1
Attributes List
Attributes List
Destination
Destination
Include Core Attributes
Include Core Attributes
Null Value
Null Value
false
30 sec
Attributes List
title,body,userId
Destination
flowfile-content
Include Core Attributes
true
Null Value
false
0
0 sec
TIMER_DRIVEN
1 sec
Turn request parameters into JSON
true
failure
false
success
org.apache.nifi.processors.standard.AttributesToJSON
10/30/2016 19:30:32 GMT