Session Context Widget

The Session Context widget displays customer-support related information, making it easily accesible to the customer support agent with just one click. When the agent selects a ticket, all items related to this ticket (e.g. customer and order) are displayed in the session context widget allowing the agent to navigate between the customer, order or ticket details pages.

Widget Definition

Name

Session Context

ID

com.hybris.cockpitng.sessionContext

Category

Preview

Description

The Session Context widget displays customer-support related information, making it easily accesible to the customer support agent with just one click (Customer, Ticket and Order information only).

Applied In

Not applicable.

Based On

Not applicable.

Author

SAP

Inputs

Details of input sockets:

  • selectedItem

    • Type: java.lang.Object
    • Multiplicity: Single
    • Description: Item selected form the list view area, can be Order, Customer or Ticket or any other item.

Outputs

Details of output sockets:

  • itemToShow

    • Type: java.lang.Object
    • Multiplicity: Single
    • Description: currently selected object (Customer , Ticket or Order). In case the End Session button is clicked then the object is null.
  • viewData

    • Type: java.lang.Object
    • Multiplicity: Single
    • Description: Always null to show the result view area.

Generated Events

Not applicable.

Configuration

No custom configuration applies to this widget.

Widget Preview

Settings

No custom settings configuration applies to this widget.

Functionality

The Launch ASM Button

This widget contains a site drop-down allowing the customer support agent to select one of the available storefronts. If a selected ticket has an order or an actual order is selected, the dropdown is disabled. Clicking the Launch ASM button allows the customer support agent to start emulating the order or the cart of the customer directly from the widget.

Order and Cart Information

The Session Context Widget also stores the information about the customer and their order and cart. This information is used to populate the customer ID during the creation of a new support ticket. For more information about creating a new support ticket, see the Creating a New Ticket document.

The Start Call Button

This is a placeholder button.

The Session Timer

The session timer counts the elapsed time since any of the fields in the Session Context widget were populated. The timer is reset on every action which changes the data visible in the widget.

The End Session Button

Clicking the End Session button stops the call timer and deletes the current session objects from the Session Context widget. Current session objects include the information about:
  • Customer

  • Order

  • Ticket

If an active session exists, it is ended automatically in the following cases:
  • A ticket is selected from the ticket list and customer has been changed.

  • A customer is selected from the customer list

  • An order is selected from the order list and customer has been changed

Widget Slots

slotID

Multiplicity Type

Slots Composition

cockpitWidgetChildrenInvisible multi Not applicable. This is a general purpose slot available for the widgets. Any widget placed on this slot is not displayed in the application view but can be accessed through its socket API.
headerArea single Not applicable Top section of the widget layout within limited height therefore mainly used to display the widgets with a horizontal layout.