Custom functions might be unavailable when you clear the cache through the groovy editor in SAS® Risk Governance Framework


In SAS Risk Governance Framework, custom functions that you use within a workflow template might become unavailable in the current session when you clear the caches through the groovy editor within the user interface (UI).

As a result, the following error might occur in the <SASConfigFolder>/Lev1/Web/WebAppServer/SASServer8_1/logs/catalina.out file of the SAS Middle Tier server:

java.lang.NullPointerException
at com.sas.oprisk.cpb3.RGFContentLibInfo._getHelpURLTemplate(RGFContentLibInfo.
java:76)

at com.sas.oprisk.cpb3.RGFContentLibInfo.getHelpURLTemplate(RGFContentLibInfo.
java:67)

...

Workaround

To circumvent this issue, invoke the full path of the custom function in the task value attribute instead of using the function alias name:

  1. Set up the function call in the workflow template instead of using the function alias name, as shown in the sample below:
          Standard function alias name

  2. Replace the function expression in the Value attribute to use the full path function uri:

          Full path function uri