GetActivities
Description:
Retrieves information about the activities that have been executed for a given process definition since the engine was started. The activity information is cumulative. A single activity name represents all executions of that activity. The min/max fields can be reset with the ResetActivityStats method.
The ExecutionTime computation for the Call Process Activity includes the sum of the execution times for all activities in the called process, not just the execution time for the call process activity itself.
Method Arguments:
The following table describes the arguments of this microagent method:
Argument Name |
Description |
ProcessDefinition |
Name of the process definition. |
Output:
The following table describes the output of this microagent method:
Column Name |
Description |
ProcessDefName |
Name of the process definition. |
Name |
Name of the activity. |
ActivityClass |
Name of the class that implements the activity. |
ExecutionCount |
Number of times the activity has been executed. |
ElapsedTime |
Total clock time (in milliseconds) used by all executions of this activity. This includes waiting time for Sleep, Call Process, and Wait For... activities. |
ExecutionTime |
Total clock time (in milliseconds) used by all executions of this activity. This does not include waiting time for Sleep, Call Process, and Wait For... activities. |
ErrorCount |
Total number of executions of the activity that have returned an error. |
LastReturnCode |
Status code returned by most recent execution of this activity. This can be either OK, DEAD, or ERROR. |
Tracing |
True if tracing is enabled for this activity, false if tracing is disabled. |
MinElapsedTime |
Elapsed clock time (in milliseconds) of the activity execution that has completed in the shortest amount of elapsed time. |
MaxElapsedTime |
Elapsed clock time (in milliseconds) of the activity execution that has completed in the longest amount of elapsed time. |
MinExecutionTime |
Execution time (in milliseconds) of the activity execution that has completed in the shortest amount of execution time. |
MaxExecutionTime |
Execution time (in milliseconds) of the activity execution that has completed in the longest amount of execution time. |
MostRecentElapsedTime |
Elapsed clock time (in milliseconds) of the most recently completed activity execution. |
MostRecentExecutionTime |
Execution time (in milliseconds) of the most recently completed activity execution. |
TimeSinceLastUpdate |
Time (in milliseconds) since the statistics have been updated. |
CalledProcessDefs |
A comma-separated list of names of process definitions called by this activity. |
ExecutionCountSinceReset |
Number of activity executions that have completed since the last reset of the statistics. |