Scenario 2.6-new-End of SB-test.fsmHi
I have a problem aligning my process flow with what I have in mind for the 3D model to do. I have two processors named MW1 and MW2. I also have two types of products. MW1 only processes product 20 but MW2 can process both products.
In my model items are stored in a storage before entering the processors, and I want to check (based on item type) if the corresponding MW is empty before acquiring any resources and moving items.
I used a wait for event activity to create one token per each item entering the storage, and then I determine the product type using a decide activity. From here I need to know if:
1- for item type 20, either processor is empty
2- for product 12, MW2 is empty
If so, the model acquires the operators, the crane and the processor and the items are transported to said destinations. if not, they must wait for the corresponding processors to finish processing. Now as each processor can work on one item at a time, I need to keep them acquired until processing is done, which means I need to use a second wait for event in the same process flow. This clearly does not work, because although I have a storage full of items waiting to enter the MWs, The MWs are idle half of their up time.
I want to know how I can:
1- decide if either one of processors is empty before sending item to them (without using acquire resource)
2- handle resources in this model so that the operators, the crane and the processors are acquired only when items can be transported. (This is important as I use my resources for many other activities)