When Will You Need This?

When you want to get one of multiple resources in a preliminary process step, then get the same resource for work on the same entity at a later process step.

Get the Same Resource Later model image

Model Object

The following model object can be found in the model objects directory: Utilization \ Get the Same Resource Later.

Ease of Use: Moderate

Ease of Modification: Moderate

How to Use the Model Object

1. Open Your Model

Open your model or create a new blank model.

2. Insert the Model Object into Your Model

1. Locate the model object Get the Same Resource Later and select the insert button.

2. Move the cursor to the point of insertion and left mouse-click. The upper left corner of the model object will be inserted at the location of the mouse-click.

3. Update Objects

1. Copy the action logic from Process1 and paste it into the activity where you would like to get the resource the first time.

copy process1 logic in Get the Same Resource Later

2. Replace the Worker resource names with your own resource names.

change resource name 1 in Get the Same Resource Later

3. Alter the Time statement in the action logic to match your needed time.

alter time in Get the Same Resource Later

4. Copy the action logic from Process4 and paste it into the activity where you would like to get the same resource the second time.

Copy and paste the action logic from Process4 to any other activity where you want to get the same resource as was used in Step 1.

copy process4 logic in Get the Same Resource Later

5. Replace the Worker resource names with your own resource names.

Once the resource is retrieved in the action logic of first activity and the a_Resource attribute assigned a value with OwnedResource(), the action logic used in Process4 ensures the same resource will be retrieved again for that particular entity.

update res name p4 in Get the Same Resource Later

The OwnedResource() function returns the resource number rather than the textual name. That number is determined by the order in which the resource graphic was placed in the model. For example, Worker2 was the second resource placed in the model. Therefore, regardless of the resource’s name, OwnedResource() returns a value of 2.

6. Alter the Time statement in the action logic to match your needed time.

alter time in p4 in Get the Same Resource Later

4. Completion

The model object is now integrated into your model, you should now be able to save and then simulate the model.

Attributes, Variables, Scenario Parameters and Scenarios Usage

Attributes:

1. a_Resource: Do not change. The unique number associated to the resource retrieved by the GET statement in Process1.