Sub Activity – Process

Process controls and monitors automated processes and jobs, utilizing activities to manage execution and handle stop requests.

The Process category has the following sub activity:

Stop Process Requested: This activity is used to check whether a user has stopped a running job using the stop option in the Bot Manager.

Input Properties:

  • Stop Process: if checked, this activity will stop the process based on the status of the BMT Job.

Output Properties:

  • Result: The result of the activity, represented as a boolean variable, is determined by the status of the BMT Job.

Demo Project using Job Activities

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Steps:

Hello World Project: 

  1. Drag and drop the message box 
  2. Display the message “Hello World” in the message box. 
  3. Publish the project 
  4. From the Bot Manager, create a job for the Hello World Project by adding it as a process.  
  5. Create a separate project in the Genie Studio to use the Bot Manager activities. 
  6. Drag and drop Start Job activity. 
  7. Provide the necessary details in the input properties of the start job activity. 
  8. Execute the activity by clicking on the Play button in Genie Studio. 
  9. Disable the Start Job Activity and drag and drop the Get Job Details activity. 
  10. Configure the input properties of Get Job Details activity to access the job details of the Hello World project and store the result in an array list. 
  11. Use the For Each activity to loop through the array list. 
  12. Display each detail of the job in a Message Box. 
Activities Used“Get Job Details, Start Job, For Each, Message Box”
Video Linkhttps://www.youtube.com/watch?v=jWaNs4ERAhE&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=39&t=1s

Sub Activity – Job

This section includes a collection of activities that aid in managing and controlling job activities within workflows. The users can track and monitor the execution of these jobs via the Bot Manager.

The Job category has the following sub activities:

Get Current Robot: This activity is used to retrieve the current robot details.

Output Properties:

  • JobDetails: Gets the Job details.

Get Current Job: This activity is used to retrieve the Current Job Details.

Output Properties:

  • RobotDetails: Gets the Current Robot Details.

Get Job Details: This activity enables the user to retrieve a list of jobs from an indicated Bot Manager queue, according to multiple filters.

Input Properties:

  • Filter: Query for filtering job details.

Output Properties:

  • Job Details: The list of items from the specified job that are to be retrieved.

Start Job: This activity enables you to start a job in the BOT Manager on a specified Robot.

Input Properties:

  • RobotName: Name of the robot used to execute the process specified in ProcessName.
  • ProcessName: Name of the process that is to be started.
  • Arguments: A list of parameters that are passed to the invoked workflow at runtime.

Stop Job: This activity enables the user to stop a job in the BOT Manager.

Input Properties:

  • Job: Specify the job to be killed or stopped.
  • Stop Type: Choose the type of stop.

Sub Activity – Calendar

Calendar provides access to and management of calendar-related information and events, allowing retrieval of holiday data and integration into workflows.

The Calendar category has the following sub activity:

Get Holidays: This activity retrieves the Calendar from the Bot Manager based on the Calendar Name.

Input Properties:

  • Calender Name: Enter the calender name.
  • Holidays: Gets the Calendar holidays as collection.

Demo Project using XML Activities

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Steps:

  1. First Sequence: 
    • Create a sample XML file within Genie Studio. 
    • Read the XML file and assign its contents to a string variable. 
    • Convert the string variable into an XML Document using the “XML Deserialize” activity. 
    • Display the values of the different properties from the XML file in a message box. 
  2. Second Sequence: 
    • Create a sample XML using the “XML Creator” activity. 
    • Replace the value of a specific property of the XML with a variable. 
    • Convert the XML Document into a string variable using the “XML Serialize” activity. 
    • Write the string variable to a text file. 
Activities Used“Read Text File, XML Deserialize, XML Creator, XML Serialize, Write Text File, Message Box”
Video Link https://www.youtube.com/watch?v=c7dVxZKhWbQ&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=22

Sub Activity – XML 

It is designed to handle XML data efficiently within automation workflows. These activities facilitate the creation, processing, and conversion of XML data.

The XML category has the following sub activities:

XML Creator: This activity returns XMLObject that encodes objects in a string.

Input Properties:

  • Options: Creates a string in XML format. It allows mapping or assigning values to the corresponding node in the string.

Output Properties:

  • XML Document: The resulting XML object that is stored in an object variable.

XML Deserialize: This activity accepts a string in XML format and converts it into an XML Object.

Input Properties:

  • XMLString: The XML String that you want to convert to an object.

Output Properties:

  • XML Document: The resultant XML object that is stored in an object variable.

XML Serialize: This activity converts the input Object into a string in XML format.

Input Properties:

  • Object: The XML object you want to serialize.

Output Properties:

  • XMLString: The resultant XML string is stored.

