Created
June 22, 2020 17:24
-
-
Save bokks/e46034f9a6386ded6e4f9b17f6f7d2d0 to your computer and use it in GitHub Desktop.
This is an encryption pattern for URLs that are stamped in the inline scripts of Stream rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%tools.putSaveValue("CAPTION-Task", tools.getLocalizedTextForString("pxRequestor.pyCaption","Task")); | |
tools.putSaveValue("CAPTION-WaitingAt", tools.getLocalizedTextForString("pxRequestor.pyCaption","WaitingAt")); | |
%> | |
/* Original */ | |
<script> | |
function displayFlowLocation(asnKey) | |
{ | |
strURL = strRequestorURIformFlows + "?pyActivity=Work-.GetLocationForAssignment&InsHandle=" + escape(asnKey); | |
openUrlInWindow(strURL,"FlowLocation","status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,left=20,top=20,height=600,width=750"); | |
} | |
</script> | |
/* Encrypted . Notice how the static part of the url is only encrypted. | |
The dynamic js variables can still be passed by appending to encrypted url in query string format*/ | |
<script> | |
function displayFlowLocation(asnKey) | |
{ | |
strURL = strRequestorURIformFlows + "?<%=pega_rules_utilities.pzEncryptURLActionString(tools, "Thread","pyActivity=Work-.GetLocationForAssignment")%>&InsHandle=" + escape(asnKey); | |
openUrlInWindow(strURL,"FlowLocation","status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,left=20,top=20,height=600,width=750"); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment