Using the Process Analyst > Process Analyst for Developers > Automation Model > CommandExecuted [Event]

CommandExecuted [Event]

This event is raised when a command is executed.

Defined As



[in] Contains the unique identifier of the command that was executed.


[in] Indicates the Process Analyst object which raised the event. (Cicode only)


Each toolbar button is associated with a command so when they are pressed this event will be raised with the unique identifier of that command. You can then use that identifier to determine which command was executed.

By using this event you can implement your own custom commands.

See Also

UpdateCommand [Event], ICommandSystem.Execute [Method]

Calling Syntax

Assumes you have a Process Analyst on a page with an event class defined as myPage_AN35.


Sub myPage_AN35_CommandExecuted(commandId As String)
End Sub


FUNCTION myPage_AN35_CommandExecuted(OBJECT processAnalyst, STRING commandId)