Demo Project using String Activities (Part 2)

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Steps:

  1. Create a sample string variable and assign a default text value. 
  2. Use the Split String activity to split the string by a separator. (The output needs to be assigned to an Array List variable.) 
  3. Use the String Replace activity to replace a specific character in the string variable with a different character. 
  4. Use the Substring activity to extract a part of the string by providing the starting index and the length of the substring. 
  5. Use the To Lowercase activity to convert the entire string variable to lowercase letters. 
  6. Use the To Uppercase activity to convert the entire string variable to uppercase letters. 
  7. Use the Trim activity to remove any spaces from the left or right side of the text in the string variable. 
Activities Used“Split String, String Replace, To LowerCase, To UpperCase, Trim, Message Box”
Video Link https://www.youtube.com/watch?v=rGyj8DUQMk0&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=23

Demo Project using String Activities (Part 1)

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Steps:

  1. Extract Text Activity: 
    • Create a string variable and assign a text value in the default value field. 
    • Drag and drop the “Extract Text” activity. 
    • Use the different extraction options available in the Extract Text activity to extract specific parts of the text from the string variable. 
  2. Format DateTime Activity:  
    • Drag and drop the Format DateTime activity. 
    • Provide any date in the value field of the input properties using the “datetime.parse” to the DateTime format. 
    • Select a specific date format from the available options in the “Format Field” dropdown. 
    • Display the formatted DateTime in a message box. 
Activities Used“Extract Text, Format DateTime, Message Box”
Video Linkhttps://www.youtube.com/watch?v=7SnnIacXTV4&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=19

Sub Activity – String 

These activities help to automate tasks that involve text processing and its operations range from simple tasks such as manipulating, searching, replacing, modifying to more advanced tasks such as regular expression matching and formatting text data.

The String category has the following sub activities:

Create Secure String: This activity helps encrypt any text into a secure String.

Input Properties:

  • InputText: Enter the text to encrypt.

Output Properties:

  • Result: Variable that stores the encrypted text.

Extract Text: This activity extracts the text from the given source string and returns it as a string variable.

Input Properties:

  • Source String: Enter the source string.

Options Properties:

  • “BEFORE” and “AFTER” could be interchanged.

Output Properties:

  • Result: Variable that stores the resultant string.

Is Regex Match: This activity indicates if the specified regular expression finds a match in the specified input string.

Input Properties:

  • Input: Enter a string value to match the expression
  • Regex: This field displays the current form of the regular expression selected/built and gets updated when the conditions have been changed.
  • RegexOptions: A bitwise combination of the enumeration values that specify options for matching.

Output Properties:

  • IsMatch: A boolean variable that returns true if a match is found, else displays false.

Regex Matches: This activity searches for all occurrences of a regular expression input string and returns all successful matches.

Input Properties:

  • Input: Enter a string value to match the expression
  • Regex: This field displays the current form of the regular expression selected/built and gets updated when the conditions have been changed.
  • RegexOptions: A bitwise combination of the enumeration values that specify options for matching.

Output Properties:

  • Matches: Variable that returns the collection of matches found.

Split String: This activity is used to split a specified string which will be stored as separate elements in an ArrayList list based on the separator provided by the user.

Input Properties:

  • InputString: Enter the InputString.
  • Separators: Enter the character or string that separates the components.
  • RemoveEmptyEnteries: Remove any empty entries in the result.

Output Properties:

  • SubStrings: Variable that stores substring.

String Replace: This activity finds and replaces character(s) in the provided source string.

Input Properties:

  • Source String: Enter the string that needs to be replaced.
  • Build: Input the parameters for the replacement.
  • StartingIndex: Enter the starting index from which the search begins.

Output Properties:

  • String: Variable that stores the resultant string.

String Template: This activity uses a template to create dynamic string content with the parameters that are provided by the users.

Input Properties:

  • Parameters: Input values to the StringTemplate compile Activity
  • Template String: Enter a Liquid template string to generate the resulting interpolated string. Eg: Hello {{ name }}!

Output Properties:

  • String: Variable that stores the resultant string.

Sub String: This activity is used to extract a part of the string by giving the index and length of the string that is to be extracted.

Input Properties:

  • Source String: Enter the source string.
  • StartIndex: Enter the starting index from which the search begins.
  • Length: Enter the length of the string to be extracted.

Output Properties:

  • Result: Variable that stores the resultant string.

To LowerCase: This activity converts the string into lowercase.

Input Properties:

  • Source String: Enter the source string.

Output Properties:

  • Result: Variable that stores the resultant string.

To UpperCase: This activity converts the string into uppercase.

Input Properties:

  • Source String: Enter the source string.

Output Properties:

  • Result: Variable that stores the resultant string.

Trim: This activity is used to trim the left or right sections of the string based on the characters.

Input Properties:

  • Source String: Enter the source string that needs to be trimmed.
  • TrimChars: An array of characters to be removed.
  • TrimLeft: Trims characters on the left.
  • TrimRight: Trims characters on the left.

Output Properties:

  • Result: Variable that stores the resultant string.