Created 07-06-2021 06:46 AM
Please help me out in this scenario:
1. I have to create a new project. The details are accessed using GetFileProcessor.
2. I have passed two input to Invokehttp Processor(one Authorization token using CustomField and other as data to be used for POST action). However, this process is not working as expected.
Please find the attached screenshot for reference.
Data To be used for POST:
Early Response much appreciated!
Thanks!
Created 07-13-2021 12:58 PM
@midee
The invokeHTTP processor will not execute against multiple FlowFiles collectively. You need to have one FlowFile that contains both your token in a FlowFile attribute and the desired content you are trying to post in the content.
The dataflow that obtains the token could be merged with the other dataflow that has yoru content.
If you have multiple FlowFiles that will need to use the same token, yo could have to separate dataflows.
One that gets the token and rights it to a distributed Map Cache via the PutDistributeMapCache processor.
Second dataflwo the gets your content file and fetches the token via the FetchDistributedMapCache processor.
Then you have one FlowFile with the token you need in an attribute and the content on the FlowFile to be transferred via InvokeHTTP.
If you found this assisted with yoru query, please take a moment to login and click "Accept" on this solution.
Thank you,
Matt
Created 07-07-2021 06:58 AM
Please help me ..This is bit urgent.
Thanks!
Created 07-13-2021 12:58 PM
@midee
The invokeHTTP processor will not execute against multiple FlowFiles collectively. You need to have one FlowFile that contains both your token in a FlowFile attribute and the desired content you are trying to post in the content.
The dataflow that obtains the token could be merged with the other dataflow that has yoru content.
If you have multiple FlowFiles that will need to use the same token, yo could have to separate dataflows.
One that gets the token and rights it to a distributed Map Cache via the PutDistributeMapCache processor.
Second dataflwo the gets your content file and fetches the token via the FetchDistributedMapCache processor.
Then you have one FlowFile with the token you need in an attribute and the content on the FlowFile to be transferred via InvokeHTTP.
If you found this assisted with yoru query, please take a moment to login and click "Accept" on this solution.
Thank you,
Matt
Created 07-14-2021 11:22 PM