Search code examples
anylogicagentflowchart

Agents do not enter the process Blocks


I used enter blocks to bring pieces of equipment to the process but nothing happens! How can I push the equipment to enter the process? Can I use resource task start block instead of enter block?

enter image description here


Solution

  • You have to push them manually. Typically, you have an Exit block somewhere else in your model where agents leave a process flow. In it's "on exit" code box, you use myEnterBlock.take(agent) to push the agent into an Enter block.

    See help article on it (and get into the habit of checking that first ;) ). It even has a link to a video :)

    Also, always check existing example models first. Typically, there are models that already do what you need, there are many that use Exit/Enter blocks, for example :)