How can I set Reference Object Key in Queue Processor?

I create queue processor to retry MQ message and see the reference object key is always blank. I think if I can set any value such as case id to this field it would be easier to find the record that related to the case.

So I’d like to know how to set the value to this field.

@SitthanatC Currently there are no plans to implement the functionality to change the Kafka partition key for a queue processor in Pega. The recommended out of the box (OOTB) method is to exclude the use of Queue Processors (QPs) due to the complexity and error situation handling involved. Instead you can manage your work in the form of cases where the Case ID is incremental defining the desired ordering. You can create a Job Scheduler with a cluster level lock to run on a single node at a time. The Job Scheduler can pick up a single case from the top of the list and process it handling all processing errors within the Job Scheduler implementation.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

Change kafka partition key for a queue processor