The actual business logic for splitting will go into strategy class. This is done by following service.Īs you can see, that the order Splitting Service accepts a list of strategies, we can create many strategies, and split our order. We can have as many as strategy to split, as we want.īy default, hybris creates only one consignment for an order. These situations which decides the business logic to be a case for splitting the consignments, are known as splitting strategies. We may want to split consignment, based on product type (fresh or ambient) etc. For example, we may want to split consignment, based on warehouse from where item will be picked up. Now there may be various conditions, which may call for splitting the order into multiple consignments. In such situations, if business house doesn’t want to loose customer, it has no choice but to split order and ship it multiple times. There may be a case, where customer wants a mandatory delivery of item A within 2 days. But what if item A is fresh, and will get destroyed in 5 days. Now business has the option to either ship both items in 5 days. While fulfilling an order, some time it is necessary for business to split the order into multiple orders.įor instance, a customer orders two items A and B, now A has delivery window of 2 days, while B can be delivered in minimum 5 days.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |