Hi ,
Need some guidance on the cancelServiceOrder state transition mapping to serviceOrder state transition.
The state transition in cancelServiceOrder are Acknowledged, inProgress , terminatedWithError and Done. The definition provided below and both terminatedWithError and Done are final states.
terminatedWithError : The CancelOrder could not be correctly completed by Service Order component. It did not mean that the cancel request is denied – it means that the assessment was not be done
Done :CancelOrder assessment has been done. The Order has been cancelled or keep is as it if cancel request denied.My queries are on below two scenarios :
Scenario 1:
- Considering a scenario when an order is in "inProgress" and the consumer decide to cancel the order.
- When cancelServiceOrder has reached "inProgress" , the service Order state can be transitioned to "AssessingCancellation".
- Now if the cancelServiceOrder assessment could not be completed due to some reason , the cancelServiceOrder state would be "terminatedWithError". In this case, what should be the expected state transition of service order. Should it move back to "inProgress" or should it move to "pending" and request consumers to cancel the order again?
Scenario 2 :
- Considering a scenario when an order is in "inProgress" and the consumer decide to cancel the order.
- When cancelServiceOrder has reached "inProgress" , the service Order state can be transitioned to "AssessingCancellation".
- Now if the cancelServiceOrder assessment is completed , the cancelServiceOrder state would be "done". But since the done state is only indication of assessment being completed, if the assessment concludes that order cannot be cancelled , should the service order state be moved back to "inProgress" .
Basically we are trying to come up with a table like below for better understanding:
CancelServiceOrder |
Service Order |
|
inProgress |
Acknowledged |
AssessingCancellation |
InProgress |
AssessingCancellation |
TerminatedWithError |
pending( should the consumer send another request for cancelling) or should order move back to "inProgress" |
Done |
PendingCancellation ->Cancelled for success cancellation inProgress for denied cancellation |
Thanks,
Rati
@Uma Lakshman
------------------------------
Rati Mehrotra
Telstra Corporation
------------------------------