Example of calculating employee bonus from queue data
- Dernière mise à jour2025/09/29
Build an automation that reads data from the queue and calculates the employee bonus. Test and run the automation from Bot editor on developer's device using actual queue data.
Understand how to use the Run with queue option from Bot editor. For more information, see Test and run WLM automation on developer device.
Prerequisites
- Before you start building the automation, create an Excel file with the
below data in your local folder.
Employee ID Employee Name Salary Performance Rating Bonus E001 Alice Johnson 55000 4.5 0.1 E002 Rajesh Kumar 72000 3.8 0.08 E003 Maria Lopez 48000 4.2 0.09 E004 David Smith 95000 4.9 0.12 E005 Anita Sharma 60000 3.5 0.07 - Create a queue as Employee-Bonus-Queue. For more details, see Create standard queues and Example of configuring a queue.
- Create a number variable, n_Final_Bonus.
- Ensure that the role assigned to your Bot Creator user is added as a queue consumer (role). It ensures the availability of queues for selection while using Run with queue option to test and run WLM automation.