WorkflowModelManager - getNextByExecutedOrder(Object haRecord)

Retrieves the history activity that executed just after to the one provided in the argument. The next status is based on the activity index reflecting the nearest prior activity in time and not necessarily the nearest next wf_activity the provided activity transitioned to. To get the nearest next activity that transitioned to this haRecord passed in, use getNextByTransitionOrder( haRecord ). Note: In the process of assembling the execution order array, blanks are left in the array where history objects have been deleted. This is done to ensure the index in the array and the activity_index of the object remain in synch. For that reason, all objects coming out of the execution order array should be tested for nil() and not assumed to be the previous record based on activity_index or array index value alone.

The next status is based on the activity index reflecting the nearest prior activity in time and not necessarily the nearest next wf_activity the provided activity transitioned to. To get the nearest next activity that transitioned to this haRecord passed in, use getNextByTransitionOrder( haRecord ).
Note: In the process of assembling the execution order array, blanks are left in the array where history objects have been deleted. This is done to ensure the index in the array and the activity_index of the object remain in synch. For that reason, all objects coming out of the execution order array should be tested for nil() and not assumed to be the previous record based on activity_index or array index value alone.
Table 1. Parameters
Name Type Description
haRecord Object ActivityHistoryRecord JavaScript object.
Table 2. Returns
TypeDescription
ObjectThe ActivityHistoryRecord JavaScript object requested.