...
Managed Entity and Task Resource Models
...
ProductOrder lifecycle
Here is the state machine diagram for a product order. Each order states are described in the tab below.
The order item states are the same as the order ones. Note that the order and order item states are tightly linked and need to be consistent, for example :
...
Acknowledged | The Acknowledged state is where an order has been received and has passed message and basic business validations. |
In Progress | The In Progress state is where an order has passed the Order Feasibility check successfully and service delivery has started. |
Cancelled | The Cancelled state is where an In-Flight Order has been successfully cancelled. |
Completed | The Completed state is where an order has complete provision and the service is now active. |
Rejected | The Rejected state is where:
|
Pending | The Pending state is used when an order is currently in a waiting stage for an action/activity to be completed before the order can progress further, pending order amend or cancel assessment. In situations where Access Seeker action is required, an "information required" notification will be issued on transition into this state. |
Held | The Held state is used when an order cannot be progressed due to an issue. SP has temporarily delayed completing an order to resolve an infrastructure shortfall to facilitate supply of order. Upon resolution of the issue, the order will continue to progress. |
Failed | All Order items have failed which results in the entire Order has Failed. |
Partial | Some Order items have failed and some have succeeded so the entire Order is in a Partial state. This provides support for partial Failure of an Order |
...
...
ProductOrder
Here under a product order composed of 4 order lines (orderItems) :
...
Field | Description |
id | Unique identifier of related party |
href | Reference of the relatedParty, could be a party reference or a partyRole reference |
role | Role of the related party |
name | Name of the related party |
UML model:
...
...
Notification Resource Models
Five notification types are defined :
- orderCreationNotification
- orderRemoveNotification
- orderStateChangeNotification
- orderValueChangeNotification
- orderInformationRequiredNotification
UML model:
...
Order Creation Notification
Used to notify that a new order has just been created.
{ "note":[ "appointment":"http://www.doodle.com/1WCV5647438", { |
...
...
Order Remove Notification
Used to notify that an order was deleted.
{ "href":"http://serverlocation:port/orderManagement/productOrder/42", "externalID":"NiceNameForTheConsumer_42" }} |
...
...
Order State change Notification
Used to notify that an order state is evolving.
{ "href":"http://serverlocation:port/orderManagement/productOrder/42", "state":"Completed" }} |
...
...
Order Value Notification
Used to notify that any data in an order has just changed.
{ "href":"http://serverlocation:port/orderManagement/productOrder/42", "orderItem":[ ] }} |
...
Order Information Required Notification
Used to notify that some data in the order needs to be filled / is missing.
...