后者是一个过程服务(如购物车应用或一个订单),在它被处理时用户和其他涉众可以得到当前状态。
The latter are process services such as a shopping cart application or an order where the customer and other stakeholder can get the current state while it gets processed.
选择状态机来实现此组件的原因在于:对于每个订单,用于处理该订单的步骤取决于该订单的当前状态。
We chose a state machine to implement that component because, for each order, the steps that were taken to process the order depended on the current state of the order.
我们当前的设计不支持订单取消,因此必须首先向业务状态机添加一个Canceled状态。
Our current design does not support order cancellation, so we must first add a Canceled state to the business state machine.
我们当前的设计不支持订单取消,因此必须首先向业务状态机添加一个Canceled状态。
Our current design does not support order cancellation, so we must first add a Canceled state to the business state machine.
应用推荐