修改nifi中flowfile的名称

Change the name of flowfile in nifi

我想在 updateAtribute 处理器中更改我的流文件的名称我已经尝试过了

${filename:replace("Info"):append('.'):append(${fromDate})}

但它失败了异常告诉我我有无效的表达我该怎么办?

以这种方式工作:

${filename:replace(${filename},"Info"):append(${fromDate})}