Once you create a scheduled task in Wyn Enterprise, the run result of the dashboard is automatically generated at the specified time or interval. You can share the result to the designated email address in the form of a link.
In Wyn Enterprise, a scheduled task can be set to manual, one-time, or scheduled depending on your requirements. For each execution mode, there is a different set of fields that should be specified for a scheduled task to run successfully. For more details, please have a look at the below sections.
Follow the below steps to schedule a task for a dashboard.
Note: For successful task execution, make sure that the dashboard worker service is running in the background, else the scheduled task will fail to execute. To get the status of the dashboard worker service, navigate to the Node Management page on the Admin Portal.
In the Info panel that appears, navigate to the Tasks tab and click the + Add Task button to create a new scheduled task.
Add Task dialog is displayed.
In the Basic Information, enter the following details:
Enter the task description in the DETAILS field.
By default, tasks are manually scheduled in Wyn Enterprise. To create a task that runs at fixed intervals of time, set the Execution field to 'Scheduled'.
From the Choose Template dropdown, select a suitable schedule template that matches your requirements. The list shows both the built-in and custom templates on the server. For more information on how to create a custom schedule template, visit this article. The Start and the End fields pick the default values specified in the chosen schedule template. These default values are unchangeable.
Note: If the chosen template has predefined settings for the email delivery, then its corresponding fields like Email To, Reply To, Subject, and Body are set to default values as specified in the template, and hence can't be modified.
Click the Next button. Here you need to enter the Export Settings.
From the EXPORT FORMAT dropdown list, select the option PDF. Dashboards can be exported in the PDF format.
Note: These PDFs can be rendered using the following browsers: Chrome, Firefox, and Edge. Refer section Setting up Browser for PDF Export for details.
In case your dashboard contains any parameter(s), you need to enter valid parameter value(s) or set the value(s) to default. Else, a message saying 'Invalid Parameters' will be displayed.
If your dashboard has no parameters, then a message 'Dashboard has no parameters' will be displayed.
Enter the parameters and click the Next button.
If the delivery method is not specified in the schedule template, then specify the delivery option from the DELIVERY dropdown list.
If you choose 'Email' as the delivery method, then specify the recipient email address in Email To, the Reply-To email address, the subject line, and the body message for the email.
Note: Use comma(s) to separate multiple email addresses.
You can also control how to share the result on the email by either sending it as a file attachment or providing a link in the email body to download the result. Once the information is specified, the Delivery details will be displayed as below:
Note : If you choose 'Local Storage' as the delivery method, then specify how to store the result on the system server - permanently, until a specific date, or once the defined period expires. If you choose 'File Share' as the delivery method, then specify the file name and the shared location for storing the result.
Click the OK button to save the settings. Note that the newly created task is listed under the Scheduled Tasks section.
Click the Run Task button to execute the scheduled task manually out of the recurring iteration whenever you want, or to check whether a scheduled task runs correctly with the applied settings. From the Task History tab, you can check whether the scheduled task is completed or failed.
Two new setting nodes BrowserForExport and BrowserPathForExport are added in the DashboardWorker node of the wyn.config file. Details for both the setting nodes are as below:
Note: These 2 settings are priority over the old setting: ChromeExecutablePath.
Sample Code
<?xml version="1.0" encoding="utf-8"?> <SystemConfig xmlns:sys="https://extendedxmlserializer.github.io/system" xmlns="clr-namespace:ConfigMigration.Configuration.V60;assembly=ConfigMigration"> <Services> <CotWorker /> <DashboardWorker> <BrowserForExport>chrome</BrowserForExport> <BrowserPathForExport>C:\\Program Files\\Google\Chrome\\Application\\chrome.exe</BrowserPathForExport> </DashboardWoker> <AnalysisDBService /> </Services> </SystemConfig>
<?xml version="1.0" encoding="utf-8"?> <SystemConfig xmlns:sys="https://extendedxmlserializer.github.io/system" xmlns="clr-namespace:ConfigMigration.Configuration.V60;assembly=ConfigMigration"> <Services> <CotWorker /> <DashboardWorker> <BrowserForExport>chrome</BrowserForExport> <BrowserPathForExport>C:\\Program Files (x86)\\Microsoft\\Edge Dev\\Application\\msedge.exe</BrowserPathForExport> </DashboardWoker> <AnalysisDBService /> </Services> </SystemConfig>
<?xml version="1.0" encoding="utf-8"?> <SystemConfig xmlns:sys="https://extendedxmlserializer.github.io/system" xmlns="clr-namespace:ConfigMigration.Configuration.V60;assembly=ConfigMigration"> <Services> <CotWorker /> <DashboardWorker> <BrowserForExport>firefox</BrowserForExport> <BrowserPathForExport>C:\\Program Files\\Firefox Developer Edition\\firefox.exe</BrowserPathForExport> </DashboardWoker> <AnalysisDBService /> </Services> </SystemConfig>
Note : For the Edge browser, you need to update the WynService's permission to the administrator.
To manage a scheduled task, click the Actions button in the Tasks tab. You can use this button to disable, edit, duplicate, or delete a scheduled task.
The below section describes the fields available for the different task execution modes supported in Wyn Enterprise - manual, one-time, and scheduled.
Note: MS Teams does not support deployment on public network due to multi-factor authentication. However, you can use email to send notifications to channels.
For the manual execution mode, you need to specify the following fields in the Info panel.
For the one-time execution mode, you need to specify the following fields in the Info panel.
For the scheduled execution mode, you need to specify the following fields in the Info panel.
Configure Slack Settings Configure MS Teams Settings Slack Integration MS Teams Integration