Events in web embed
The host page can add event handlers that execute and perform custom processing when specific supported events fire, which helps you better integrate Pega UI with the host environment.
Event listeners
To listen on an event in the web embed, you can define an event listener on the
embedded HTML element using the addEventListener()
method on the
web embed.
Events
- embedprocessingend
- Occurs when assignment processing is complete. The
embedprocessingend
event fires only when case processing is complete, and not on each assignment screen or flow action transition. - embedready
- Occurs before the system displays the UI of the embed.
You can use
embedready
to tell the host that the PCore infrastructure is ready, which means that thegetEmbedData
andsetEmbedData
methods can be used to adjust some displayed values. You can also use this event with the createCase action to get details about the current case and assignment IDs. - embedreauth
- Indicates that the refresh token has expired and that the user needs to be
presented with a login screen to continue the session.
If
popupReauth
is true, the embed displays a credential challenge screen for the specified authorization service. IfpopupReauth
is set to false, theembedreauth
event is fired. - embedassignmentsubmission
- Occurs when the system detects a Next or Previous assignment submission.
- embedcloseconfirmview
- Occurs when the user clicks the Done button on a confirmation view.
Previous topic updateTokens Next topic Troubleshooting web embeds