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


Chapter 5 General Activities Palette : Engine Command

Engine Command
Activity
The Engine Command activity allows you to retrieve statistics and information about process definitions, process instances, and activities in the currently running process engine. This activity also lets you perform engine maintenance, such as suspending and resuming process instances and shutting down the engine.
This activity uses TIBCO Hawk to perform the desired command. A direct call is made to the TIBCO Hawk AMI method (no message is sent).
Before using this activity, the Hawk.Enabled property must be set to either true or local. Also, some commands require memory and processor overhead for gathering statistics or for getting information on the current state of the process. Because of the performance implications, certain instrumentation is disabled by default. You can enable instrumentation for a specific process or for all processes with the Instrumentation property.
See TIBCO ActiveMatrix BusinessWorks Administration for more information about setting custom engine properties.
Configuration
The Configuration tab has the following fields.
The command to execute. See Commands for more information about the commands and their input and output.
Input
See TIBCO ActiveMatrix BusinessWorks Process Design for more information about mapping and transforming input data.
The input for the activity is the following.
<commandInput>
Output
The output for the activity is the following.
<commandOutput>
Commands
The following are the commands that can be executed by this activity and the corresponding input and output for each command.
GetActivityStats
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 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.
 
GetProcessDefinitionStats
Retrieves information about process definitions. I
GetProcessInstanceExceptions
Retrieves error information reported by the specified process.
 
 
GetProcessInstanceInfo
The values of the input elements for this command specify for which process instances you want to retrieve information. If you specify more than one input element, the values are treated as an AND condition. For example, If you specify the process definition name and the minimum duration, information for process instances for the specified process definition that meet the minimum duration time will be returned.
 
GetProcessStarterStats
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.
GetRecoverableProcesses
Retrieves the process instances that can be recovered. See TIBCO ActiveMatrix BusinessWorks Administration for more information about recoverable process instances. Use the returned process ID in the RestartRecoverableProcess or RemoveRecoverableProces commands.
 
KillProcessInstance
Kills the specified process instance. The process instance is stopped immediately and permanently removed from the engine.
ListAllRoles
Returns a list of all roles, along with the current state (enabled or disabled) of each role.
ListUserRoles
Returns a list of all user roles, along with the current state (enabled or disabled) of each role.
RemoveRecoverableProcess
Removes the specified recoverable process instance from the list of potential recoverable processes. After executing this command, 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 GetRecoverableProcesses the command.
RestartRecoverableProcess
Restarts the specified recoverable process instance. Obtain the process ID of the recoverable process with GetRecoverableProcesses the command.
ResumeProcessInstance
Resumes the specified process instance.
ResumeProcessStarter
Resumes the specified process starter.
StartStatsCollector
Enables collection of statistics for each executed activity. See TIBCO ActiveMatrix BusinessWorks Administrationfor more information about collecting activity statistics.
StopStatsCollector
Disables collection of statistics for each executed activity. See TIBCO ActiveMatrix BusinessWorks Administrationfor more information about collecting activity statistics.
Shutdown
Shuts down the process engine. If no input is provided, this command shuts down the engine immediately. You can optionally specify an amount of time to delay the shut down of the engine or you can specify that the engine should wait for any checkpointed process instances to complete before shutting down.
 
SuspendProcessInstance
Suspends the specified process instance.
SuspendProcessStarter
Suspends the specified process starter.
 

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