Discussion


Pegasystems Inc.
NL
Last activity: 14 Oct 2016 12:09 EDT
Correction in cLSA materal - Custom Gaurdrail Warnings
In the section, Tips On Developing An Application for topic Custom Guardrail Warnings, the courseware states the use of the function addWarning which is depreciated. Furthermore the exercise specifically states the use of pxAddGaurdrailMessage. Unfortunately the function itself does not explain its usage through the expression builder. The function leverages a Message rule which in turn required a parameter to be passed. Would be nice if this was aligned.
-
Likes (2)
Vachan Chauhan Vachan Chauhan -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


Pegasystems Inc.
US
When I looked at the lesson, it uses pxAddGuardrailMessage in the lesson content as well. Appreciate if you can show where you see the use of the function addWarning


Pegasystems Inc.
NL
In the first step we check if the description property has a value. If it does we exit the activity, otherwise we set the properties for the warning. The warning is added in the second step using the standard function rule called addWarning. The addWarning function does not have a return value and must therefore be called from a Java step.
Let’s have a look at the parameters for the addWarning function:
- strWarningName – short name of the warning, which appears on the guardrails landing page
- strWarningMessage – actual warning message shown on the rule form
- strWarningDetails – extra details shown on the guardrails landing page
- strWarningType – group warnings together in reports (Performance, BestPractice, DataIntegrity, Deprecated, and Logic)
- nSeverity – defines the severity from 1 to 3 where 1 is most serious
- myStepPage – page the warnings are added to, pass in the primary page here
- strListPageName – not used and can be blank


Pegasystems Inc.
NL
Karthikeyan, above is an extract of the lesson. As you see, it talks about using the addWarning function. In the exercise it uses pxAddGuardrailMessage.


Pegasystems Inc.
US
I think you are looking at the LSA 6.2 version, please check the LSA 7.1 version, it does talk specifically on pxAddGuardrailMessage function.


Pegasystems Inc.
NL
That is the activity not the function!. If you refer to the original post, it talks about the coruse ware referencing a function called addWarning and in the exercise it uses the function pzAddGuardrailWarning. If you can not find it then I can Lync you to show you directly.


Bernving Associated
NL
It is an correct observation that the lesson describes AddWarning and then the text and exercise steps over to pxAddGuardrailMessage. The correct way for Pega 7.1.x is to use the pxAddGuardrailMessage. This should be corrected in the lesson material.


Pegasystems Inc.
US
Yes this has been confirmed as being inconsistent from the development environment where we had the pxAddGuardrail message as I have indicated in the post. We will be updating the content in the PegaAcademy lesson for everyone to see this change, thanks.


Scotiabank
CA
I checked and found that this is now corrected.


Chase
US
What about Listview is depreciated correct?