The ChangeOrderActor allows an agent to select an order and make it the current order in the Commerce Service Center global context area. This enables an agent to work on the order and any associated tickets. This actor uses the changeOrder actor-chain to obtain customer information. Additionally, this actor can be configured to present ticket disposition information. This actor is located at: /atg/commerce/custsvc/environment/ChangeOrderActor.

Parameter

Description

customerId

The ID of the customer to select.

doWarnings

If set to true, will present a warning to the agent when leaving the order they are currently working on and proceeding to the new order.

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 Order to Work On Example

This example confirms the ticket disposition, and displays any existing warnings.

curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{
\"newOrderId\":\"o99810006\" \"doWarnings\":true, \"doTicketDispositionPrompt\":
true, \"dispositionOption\":\"save\" }" "http://localhost:8280/rest/model/atg/
commerce/custsvc/environment/ChangeOrderActor/changeOrder"

This example makes the changes to the order ticket disposition.

curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{
\"newOrderId\":\"o99810006\" \"doWarnings\":false, \"doTicketDispositionPrompt\":
false, \"doWarnings\":false, \"doTicketDispositionPrompt\":false, \"ticketNote\":
\"Junk mail\", \"reasonCode\":\"spam\", \"dispositionOption\":
\"close\"}" "http://localhost:8280/rest/model/atg/commerce/custsvc/environment/
ChangeOrderActor/changeOrder"

The following may be response may occur from the server:

{
  "allWarnings":["The current working order has items in it and has not been
      saved. If you continue, the order will be lost."},
  "activeTIcketDisposition":false,
  "isDiscardable":true
}

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