In this short article, we bring you a scenario where work assignments should get routed to work queues or others when the assigned operator is inactive?

We are pretty much sure this scenario is very popular and here is our standard basic solution.

First of all, how to find an inactive operator id in the system?

It’s simple if you look at the operator profile, an attribute called ‘pyLastSignon’ contains the value of the user’s last logged-in information. So depends on your application requirement, if ‘X’ days are defined as a threshold to say that operator is active then here is the formula.

@(Pega-RULES:DateTime).DateTimeDifference(.pyLastSignon, @(Pega-RULES:DateTime).CurrentDateTime(), "m")>= 'X'

So Pega has provided these code changes as OOTB is available as ‘When’ rules. One can find, pyOperatorInactive, to find an inactive user and pyOperatorAvailable to find if the operator was unavailable during assignment routing.

I’m Kondal

Hello, I’m Kondala Rao, known as Kondal. With extensive IT experience spanning product development, solution consulting, and business conduct, my passion lies in hands-on experimentation with the latest features of the Pega Platform and other low-code/no-code platforms to benefit businesses. Whenever I get free time, this blog is a space where I share insights, tips, and tutorials to help you leverage these technologies effectively.

I believe that even if one person benefits from my insights, it enriches my purpose to serve better. Join me on this journey of exploration and learning, and let’s elevate our skills together.

Happy Reading!!!

Let’s connect