You can configure the Mashup channel in your application to embed Pega Platform content in an external application, for example, to create new
work for a case type or to display a harness. Mashup code is generated as HTML that you can
copy, paste, and view within a page or view of an external application.
You can also quickly test how the generated mashup code looks in a test demo mobile
app. To view your mashup, you must download the Pega Mashup Preview mobile app from
the Apple App Store or Google Play, and scan a QR code by using the app.
-
In Dev Studio, click the name of your
application, and then click Channels and interfaces.
-
In the Create new channel interface section, click
Mashup.
-
In the Name field, enter a name for the Mashup channel
interface.
- Optional:
To distinguish this channel interface from other channel interfaces that use
the Mashup channel, enter short text in the Description
field that describes the purpose of the channel interface.
-
Enter the Pega Platform URL and specify whether it is encrypted
in the mashup.
-
In the URL field, enter the URL for a Pega
Platform instance, for example:
http://sample.pega.com:8080/prweb/
-
To generate the mashup snippet with URL encryption, select the
Encrypt check box.
-
In the Action list, click a Pega Platform action, for example:
Create new
work
.
Depending on the selected action, you might have to specify additional
information. For example, for the Create new work
action, you
must specify the case type.
-
Enter additional configuration and action parameters.
-
In the Thread name field, enter the name of the
thread that handles the mashup.
-
In the Resize type list, select the resize mode
for the mashup gadget.
- Optional:
To load the mashup gadget after the rest of the page, select the
Is defer loaded check box.
- Optional:
In the Skin name field, press the Down Arrow key
and select a skin name to use for the selected action.
- Optional:
To supply an action parameter, in the Action
parameters section, click the Add a
row icon and enter a parameter name and value.
- Optional:
Test your cases for the Pega Platform application in a demo
mashup mobile app.
-
Click Try Mobile Mashup.
-
Download and install the Pega Mashup Preview mobile app from the Apple
App Store or Google Play.
-
Open the mobile app and scan the displayed QR code.
You can also enter the URL for the Pega Platform
application from step 5 and enter the credentials manually.
-
Click the Mashups tab.
-
If you selected
Create new work
in step 6, click the
case name that you specified to verify that you can create new work, and
check the branding for the app.
-
Click Generate.
-
Copy the generated HTML code from the Mashup code text
area, for example, click Copy to clipboard.
You can then paste the HTML into a web page or a view of an external
application.
-
Click Save.