You are here:Home>Knowledge Base>Model Building>Getting the Same Resource Later

Getting the Same Resource Later

ProcessModel allows a simple technique to insure your get the same resource later. First, the identity of resource captured must be discovered. Then, the entity must be marked with the identity of the resource. And finally, the resource is recaptured using the identifying marker.

OwnedResource is the Key to Getting the Same Resource Later

Usually, a limited number of resources are possible choices at an activity. If this is the case then a simple IF-THEN statement can bu used to determine which resource was actually captured. The following is an example using three possible resources in getting the same resource later:

Get Resource1 OR Resource2 OR Resource3

IF OwnedResource( ) = Resource1 THEN

    {

     a_Resource_Marker = 1

     }

ELSE IF OwnedResource( ) = Resource2 THEN

    {

     a_Resource_Marker = 2

     }

ELSE

    {

     a_Resource_Marker = 3

     }

Attributes Allow Marking an Entity with the Resource Used

New entity attributes can be created by the user. Attributes are similar to variables, but it’s values are unique for each entity. This means that if an attribute is set on an entity then that unique value can be tested at a later point in the model. In the example above a new attribute, a_Reouces_Marker was used to track which resource was selected in the first activity.

Use Action Logic to Get the Same Resource Later

Now, at a later point in the model, action logic can be used test the entity attribute value (a_Resource_Marker) and select the appropriate resource. An example is shown below:

If a_Resource_Marker = 1 THEN

    {

    Get Resource1

     }

ELSE If a_Resource_Marker = 2 THEN

    {

    Get Resource2

     }

ELSE

    {

    Get Resource3

     }

Getting the same resource later is simple and powerful technique. As always, if you have any questions please contact support if immediate help. Or, simply add a comment and we will get back to you.

2 Comments

  1. Joseph A. Patterson February 28, 2015 at 3:19 PM - Reply

    After reading your post, I believe I can fly. Capturing the same resource again is not difficult. Thanks for this information.

  2. Herb Mulford February 26, 2015 at 10:19 AM - Reply

    I chose ProcessModel due to good run time performance . Thanks for this post. It helped me a lot and was very informative.

Leave a Reply