Before the task: token queue
When a token arrives at a task that has reached its maximum simultaneous processing capacity, or for which a resource is not available, it is placed in a queue.
The simulation editor allows you to indicate how tokens in the queue will be managed.
Queue order 
To specify the order in which tokens are processed by the task:
1. In the left pane of the editor, select the task.
2. In the right pane, select the Input subtab.
3. In the Order list box, you can specify the selection order of tokens:
Random
Earliest, the first to arrive is the first served
Example: in a fast food service, orders will be processed in their order of arrival, in other words from the earliest to the latest.
Latest, the last to arrive is the first served
Token data, we must specify on which token data type the choice will depend.
Example:
In your scenario you have created a "Delivery type" token data that differentiates between "Normal" and "Urgent" deliveries.
To indicate that the "Serve Order" task processes urgent orders first:
1. In the Selection box, select "Token Data".
2. In the Criterion Token Data box, specify that it is the"Delivery type" token data.
Data values are taken according to their order. So that the "Urgent" value is handled first by the task, it must be placed first in the data.
To modify the order of values in a token data:
1. Open the properties dialog box of the token data.
2. Select the Characteristics tab.
3. In the Possible Values box, click the Reorganize button
4. Modify the position of values by dragging with the mouse, then click OK.
See also Token data.
Queue capacity 
To specify a maximum capacity for the queue:
*Select the Limit Queue Capacity check box and indicate the maximum number of tokens to be held in the queue.
When this quantity has been reached, tokens are discarded or in other words lost. The number of discarded tokens is displayed in simulation results.
Queuing time 
To limit the time tokens wait in the queue:
*Select the Limit Queuing Time and specify the maximum queuing time.
When this time has been reached, tokens are discarded. The number of discarded tokens is displayed in simulation results.