Genpact Cora Knowledge Center

Support

Redesign Flowtime

V8.7

Starting with V8.7, Flowtime uses a new theme: Cora. You can customize the new theme using two sets of variables: one that changes the look and feel of the Flowtime website and another that changes elements in task forms.

Files

File nameDescriptionDefault design
CustomPortalVariables.lessIncludes variables that change the UI elements in the Flowtime website.
CustomWorkflowsExplorerVariables.lessIncludes variables that change the elements on the left panel and top menu of form pages (marked in red in the screenshot on the left).

File location: <server name>\Program Files\PNMsoft\Shared Resources\Themes\Cora

Add or edit design variables

  1. From the Shared Resources folder, open the PNMsoft.Sequence.Web.SharedResources.Themes.csproj located in the Shared Resources folder.

    Note: Open the file using Visual Studio with the Web Compiler extension.

  1. Add or edit the required variables in the relevant file: CustomPortalVariables.less or CustomWorkflowsExplorerVariables.less.
  2. Save the LESS file.

For a list of the most common variables, see the article Flowtime design variables.

Preview changes in the Flowtime UI

You can run a Preview.html file to view how your changes affect Flowtime UI elements.

  1. Go to <server name>\Program Files\PNMsoft\Shared Resources\Themes\Cora, and open the Preview.html file.
  2. Preview how your changes affect the Flowtime UI.
    The Preview page displays labels with the names of the variables next to the UI elements controlled by the variable.  
    1. To show or hide the labels, click Show Variables

Example

Edited variablePreview

@primary-color: #FF555F



NOTE:  
The Preview file works only with the Cora theme.
Preview is available only for the New Process and My Tasks pages.

Copy customized theme to other servers

If Flowtime is installed in more than one server, you can copy the changes you made in one server to the other one.

  1. On the server where you made changes to the Cora theme, go to C:\Program Files\PNMsoft\Shared Resources\Themes, and make a copy of the Cora folder.
  2. Paste the copied Cora folder to the same location, C:\Program Files\PNMsoft\Shared Resources\Themes ,  on the target server.

Display workflows on the homepage

In the Cora theme, the New Process homepage displays a list of workflows instead of categories, but systems that upgrade from previous versions  still display categories. 

  1. To display workflows on the New Process page, edit the Flowtime Web.config as follows:
<system.web>
 <urlMappings>
<add url="~/default.aspx" mappedUrl="~/workflows.aspx" />
</urlMappings>

 Add icon to workflow

When you set up a workflow in the Admin console, you can select an icon to display next to the workflow name on the New Process page.

Procedure

  1. In the App Studio, click the workflow canvas to show the workflow's Properties panel.
  2. Under UI>Icon, click the ellipsis button.
  3. From the Select Icon screen, click the icon that best fits your workflow, and then click OK.
    The icon displays next to the workflow name on the New Process page.  

 Add icon to Flowtime page

You can select an icon to display at the top of a Flowtime page.

Procedure

  1. Go to the Flowtime application's folder, and open the ASPX file of the page to which you want to add the icon.
  2. Set the value of theIconIdparameter to the name of the icon. 

Example: MyTasks.aspx

<%@ Page Title="My Tasks" ResourceTitle="MyTasks" IconId="sqpi-MyTasks" MenuId="Portal" SubMenuId="MyTasks" SelectedMenuItemId="MyTasks" SelectedSubMenuItemId="MyTasks" Language="C#" AutoEventWireup="true" CodeBehind="MyTasks.aspx.cs" Inherits="PNMsoft.Sequence.Runtime.Web.UI.Pages.MyTasks, PNMsoft.Sequence.Runtime.Web.UI, Version=8.0.0.0, Culture=neutral, PublicKeyToken=0a1a1b90c1c5dca1" %>
<%@ Register TagPrefix="sq" TagName="UserMessagesGridControl"
    Src="~/_controltemplates/Flowtime/UserMessagesGridControl.ascx" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <div class="sqpt-container">
        <div class="sqpt-grid-control">
            <sq:UserMessagesGridControl ID="UserMessagesGridControl" PageSize="20" DisplayVariables="true" ConfigName="Portal"
                runat="server" MessageInstanceViewItemType="TaskOnly" />
        </div>
    </div>
</asp:Content>

For a list of all the available icons and their names, see this article.

Upgrade from Cora SeQuence  V8.7 to later Cora SeQuence versions

  1. Go toC:\Program Files\PNMsoft\Shared Resources\Themes\Cora, and back up the following files:
    • CustomPortalVariables.less
    • CustomWorkflowExplorerVariables.less
  2. Upgrade the server.
  3. Restore the backed up files to the Cora folder at C:\Program Files\PNMsoft\Shared Resources\Themes\Cora.
  4. Open the LESS files in the Visual Studio with a WebCompiler extension, and save them.