Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
Created August 7, 2017 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpfiddle/dbb51bac8be1363c6a84c9ee8680c58b to your computer and use it in GitHub Desktop.
Save phpfiddle/dbb51bac8be1363c6a84c9ee8680c58b to your computer and use it in GitHub Desktop.
[ Posted by Suman ] This is a dynamic page which serves the mashup for action openWorkItem .
<!DOCTYPE html>
<html>
<body>
<div> Open Work Example </div>
<?php
$workid = "S-95";
/* In a production scenario, this id would be retrieved dynamically maybe from a rest service which takes in a few input search
parameters and returns the id, like get me the id of the loan application of ApplicantName = xxx
*/
?>
<script src ='https://te8287.pega.com/prweb?pyActivity=pzIncludeMashupScripts'></script>
<div data-pega-gadgetname ='PegaGadget'
data-pega-action ='openWorkItem'
data-pega-action-param-workid ='<?php echo($workid) ?>'
data-pega-action-param-classname ='MYORGB7U7Z-UPLUSFINANCIAL-WORK'
data-pega-isdeferloaded ='false'
data-pega-applicationname ='UPlusFinancial'
data-pega-threadname ='STANDARD'
data-pega-systemid ='pega'
data-pega-resizetype ='stretch'
data-pega-url ='https://te8287.pega.com/prweb'
data-pega-redirectguests ='true'
data-pega-action-param-parameters={UserIdentifier:'cnwuser',Password:btoa('rules')}></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment