第二个例子将展示如何查找某一客户以及该客户的所有相关订单,为了更改状态属性,需要对它们进行迭代。
The second example shows how to find a customer and all associated orders for this customer, iterating through them in order to change the status attribute.
如果库存中提供了所有项,那么程序将履行订单,否则它将仅回滚当前订单。
The program fulfills the order if all items are in stock, otherwise it rolls back the current order only.
如果您将工作订单构造为一个OO应用程序,这些软件对象将包含所有必需的业务规则,并且理解应该遵循的业务流程。
If you constructed Work Order as an OO application, these software objects would contain all the necessary business rules and would understand the business processes that should be followed.
应用推荐