If Process Running Action

Description

Executes the steps immediately following this step if the specified process is in the specified state. Otherwise, step execution follows the next Else step or End If step. Wildcards can be used to specify the process to look for. Optionally populates a dataset with the process and window data for a running process.

Used to check if a process is running and take conditional action depending on the result.

Declaration

<AMIF PROCESS="text" PROCESSID="text" RESULTDATASET="text">  </AMIF>

Examples

<AMIF ACTION="end" PROCESS="C:\Program Files\Internet Explorer\iexplore.exe" RESULTDATASET="ProcessDataset">

     <AMSPEAK ENGINE="automatic">Process is not running</AMSPEAK>

<AMELSE />

     <AMSPEAK ENGINE="automatic">Process is running</AMSPEAK>

</AMIF>

General Tab Parameters

If Process is running/Process is not running: Specifies the type of check to be performed.

  • Process is running: the IF block will be executed if the process is running.

  • Process is not running: the IF block will be executed if the process is not running.

Text, Optional, Default: open
MARKUP: ACTION="end"

Use process name: Specifies the executable of the process that Automated Workflow should look for. Partial matches are allowed (either the full path or the EXE name only may be specified).

Text, Optional
MARKUP:
a) PROCESS="c:\foldername\iexplore.exe"
b) PROCESS="iexplore.exe"

Use process ID: Specifies the process ID for the process that Automated Workflow should look for.

Text, Optional
MARKUP: PROCESSID="3648"

Create and populate dataset: Specifies the name of a dataset to be created and populated with process data for a running process. In addition to the standard dataset fields, the dataset will contain the following:

  • ProcessName: the path and file name of the process's .exe file

  • ProcessID: the ID of the process

  • WindowTitle: the title of the process's main window

  • WindowClass: the class of the process's main window

  • WindowHandlle: the handle of the process's main window

Text, Optional
MARKUP: RESULTDATASET="DatasetName"