Get Group Contents

Gets the number of Work Items currently in a Group

Parameters

  • Group name - Text expression name of the group
  • Number of Work Items - Global Data Item to receive the number of Work Items in Group

See Get Group Contents Visual Logic in action

In the following, we show an example of how this Visual Logic command can be used. Below is a snapshot of a small simulations in which Queue 1 and 3 are in a group, Group 1.

Example simulation with queues in group

The content of Group 1, i.e. the sum of work items in Queue 1 and 3, is shown above the simulation. Initially, we start the simulation with a single resource available, Resource 1, that is required at Activity 1 and 3. However, we want to find a good balance between avoiding many work items in the queues and keeping a low requirement for resources. Therefore, we set up the rule that whenever the content goes above a certain level, for example 10 work items, we increase available resources to 2 whereas otherwise, we use only 1 resource. We check the content of Group 1 every 30 minutes for that. This is shown in the below Visual Logic command which is called via SIMUL8's Time Check logic every 30 minutes in the simulation.

Time Check VL for Group Content

And as we can see, whenever our critical limit of 10 work item for both queues together is reached, the number of available resources is doubled.

Two available resource due to higher group content

Related Commands

See Also