Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Appendix A TIBCO Hawk MicroAgent Methods : TIBCO Hawk Microagent Methods

TIBCO Hawk Microagent Methods
This section describes the TIBCO Hawk microagent methods for the TIBCO ActiveMatrix BusinessWorks process engine.
ConfigureActivityTracing
Description:
Enables or disables tracing for specified activity. Activities can be specified by process definition and activity name or by class name. The class name is the Java implementation class' name.
Method Arguments:
The following table describes the arguments of this microagent method:
Name of the process definition for which you wish to configure tracing. Specifying * signifies all process definitions. If ActivityClass is specified, this argument is optional.
Name of the activity for which you wish to configure tracing. Specifying * signifies all activities. If ActivityClass is specified, this argument is optional.
Specify true if you wish to enable tracing, false if you wish to disable tracing.
Output:
None
ConfigureAllTracing
Description:
Controls tracing for all activities and process starters.
Method Arguments:
The following table describes the arguments of this microagent method:
If true, tracing is enabled for all activities. If false, tracing will be disabled for all activities.
If true, tracing is enabled for all process starters. If false, tracing will be disabled for all process starters.
If true, tracing is enabled for all user-defined roles. If false, tracing will be disabled for all user-defined roles.
Output:
None
ConfigureProcessStarterTracing
Description:
Enables or disables tracing for specified process starter. Process starters can be specified by name or class name. The class name is the Java implementation class' name.
Method Arguments:
The following table describes the arguments of this microagent method:
Name of the process starter for which you wish to configure tracing. Specifying * signifies all process starters. If StarterClass is specified, this argument is optional.
Specify true if you wish to enable tracing, false if you wish to disable tracing.
Output:
None
ConfigureRole
Description:
Enables or disables tracing for the specified role.
Method Arguments:
The following table describes the arguments of this microagent method:
Specify true if you wish to enable tracing, false if you wish to disable tracing.
Output:
None
ConfigureUserDefinedTracing
Description:
Enables or disables tracing for the specified user-defined role.
Method Arguments:
The following table describes the arguments of this microagent method:
Specify true if you wish to enable tracing, false if you wish to disable tracing.
Output:
None
DelayedStopApplicationInstance
Description:
Instructs all process starters to stop further job creation but stay active. The engine shuts down after all process instances have completed or the specified maximum delay has been reached. After shutdown, any remaining checkpoint files are preserved and the engine's operating system process exits.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
None
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:
Output:
The following table describes the output of this microagent method:
GetExecInfo
Description:
Retrieves the process engine execution information.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
getHostInformation
Description:
Returns the value of the specified property on the host machine on which the process engine is running.
Method Arguments:
he following table describes the arguments of this microagent method:
Output:
The following table describes the output of this microagent method:
GetMemoryUsage
Description:
Retrieves information about the process engine’s memory usage.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
GetProcessCount
Description:
Returns the total number of running process instances.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
GetProcessDefinitions
Description:
Retrieves information about process definitions.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
GetProcesses
Description:
Retrieves information about active process instances. If arguments are specified, information for process instances that match the specified arguments is returned.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the output of this microagent method:
GetProcessesExceptions
Description:
Retrieves error information reported by the specified process.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the output of this microagent method:
GetProcessStarters
Description:
Retrieves information about either active or inactive process starters. The information is cumulative. A single process starter name represents all executions of that process starter.
Method Arguments:
The following table describes the arguments of this microagent method:
Specify Active to retrieve information about process starters with the ACTIVE or READY status. Specify Inactive to retrieve information about process starters with the INACTIVE status.
Output:
The following table describes the output of this microagent method:
GetRecoverableProcesses
Description:
Retrieves the process instances that can be recovered. See Managing Recoverable Process Instances for more information about recoverable process instances. Use the returned process instance ID in the RestartRecoverableProcess or RemoveRecoverableProcess commands.
Method Arguments:
None.
Output:
The following table describes the output of this microagent method:
getRvCmConfig
Description:
Get information about all the TIBCO Rendezvous certified message transports.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
GetStaticActivityInfo
Description:
Retrieves design time activity information for all activities in a given process definition.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the output of this microagent method:
GetStatsCollectorDestination
Description:
Retrieves the file name of the file where activity statistics are currently being collected. See Storing Process Instance and Activity Statistics for more information about collecting activity statistics.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
GetStatus
Description:
Retrieves basic status information about the engine.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
GetTransactionStatistics
Description:
Retrieves statistics for XA transactions initiated using the TIBCO XA Transaction Manager or Arjuna Transaction Manager. Statistics are totals collected for the lifetime of the process engine. See TIBCO ActiveMatrix BusinessWorks Process Design Guidefor more information about XA transactions.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
IsActivityTracingEnabled
Description:
Reports whether tracing is enabled or disabled for the specified activity. If tracing is enabled for all activities by way of a wildcard (*), this method returns false because tracing is not enabled for the activity specifically.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the arguments of this microagent method:
true if tracing is enabled for the specified activity, false if tracing is disabled.
IsAllTracingEnabled
Description:
Reports whether tracing is enabled or disabled for all activities and process starters. True is returned when tracing is enabled using a wildcard (*). If tracing is enabled for all activities and/or process starters by specifying a tracing parameter individually for each one, this method will return false.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
true when tracing is enabled for all activities. false when tracing is disabled for all activities.
true when tracing is enabled for all process starters. false when tracing is disabled for all process starters.
IsProcessStarterTracingEnabled
Description:
Reports whether tracing is enabled or disabled for the specified process starter. If tracing is enabled for all process starters by way of a wildcard (*), this method returns false because tracing is not enabled for the process starter specifically.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the arguments of this microagent method:
true if tracing is enabled for the specified process starter, false if tracing is disabled.
IsRoleEnabled
Description:
Reports whether tracing is enabled or disabled for the specified role. If tracing is enabled for all roles by way of a wildcard (*), this method returns false because tracing is not enabled for the role specifically.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the arguments of this microagent method:
true if tracing is enabled for the specified role, false if tracing is disabled.
KillAllProcesses
Description:
Kills all process instances. All process instances are stopped immediately and are permanently removed from the engine.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
None
KillProcess
Description:
Kills the specified process instance. The process instance is stopped immediately and permanently removed from the engine.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
None
ListAllRoles
Description:
Returns a list of all roles, along with the current state (enabled or disabled) of each role.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
ListDbConnections
Description:
Returns a list of all open and idle JDBC connections that have been opened by a single instance of ActiveMatrix BusinessWorks engine.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
The statistics for idle connections are available for the time set by the engine property Engine.DBConnection.idleTimeout. By default, this property is set to 5 minutes.
ListInflightTransactions
Description:
Retrieves information about the currently in-flight XA transactions being processed by the TIBCO XA Transaction Manager or Arjuna Transaction Manager. In-flight transactions are all transactions that have not completed or rolled back. See TIBCO ActiveMatrix BusinessWorks Process Design Guidefor more information about XA transactions.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
Please refer to http://java.sun.com/products/jta/javadocs-1.0.1/index.html for more information about XID.
ListInstrumentProperties
Description:
Retrieves the current settings for all Instrumentation properties.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
<ProcessDefinitionName>=<CurrentValue>
ListTraceProperties
Description:
Returns the names and current values for all engine trace properties.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
<TracingPropertyName>=<CurrentValue>
ListUserDefinedRoles
Description:
Returns a list of user-defined roles, along with the current state (enabled or disabled) of each role.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
OnProcessActivity
Description:
This method is called when a process executes an activity, and it is only called when instrumentation is on.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
OnProcessAdded
Description:
This method is called whenever a process instance is added, and it is only called if instrumentation is on.
Method Arguments:
None
Output:
The following table describes the arguments of this microagent method:
OnProcessRemoved
Description:
This method is called whenever a process instance is removed, and it is only called if instrumentation is on.
Method Arguments:
None
Output:
The following table describes the arguments of this microagent method:
OnProcessStatusChanged
Description:
This method is called when a process is suspended or resumed, and it is only called when instrumentation on.
Method Arguments:
None
Output:
The following table describes the output of this microagent method:
PreRegisterListener
Description:
Pre-register a listener for certified delivery.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
None
RemoveRecoverableProcess
Description:
Removes the specified recoverable process instance from the list of potential recoverable processes. After executing this method, the checkpoint data of the specified process instance is removed and the process instance will no longer be able to be recovered. Obtain the process ID of the recoverable process with the GetRecoverableProcesses method.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
None
ResetActivityStats
Description:
Resets the min and max time calculations for each activity in the specified process definition. This method is for internal use only and should not be invoked.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
None
ResetProcessDefinitionStats
Description:
Resets the minimum, maximum, and average time statistics gathered for process instances. See GetProcessDefinitions for more information about process instance statistics.
Method Arguments:
The following table describes the argument of this microagent method:
Output:
None.
RestartRecoverableProcess
Description:
Restarts the specified recoverable process. Obtain the process ID of the recoverable process with the GetRecoverableProcesses method.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
None
ResumeAll
Description:
Resumes all process starters and/or processes.
Method Arguments:
The following table describes the arguments of this microagent method:
AllProcessStarters — resumes all process starters.
AllProcesses — resumes all processes.
AllProcessStartersAndProcesses — resumes all processes and process starters.
Output:
None
ResumeProcess
Description:
Resumes the specified process instance.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the output of this microagent method:
ResumeProcessStarter
Description:
Resumes the specified process starter.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the output of this microagent method:
reviewLedger
Description:
Returns information retrieved from the certified message ledger for the given CM name and subject. If no values are supplied for the method arguments, all ledgers are returned.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the output of this microagent method:
SetInstrumentProperty
Description:
Sets the Instrumentation property for the specified process definition to a given value. The OnProcessActivity and OnProcessStateChanged methods will be called for the specified processes definition names.
For example, use property name "*" and value "true" to enable those asynchronous methods for all process definitions. The property name does not need to begin with "Instrumentation.", but if it does, the leading "Instrumentation." will be ignored.
See Enabling TIBCO Hawk for more information about the Instrumentation property.
Method Arguments:
The following table describes the arguments of this microagent method:
Name of the process definition for which you wish to alter the Instrumentation property. Specify * for this argument if you wish to enable or disable instrumentation for all process definitions.
true if you wish to enable instrumentation for the given process definition. false if you wish to disable instrumentation for the given process definition.
Output:
None
SetTraceProperty
Description:
Sets the specified engine tracing property to the specified value. While you can set properties with this method, ConfigureActivityTracing, ConfigureProcessStarterTracing, and ConfigureUserDefinedTracing are simpler to use for setting trace properties.
See Trace Properties for more information about tracing properties.
Method Arguments:
The following table describes the arguments of this microagent method:
true if you wish to enable the property. false if you wish to disable the property.
Output:
None
StartStatsCollection
Description:
Enables collection of statistics for each executed activity. See Storing Process Instance and Activity Statistics for more information about collecting activity statistics.
Method Arguments:
None
Output:
None
stopApplicationInstance
Description:
Shuts down the process engine immediately. All checkpoint files are preserved and the engine's operating system process exits.
Method Arguments:
None
Output:
None
StopStatsCollection
Description:
Disables collection of statistics for each executed activity. See Storing Process Instance and Activity Statistics for more information about collecting activity statistics.
Method Arguments:
None
Output:
None
SuspendAll
Description:
Suspends all process starters and/or processes.
Method Arguments:
The following table describes the arguments of this microagent method:
AllProcessStarters — suspends all process starters.
AllProcesses — suspends all processes.
AllProcessStartersAndProcesses — suspends all processes and process starters.
Output:
None
SuspendProcess
Description:
Suspends the specified process instance.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the output of this microagent method:
SuspendProcessStarter
Description:
Suspends the specified process starter.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
The following table describes the output of this microagent method:
unRegisterListener
Description:
Unregister a certified delivery listener.
Method Arguments:
The following table describes the arguments of this microagent method:
Output:
None
_onUnsolicitedMsg
Description:
Subscribing to this method returns any unsolicited notifications that are sent from the managed application corresponding to this microagent. Invoking this method returns the last such message that was received (if any).
Method Arguments:
None

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved