Resources (Object)

The collection of resources related to the current activity.

Methods


Func Add( iResource) As
This method add the specified item in the current list
Parameters:
iItem
The item to add
Returns:
oitem The item
Func AddByAssignmentType( iResource, iAssignmentType) As
This method Assigns/Adds the specified resource with the specified assignment type
Parameters:
iResource
The resource to be assigned
iAssignmentType
Type of the Assignment (Resource to the Process). Only the following four types are supported at the moment: Process_Uses_Resource, Process_Runs_On_Resource, Process_Attaches_Resource, Process_Detaches_Resource
Returns:
oResource The resource when Add succeeds, unchanged otherwise
Func Item( iIndex) As
This method returns the idl object Resource for the specified resource identifier.
Parameters:
iIndex
The resource identifier
Returns:
oResource The idl resource
Func RemoveByAssignmentType( iResource, iAssignmentType) As
This method Unassigns/Removes the specified resource if the assignement exists and is of the given type
Parameters:
iResource
The resource to be Unassigned
iAssignmentType
Type of the Assignment (Resource to the Process) to be removed
Returns:
oResource The resource when Remove succeeds, unchanged otherwise