Process.getActivity()

The method returns an activity with the ID and index.

Availability

IBM® Tivoli® Identity Manager 4.x

IBM Tivoli Identity Manager 5.x

IBM Security Identity Manager 6.x

IBM Security Identity Manager 7.0.

Synopsis
process.getActivity(id, index)
Arguments
id
Activity ID assigned by the workflow designer.
index
Optionally identifies specific activity if there is more than one activity with the ID.
Returns
The associated Activity.
Description
This method returns an activity with the ID and index in the event that there is more than one activity with the ID. This might occur if the activity of the given ID is called multiple times in a loop in the workflow process. If there is no activity with the ID and index, this function returns null. If the optional index is not specified and if there is more than one activity with the ID, the first activity with the ID is returned.
Usage
theFirstActivity = process.getActivity("id1", 3);
theActivityName = theFirstActivity.name;

theSecondActivity = process.getActivity("id2");
theActivityName = theSecondActivity.name;