How to record job handle logs

if I want to record job handle log ,but it will retry some times if I have set the retry times ,how can I record only last time.

You can consume the exported logs using an exporter. Consume the Job records, specifically with the COMPLETED intent.

yes ,now I solve in this way,but Sometimes the attribte is Global

Sometimes the attribte is Global

You could consider using an output mapping on the main none start event to set a process variable. You can then consume the variable in all job workers. Variables are scoped to different scope levels. When using the root scope (top of the process) these variables are available to all elements (sort of global within the entire process instance).