You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Dweep Sharma <dw...@redbus.com> on 2019/10/31 11:22:45 UTC
Generate unix time stamp
Hi,
I am trying to use InvokeHTTP processor to make a GET call with timestamp
as parameter.
The Generate flow file does not allow generation of datetime,
Is there another processor i can use to supply timestamp to my invokehttp
processor on a schedule?
-Dweep
--
*::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachments are confidential and
intended for the named recipient(s) only.E-mail transmission is not
guaranteed to be secure or error-free as information could be intercepted,
corrupted,lost, destroyed, arrive late or incomplete, or may contain
viruses in transmission. The e mail and its contents(with or without
referred errors) shall therefore not attach any liability on the originator
or redBus.com. Views or opinions, if any, presented in this email are
solely those of the author and may not necessarily reflect the views or
opinions of redBus.com. Any form of reproduction, dissemination, copying,
disclosure, modification,distribution and / or publication of this message
without the prior written consent of authorized representative of redbus.
<http://redbus.in/>com is strictly prohibited. If you have received this
email in error please delete it and notify the sender immediately.Before
opening any email and/or attachments, please check them for viruses and
other defects.*
Re: Generate unix time stamp
Posted by Dweep Sharma <dw...@redbus.com>.
Thanks Pierre,
This was helpful. Used now() to get the current date time.
-Dweep
On Thursday, October 31, 2019, Pierre Villard <pi...@gmail.com>
wrote:
> Hi Dweep,
>
> The GenerateFlowFile processor allows you to add dynamic properties that
> will be used as attributes of the generated flow file. You can add a
> dynamic property using the "+" symbol on the processor configuration.
> Dynamic properties on this processor accept the expression language.
> Therefore you can use the expression language to generate a timestamp as an
> attribute of the flow file. You can then use this attribute as a parameter
> in the InvokeHTTP processor.
>
> Hope this helps,
> Pierre
>
> Le jeu. 31 oct. 2019 à 12:31, Dweep Sharma <dw...@redbus.com> a
> écrit :
>
>> Hi,
>>
>> I am trying to use InvokeHTTP processor to make a GET call with timestamp
>> as parameter.
>>
>> The Generate flow file does not allow generation of datetime,
>>
>> Is there another processor i can use to supply timestamp to my invokehttp
>> processor on a schedule?
>>
>> -Dweep
>>
>>
>>
>>
>> *::DISCLAIMER::----------------------------------------------------------------------------------------------------------------------------------------------------The
>> contents of this e-mail and any attachments are confidential and intended
>> for the named recipient(s) only.E-mail transmission is not guaranteed to be
>> secure or error-free as information could be intercepted, corrupted,lost,
>> destroyed, arrive late or incomplete, or may contain viruses in
>> transmission. The e mail and its contents(with or without referred errors)
>> shall therefore not attach any liability on the originator or redBus.com.
>> Views or opinions, if any, presented in this email are solely those of the
>> author and may not necessarily reflect the views or opinions of redBus.com.
>> Any form of reproduction, dissemination, copying, disclosure,
>> modification,distribution and / or publication of this message without the
>> prior written consent of authorized representative of redbus.
>> <http://redbus.in/>com is strictly prohibited. If you have received this
>> email in error please delete it and notify the sender immediately.Before
>> opening any email and/or attachments, please check them for viruses and
>> other defects.*
>
>
--
*::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachments are confidential and
intended for the named recipient(s) only.E-mail transmission is not
guaranteed to be secure or error-free as information could be intercepted,
corrupted,lost, destroyed, arrive late or incomplete, or may contain
viruses in transmission. The e mail and its contents(with or without
referred errors) shall therefore not attach any liability on the originator
or redBus.com. Views or opinions, if any, presented in this email are
solely those of the author and may not necessarily reflect the views or
opinions of redBus.com. Any form of reproduction, dissemination, copying,
disclosure, modification,distribution and / or publication of this message
without the prior written consent of authorized representative of redbus.
<http://redbus.in/>com is strictly prohibited. If you have received this
email in error please delete it and notify the sender immediately.Before
opening any email and/or attachments, please check them for viruses and
other defects.*
Re: Generate unix time stamp
Posted by Pierre Villard <pi...@gmail.com>.
Hi Dweep,
The GenerateFlowFile processor allows you to add dynamic properties that
will be used as attributes of the generated flow file. You can add a
dynamic property using the "+" symbol on the processor configuration.
Dynamic properties on this processor accept the expression language.
Therefore you can use the expression language to generate a timestamp as an
attribute of the flow file. You can then use this attribute as a parameter
in the InvokeHTTP processor.
Hope this helps,
Pierre
Le jeu. 31 oct. 2019 à 12:31, Dweep Sharma <dw...@redbus.com> a
écrit :
> Hi,
>
> I am trying to use InvokeHTTP processor to make a GET call with timestamp
> as parameter.
>
> The Generate flow file does not allow generation of datetime,
>
> Is there another processor i can use to supply timestamp to my invokehttp
> processor on a schedule?
>
> -Dweep
>
>
>
>
> *::DISCLAIMER::----------------------------------------------------------------------------------------------------------------------------------------------------The
> contents of this e-mail and any attachments are confidential and intended
> for the named recipient(s) only.E-mail transmission is not guaranteed to be
> secure or error-free as information could be intercepted, corrupted,lost,
> destroyed, arrive late or incomplete, or may contain viruses in
> transmission. The e mail and its contents(with or without referred errors)
> shall therefore not attach any liability on the originator or redBus.com.
> Views or opinions, if any, presented in this email are solely those of the
> author and may not necessarily reflect the views or opinions of redBus.com.
> Any form of reproduction, dissemination, copying, disclosure,
> modification,distribution and / or publication of this message without the
> prior written consent of authorized representative of redbus.
> <http://redbus.in/>com is strictly prohibited. If you have received this
> email in error please delete it and notify the sender immediately.Before
> opening any email and/or attachments, please check them for viruses and
> other defects.*