The ChangeCurrentCustomerActor allows an agent to select a customer and make them the current customer in the Commerce Service Center global context area. This enables an agent to work on the customer and any associated tickets. This actor uses the selectCustomer actor-chain to obtain customer information.

Additionally, this actor can be configured to present ticket disposition information. This actor is located at: /atg/svc/agent/ui/formhandlers/ChangeCurrentCustomerActor.

Parameter

Description

customerId

The ID of the customer to select.

doWarnings

If set to true, will present a warning to the agent when proceeding to the new site.

doTicketDispositionPrompt

If set to true, will present ticket disposition prompts to the agent.

dispositionOption

If doTicketDispositionPrompt is selected, this provides a ticket disposition option.

reasonCode

If doTicketDispositionPrompt is selected, this provides a ticket disposition reason code.

ticketNote

Used to provide a note associated with the ticket.

publicNote

Identifies if the ticket note is public.

Select Customer to Work On Example

This example confirms the ticket disposition.

curl -x 127.0.0.1:8888 -L -v -b agent_cookies.txt -H "Content-Type:
application/json" -d "{ "customerId" : "480010", "doWarnings":true,
"doTicketDispositionPrompt":true, "dispositionOption":\"save\" }"
"http://localhost:8280/rest/model/atg/svc/agent/ui/formhandlers/
ChangeCurrentCustomerActor/selectCustomer"

This example makes changes to the ticket disposition.

curl -x 127.0.0.1:8888 -L -v -b agent_cookies.txt -H "Content-Type:
application/json" -d "{ "customerId" : "480010", "doWarnings":false,
"doTicketDispositionPrompt":false, "ticketNote":\"Junk mail\",
"reasonCode":\"spam\", "dispositionOption":\"close\" }"
"http://localhost:8280/rest/model/atg/svc/agent/ui/formhandlers/
ChangeCurrentCustomerActor/selectCustomer"

The server response may be similar to this:

{
  "isDiscardable": false,
  "allWarnings": [],
  "activeTicketDisposition": true
}

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices