In this first approach, we model a container terminal in the port logistics chain obtaining the CTEM model. This model has six subcomponents with specialized tasks, for example, YEMS which performs the event management process in the container yard. YEMS is a multiagent system consisting of the crane agent, the truck agent, the container agent, and the block agent; there is an agent for each relevant resource to manage.