Hi,
I have a simple two stage supply chain network with 2 products (source), 1 Store (workstation), 1 warehouse (workstation), and 1 sink. 2 entities represent orders for each product, and each entity carries orders from data table. Another 2 entities represent replenishment.When orders are greater than current inventory, the store sends a signal to DC and ship replenishment. I use subclass workstation to process the orders, but I couldn't set up the correct logic for calculating service level, which is inventory/orders. In my process, I can put a decide step and say if modelentity.product1 is greater than 0 then calculate service level . This works (no product 2). I can also put a decide step and say if modelentity.product2 is greater than 0 then calculate service level. This also works (no product 1). However, if I put a decide step and say if modelentity. product1>0 or modelentity.product2>0 then calculate service level, I get error message.In the tally step, I have to put (inventoryA+ inventoryB)/(OrderA+OrderB) to make it work. if I put (inventoryA)/(OrderA) and add one more row (inventoryB)/(OrderB), it doesn't work. Now the problem is I cannot calculate the service level for each product. Does anybody know how to solve this problem? Thank you.