Skip to main content

Customizing the Workforce Productivity app

Customizable components in the Workforce Productivity app

Customizable component

Customization option

Action required

View

  • Customize the Workforce Productivity app default View.

  • Add further custom Views to the Workforce Productivity app.

  1. Find the app package for your Task Mining project in Studio.

  2. In the View you want to edit, select Edit View.

  3. Make and publish changes.

For information on customizing and creating Views, see Creating Views.

Kowledge Model

Edit the calculated attributes and PQL formulas for KPIs in the Knowledge Model used by the Workforce Knowledge Model to change how the results are calculated.

  1. Find the app package for your Task Mining project in Studio.

  2. Find the Knowledge Model you want to customize.

  3. Make and publish changes.

For information on customizing Knowledge Models, see Knowledge Models.

Data Pool

Create an additional Data Pool which allows:

  • Custom tables to be added to your Data Model. 

  • Extra columns to be added to the TM_Labeled_Data table for a more in-depth analysis.

Note

You must create an additional Data Pool as modifying the Data Pool that is created automatically when the Task Mining project is set up is not supported.

Create an additional Data Pool.

Creating an additional Data Pool for the Workforce Productivity app

  1. Create a new data pool and select Create from Scratch.

  2. Go back to the data pools and select the Task Mining Data Pool that was created by the Task Mining project. Go to Data Connections, click the three dots next to Global Data Connection and then select Share Data with other Data Pools.

    Note

    If Global Data Connection is not visible, create a Data Job and an empty Transformation. Global Data Connection will then appear in Data Connections.

    wfp_share_data.png
  3. Choose the newly-created data pool from the list and then select all three items to synchronize.

    wfp_share_data_list.png
  4. Return to the newly-created data pool. Click Connect to Data Source and then select Import Data from another Data Pool. Click the data connection that you shared in the previous step and then click Synchronize.

  5. Select Create Data Job. Enter a name and then choose Global Data Connection.

  6. Select Add Transformation.

Adding a transformation

  1. Add a transformation that creates a view with the  "Comment" and "ActiveElementName" columns from the raw data (user_interaction_event_log_history) table. You will need to adjust the schema name between the <%=   %> symbols.

    Note

    You can check the schema name by clicking the Schema Explorer on the left and selecting the imported connection from the dropdown. Expand one of the tables and click on one of the columns. This adds the selected column to the transformation statement along with the schema and table name. You can then copy the schema name from there.

    -- change the column(s) which are needed accordingly. always select the "Id" column as we need that to join the new view to the target table
    -- make sure to change the schema name
    CREATE VIEW extra_columns AS
    SELECT
         Id
         ,Comment
         ,"ActiveElementName"
    FROM
    <%=DATASOURCE:TASK_MINING_DATA_POOL_-_SCALABLEWFP_GLOBAL%>."user_interaction_event_log_history";
    -- the next query recreates the target table as a view by joining the extra_columns view and the target table
    -- adjust the columns and the schema accordingly
    CREATE VIEW TM_Labeled_Data_View AS
    SELECT
    tm_labeled_data_view.*
    ,"extra_columns"."Comment"
    ,"extra_columns"."ActiveElementName"
    FROM
    <%=DATASOURCE:TASK_MINING_DATA_POOL_-_SCALABLEWFP_GLOBAL%>."TM_Labeled_Data_View" tm_labeled_data_view
    LEFT JOIN "extra_columns" ON 1=1
    AND tm_labeled_data_view.Id = "extra_columns".Id
    ;
  2. Save the transformation and then execute it.

  3. Create a data model and name it. Choose the newly created TM_Labeled_Data_View from the list and then click the view to set it as the activity table:

    1. For Case ID choose the CASEID column.

    2. For Activity name choose the SCREEN column.

    3. For Timestamp choose the TIMESTAMPUTC column.

  4. Select Finish.

  5. Once the Data Model has been created, click the three dots next to TM_Labeled_Data_View and select Edit.

    wfp_edit_data_model_menu.png
  6. Enter TM_Labeled_Data in the Alias field and click Save.

    wfp_table_settings.png
  7. Load the data model.

  8. Go to Studio and expand the package that was created by the Task Mining project. Expand assets and then click on the Knowledge Model. In the upper right corner click on the down arrow next to the data model and choose "Create Data Model Variable". Select the newly created data model from the list.

  9. The custom columns are now available to use in the View.

Note

You can also add custom tables to this data model. Optionally create a schedule to execute this transformation periodically to keep the studio view up to date.

Using Data Pools in Task Mining

By default only those columns are included in the data model which are used in the out of box analysis provided by Task Mining. In case a more in depth analysis is needed or you plan to add custom data, you can add the excluded columns from the user_interaction_event_log_history table or add custom data from your source system.

Filtering data displayed in the Workforce Productivity app

You can use the filter bar in any Workforce Productivity app tab to narrow down the data displayed. The user filters use metadata from the employees table so you must add this data to the employees table first.

For more information, see Adding employee information options and to understand the user filter, see employees table fields and values.