Skip to content

Instantly share code, notes, and snippets.

@bokks
Last active January 3, 2018 07:01
Show Gist options
  • Save bokks/cfd993468e962f8f59533a4c869eca67 to your computer and use it in GitHub Desktop.
Save bokks/cfd993468e962f8f59533a4c869eca67 to your computer and use it in GitHub Desktop.
This is a dynamic mashup demonstrating openAssignment action. Copy the code below and paste into http://phpfiddle.org/deposit/widget001.php and run it.
<!DOCTYPE html>
<html>
<body>
<div> Open Assignment </div>
<?php
$assignid = "ASSIGN-WORKLIST MYORGB7U7Z-UPLUSFINANCIAL-WORK S-43!GATHERAPPLICANTINFO_FLOW_0";
/* 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 ='openAssignment'
data-pega-action-param-key ='<?php echo($assignid) ?>'
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