Hi Lynn,
Yes, the order items follow the same state diagram as the main order. I recommend you take a look at the IG1228 document, especially at the use case 8, on which you will find a detailed description of a scenario where different orders and order items progress to provision several products. You can find the last published version here:
In the same document, there is another interesting use case that can help you to understand how product, service, and resource orders behave in situations where something fails. This is the use case 11:
In the scenario you are asking for, I think that there are several strategies that can be followed, depending on your business needs. I can think of two options:
- If there is a strong relationship between the two items (commercial or technical), having one of them failed and the other in progress, if you receive a cancelOrder probably you would want to cancel the one that is in progress and rollback the completed one before canceling the whole order.
- If there is no such strong relationship and you can live with only one of them, perhaps you would want to let the running one to complete, ending up the main order as Partial.
Well, this is a complex matter and there is no single answer. I hope it helps you to understand better how it works.
Regards,
------------------------------
Abel Ruiz Huerta
alvatross by SATEC
------------------------------