You shouldn't need to use the "Delete Attributes Expression" since that is
a regex indicating flow file attributes to remove, and you are not trying
to remove anything here.

When you add properties, the name of the property is the attribute name you
want to add/modify, and the value is the expression.

So you should have added "filename"  as the name of the property, and then
your expression.

I can't really say if your expression is correct since it is not clear to
me what your incoming filename looks like and what you want the outgoing
file name to be.

If you want the filename to be "Medical2018-09-21" then your expression can
just be "Medical${fromDate}", assuming there is a fromDate attribute
already.


On Fri, Sep 21, 2018 at 9:39 AM Rajesh Biswas <[email protected]>
wrote:

> Hello NiFi Dev Team,
>
> Would you please suggest how to change flow file name in Apache NiFi.
>
> We have use UpdatAttribute processor with below configuration, would you
> please suggest regarding the same
>
>
>
> Attribute Expression:
> ${filename:replace(${filename},"Medical"):append(${fromDate})}
>
>
>
> Please help me with your thought
>
> Thank you very much
>
>
>
> Thanks and Regards,
>
> *Rajesh Biswas* | +91 9886433461 | www.bridgera.com
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> <#m_3103539183590462577_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

Reply via email to