The Process Portal user
interface does not contain any company branding. You might, however,
want to include a company logo in the Process Portal application
that you provide for your users.
About this task
This example describes how to add a company logo to the user profile by creating a header
file that refers to the graphic file for the company logo. In this example, these files are added to
a new toolkit. The separation of customization files from the Process Portal process application ensures that you can apply fixes from IBM® more easily in the future. Finally, a reference to the header file is added to the appropriate client-side human service.
Procedure
- Create a toolkit for the customization files.
You
can create a toolkit by using either Workflow Center or
the desktop Process Designer.
In this example, the toolkit is called SDBToolkit and
the acronym is SDBTK.
- Create the header and graphic files.
The
example uses the following header file:
<html xmlns="http://www.w3.org/1999/xhtml>
<head>
<style>
.customLogo {
background-color: #325c80;
height:55px;
}
</style>
<script type="text/javascript">
var customLogoURL = com_ibm_bpm_coach.getManagedAssetUrl("speedDemonBikes.png", com_ibm_bpm_coach.assetType_WEB, "SDBTK");
window.onload = function() {
document.getElementById("customLogoImg").src = customLogoURL;
console.log("!!");
};
</script>
</head>
<div class="customLogo" role="main">
<div>
<img id="customLogoImg" src="" alt="" />
</div>
</html>
The URL in the header file is used to retrieve
the logo from the toolkit.
- Add the files to the toolkit:
- Open the new toolkit in Process Designer.
- In the library, click the + sign
next to Files, then select Web File,
and add the header and graphic files.
- In Workflow Center, create
a snapshot of the new toolkit.
- Add a dependency to Process Portal for
the new toolkit.
- In Process Designer, open
the Process Portal process
application.
- In the library, click the + sign
next to Toolkits, then select the new toolkit.
- Add the logo to the appropriate Process Portal client-side
human service.
In this example, the company logo is added to the user profile, which is a view in the
RESPONSIVE_PORTAL client-side human service.
- On the Overview tab for the Process Portal process
application, click the RESPONSIVE_PORTAL client-side
human service.
-
On the Coaches tab, click Portal
to display the views, and then double-click anywhere in the views pane.
-
From the Advanced section of the palette, add a Custom
HTML view to the views pane, over the User Profile view.
Tip: To ensure that the logo appears on the view and not next to it, drop the
Custom HTML view onto the User Profile view and not outside it.
- Configure the Custom HTML control to refer to the header
file:
- Select the control, and in the Properties section HTML tab, select Managed
File.
- From the list of files, select the header file that contains the
link to the graphic file.
- Save your changes.
Results
The next time Process Portal users log in,
they see the new logo added to the user profile.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15