Question

What is the correct replacement for a @java expression (SSO Authentication)

Hello,

I'm trying to get SSO working in Pega following some instructions that were provided and are somewhat out of data as we are using version 8.2 and the instructions appear to be from version 7.x. Everything has been configured and implemented, however I can't log in and I believe the issue is with an @java expression that is set as part of an Authentication activity. The relevant part of the instructions are as follows (summarized):

  1. Create an authentication service.
  2. Click on the crosshair icon for the Authentication activity field.
  3. Fill out the form and click on Create and open.
  4. Create several steps

One of the steps that are created is a Property-Set step. The PropertiesName is set to param.pyOperPage and the PropertiesValue is set to @java("myStepPage"). Unfortunately, this is not allowed in the version of Pega we have as I've tried to use it. I found this post (https://community1.pega.com/community/pega-support/question/how-rewrite-java-step-authenticationldapverifycredentials-pega-81), but it didn't help me at all. Granted, this may be because I misunderstood what was being stated as I simply built an expression that was simply "return ClipboardPage;", which is mentioned in the Correct Answer.

So, my question is: what should I use to get the same behavior as the @java expression?

***Edited by Moderator Marissa to update platform capability tags****

Comments

Keep up to date on this post and subscribe to comments

Pega
September 12, 2019 - 4:03am

The alternative to obtaining the value of Java objects would be to wrap them in an RUF and having it be called in the activity.

E.g- Create an ruf @getValue() with return Java type String which we'll reference in the activity, and its source java code could be

return PRAuthentication.VALUE;

September 12, 2019 - 10:24am

use java step instead of Property-Set

Before

After

Pega
September 13, 2019 - 9:58am