RunningProcess

This activity assists the user in retrieving information about the currently running
applications and processes, either for the current user or the entire system.

Technical Reference

 

INPUT

UserorSystem: This parameter indicates to choose the specific option from the drop-down,

User: It retrieves the process list running against the user logged in credentials.

System: It retrieves the process list running against the system credentials.

 

 

 

 

 

 

MISC

Display Name: Displays the name of the activity. The activity name can be customized which will help in troubleshooting.

SkipOnError: Specify the Boolean value as “True or False.”
True: Continues to execute the workflow irrespective of any error thrown.
False: Stops the workflow if it throws any error.
None: If the option is specified as blank, by default the activity will perform the “False” action.

Version: It specifies the version of the FS automation feature in use

 

 

OUTPUT

ProcessList: It helps to view the output of the activity as the processes running against the system or user specified in “Datatable” format.

 

This field returns the output in “Datatable” datatype.

Result: It helps to view the execution state of the activity. It returns the values in Boolean format.
True: It indicates that the activity has been executed successfully without any error.
False: It indicates that the activity has been unsuccessful due to some unexceptional error thrown.

* Represents mandatory Fields to execute the workflow

Here’s an example of how the “RunningProcess” activity works –

In the following example, I am going to automate using the “RunningProcess”
activity to retrieve the current process list that are running against my user
credentials.  

Steps to execute the bot:

1.       Open an existing solution or create a new solution.

2.       Drag and drop the “RunningProcess” activity to the workflow and set it as
start node.

3.       Navigating to the “UserorSystem” in the properties to chose the option
as “User”.

4.       Now, moving to the “ProcessList” in the output of the properties to declare
a variable to view the output.

a.       There are two ways to create a variable-

b.       Method 1 – Click on the "ProcessList" property within the "RunningProcess"
activity and enter the variable name. In this case, we are using " RP." Then,
press "Ctrl+Q," which is a shortcut key to create a variable.

c.       Method 2 - Click on the Variables pane and enter the name " RP." Then,
in the "Variable Types" column, select "Browse for Types" from the dropdown
menu.

d.       The .Net window for data types will appear on the screen, enter the type
name as “System.Data.Datatable” and then click on “OK” button.

5.       Now, placing the “TableViewer” activity below to the Running process
activity.

a.       Navigate to the properties and enter the required details to view the
table.

6.       Execute the workflow.

Below is the sample output of the activity.

The bot executes the activity and gives the output of the current
running process by the user in a table.