Compare the data present in the queue with the data in the performer

how can I compare the invoice data present in the queue with the invoice data in the performer??

When you fetch it in from the queue in performer you can compare the values using if and then process accordingly.