當在Processor的onTrigger中添加好業務代碼後,需要指定 Relationship,及數據將從哪個 Relationship流動,代碼如下
session.transfer(flowFile, REL_SUCCESS);
如果沒有指定話,則會報transfer relationship not specified的錯誤提示。
2、爲processor添加service時,報 [color=red]No controller service types found that are applicable for this property.[/color]
在processor所在的nar包中,MANIFEST.MF中未添加依賴的service
Nar-Dependency-Id: nifi-XXX-api-nar