I am a really beginer in Apache NiFi and I am trying to find the best way to do the following process.
I have an API that exposes an endpoint that provides me a token for next requests (available for few hours). I would like to store this token for general purpose, because I need other flows accessing to this token.
I would preffer not using Files or external Databases, so I was wondering about using variables... but honestly... no idea if this is the best way.
So far, I know how to connect with the API, (InvokeHTTP), and getting the token (EvaluateJsonPath), but I don't know how to store and where (Variable?) and how to use it in another flow.
Current flow so far:
Store Token: GenerateFlowFile -> InvokeHTTP ->EvaluateJsonPath -> ??
New request using token: GenerateFlowFile -> InvokeHTTP (Here I need to access the token)
Can anyone help me?
Thank u so much!!
... View more