Basically I have a simple source/sink diagram on anlylogic:
The source will insert into my line the agent "CMproduto" and will get the characteristics of the agent from my DB. My agent will then be sorted by the line that it will be processed by the conditional object to the corresponding queue (of line 1/2/3) and agents will exit my model one by one through a condition. However, my database can be changed (according to the rest of my simulation), so, I need to destroy all current agents in all 3 queues (and also from my CMproduto population) and reinsert them through the "source" but with the new values from my updated database. Thus, my database will always register old models (models that have already gone to my sink), for that i've created a column in my database that is updated with "0" or "1" if the agent has not or has been processed, respectively. So, I should only reinsert into my model agents that have values "0" in this column (I don't want to reprocess models that have already been processed).
This is how my source is configured. Basically agents will enter with the "time between arrival" being 0 (so all of them are inserted at the same time in my model). As said, parameters are being captured from the DB and there is a limited number of arrivals.
My question is: if i delete those agents from my "CMproduto" will they be automatically deleted from my queues? In addition, how can i reinsert agents into my model with the characteristics from my DB (and only models that have not yet been processed)?


