What is the actual use of Session Variables?

engg.gaurav89

New Member
Session variables are used to expose data item to control room. And we can provide inputs through the control room. But what is the practical use of Session Variable as BOTs are designed for an Unattended purpose. End user will not interfere in between.
 

VJR

Well-Known Member
Hi engg.gaurav89,

For instance you have a process that runs 24x7 or even throughout the day. This process is designed to read all the emails of Outlook and when it encounters a specific email subject it will move the email to another Outlook folder called as 'Processed'.

Lets say you have a Session variable called as GenerateReport which is of Flag type (True/False).
Initially the variable is set to False so this variable will have no impact.
Suddenly at 5 pm in the evening your Project Management asks you to give a report of all the emails that were processed by the bot. You will simply go to the control room and change the session variable to True.

In your diagram you will be having a Decision stage which will have a logic to take the desired path if it encounters a True in this variable. If the variable is True then the diagram will take the 'Yes' path and produce an Excel spreadsheet with columns like Email Sender, Receiver, Subject, Date Time, etc. and place this Excel file into a designated folder or even email it to you.
You then share the file to your management and turn the variable back to False.
Hope this makes it clear.
 
Last edited:
Top