How do I determine the Resource being used?

When an alternate resource is captured by an entity and a decision or activity time depends on which resource was captured, the OwnedResource function may be used to determine which resource was captured.

Suggested Technique

1. In the action logic of the activity or routing, use the OwnedResource() function without a number between the parentheses to test the name of the most recently captured resource.

2. Execute the appropriate action based on the name returned by the OwnedResource() function.

 Alternatively, you may use the GET statement with an OR separating the alternate resources in the Action logic to capture the resources, and then use the OwnedResource() function to determine the captured resource. Connected resources will always be captured before resources specified in a GET statement. On the other hand, resource connections that free a resource occur after any Action logic for the activity.

Example: A receptionist usually answers the phone, but if the receptionist is busy, the filing clerk will answer the phone. If the filing clerk answers the phone, the call lasts about 7 minutes, otherwise it takes about 5 minutes.

Determining the Resource Being Used

TO DO: In the Action logic of the Answer Phone activity, enter:

IF OwnedResource() = Clerk THEN TIME(7 min)
ELSE TIME(5 min)

 To learn more about the OwnedResource() function, see OwnedResource(n).

Was this article helpful?

Related Articles