Hello,
I have a model with one dispatcher and 4 forklifts. I want to assign tasks to forklifts through dispatcher. The dispatcher has to send forklifts based on the task triggered from global table. In the global table, the required destination will be mentioned for particular item and the forklift has to pick the part and deliver to the destination. The dispatcher has to check for the available forklifts which are not performing any task and assign a task to it.
How to write the code in the dispatcher to send the transporters to perform task whenever the forklifts are available?
As of now, in my model I have assigned each task to one forklift but I want to access all the forklifts not to restrict one forklift to one task but multiple forklifts to multiple tasks.
The global table to be referred is "ProcessFlow1"
Please help me to write the code.
Model Name : Model_using_code_V3