Question

2
Replies
35
Views
Leigh Mitchell (Leigh@RuleTronics)
RuleTronics

RuleTronics
GB
Leigh@RuleTronics Member since 2015 5 posts
RuleTronics
Posted: April 12, 2021
Last activity: April 13, 2021
Posted: 12 Apr 2021 12:13 EDT
Last activity: 13 Apr 2021 7:50 EDT

Best Practice: Case Creation From Queue Processor

Hi,

I am currently trying to create a case using a queue processor by calling "pxCreateTopCase".

The issue is that since the queue processor is creating the case, pxRequestor.pyUserIdentifier is set as "system" and during the case creation process there is an error thrown stating that an operator ID named "System" does not exist.

The current solution is that as our first step in our queue processor activity will update the pxRequestor.pyUserIdentifier to a valid operator ID. 

I am wondering if there is a better or cleaner way to achieve the same result, is there a better way to create a case via a queue processor? or should we create an operator called "System"? 

Thanks,

Leigh

***Edited by Moderator: Pooja Gadige to add platform capability tag***
Pega Platform 8.4 Case Management System Administration Senior System Architect