Created on 09-15-2023 02:58 AM - edited 09-15-2023 03:30 AM
What is most convenient way of determining total time taken by a group of consecutive processors?
Do I need to log time before first and after last processor, and then take the diff?
Or there is some inbuild feature that can help me on this?
Created 09-15-2023 05:40 AM
This served my purpose.
${now():toNumber():minus(${lineageStartDate}):format("HH:mm:ss", "GMT")}
I added it to a LogMessage processor, and I can see the result in logs, though sending it over a mail would be terrific.
Created 09-15-2023 06:06 AM
@manishg Why not use the PutEmail processor if you want receive this information via email?The "Message" property in the putEmail processor supports NiFi Expression Language, so your EL could be used directly in this processor as well.Matt