The Service Center UI displays a panel with all the ticket activities associated with the ticket. The following describes how to add a new activity to that display.

  1. Configure a new ActivityInfo component for the activity and add it to the registry configuration layer located in the /atg/ticketing/activities directory. Note: The name of the file must match the type of the ticket activity.

    ActivityInfos define how to display the information contained in the activity. For example, using the /atg/ticketing/activities/ RedeemedLoyaltyPoints.properties file:

    $class=atg.svc.ui.activity.ActivityInfo
    hidden=true

    # JSP to render the Activity column
    activityColRenderer^=/atg/ticketing/activities/default.activityColRenderer

    # The property to display in the Activity column
    activityPropertyName=heading

    # The page to use to render detail information for the activity
    detailPage^=/atg/ticketing/activities/default.detailPage
    options=detailPageProperties=orderId,,pointsRedeemed

    # The icon to use to indicate an inbound or outbound activity
    # directionIcon=

    # The value to use for activity display name if no resourced display name
    # value is found
    # displayName=

    # The resource key for the display name in the resource bundle
    displayNameResourceKey=redeemedLoyaltyPointsDisplayName

    # The resource bundle
    resourceBundleName=atg.commerce.csr.ticketing.ActivityInfoResources

    # The JSP to render the source column
    sourceColRenderer^=/atg/ticketing/activities/default.sourceColRenderer

    # The icon to use when rendering the source column
    # sourceIcon=

    # The property to display in the Source column
    sourcePropertyName=agentProfile.firstName,agentProfile.lastName

    # Renderer for the type column
    typeColRenderer^=/atg/ticketing/activities/default.typeColRenderer

    # The icon used to represent this activity type
    # typeIcon

  2. The activities panel allows the agent to filter the display to a specific category of activities. For example, the agent can filter the display to view only Commerce related activities. To create a custom filter by creating a filter configuration component, for example, /myapp/activities/MyAppFilter:

    $class=atg.svc.ui.formhandlers.CategoryActivityFilter
    $scope=request

    # The activity types to be grouped under this category
    activityTypes=RedeemedLoyaltyPoints,MyOtherActivity1,MyOtherActivity2

    # The resource key of the display name for this group
    displayNameResourceKey=MyAppActivityFilter

    # The resource bundle that contains the resource key
    resourceBundleName=myApp.activities.ActivityInfoResources

  3. Add the new filter component to the /atg/svc/ui/formhandlers/
    ActivityFilters
    configuration. For example:

    customActivityFilters+=/myapp/activities/MyAppFilter

 
loading table of contents...