All Collections
Offline
Use the Windows Task Scheduler to Run Schedule Jobs for Clinicea Desktop Version
Use the Windows Task Scheduler to Run Schedule Jobs for Clinicea Desktop Version
Shome avatar
Written by Shome
Updated over a week ago

You may need to frequently come across Clients who will be using the ‘Clinicea Offline Version’ but requires features which always are triggered via Schedule Jobs. Reminder SMS for Clinics is one such example which requires Schedule Jobs. So, in order to use the reminder SMS feature for Clinicea or other such services which requires Schedule Jobs to execute such tasks, it is necessary that while setting up the Offline Version for the Client, you set up Clinicea’s Schedule Jobs as a part of Windows Task Scheduler in the SERVER Computer.

Let us see how to do this.

Start the Task Scheduler

Log in with a user that as administrator permissions. Then, go to Control Panel -> Administrative Tools -> Task Scheduler.

Create a scheduled task for the app

In the Task Scheduler window, click or tap “Create Basic Task” in the Actions column on the right. The “Create Basic Task” window is shown, where you create tasks for your Windows computer.

Now in “Create Basic Task”, Enter the Name as ‘Clinicea‘ and a suitable ‘Description‘ and Click on ‘Next‘.

Here, select ‘Daily‘ as Clinicea Jobs needs to run Daily and Click on ‘Next‘. Now, set the date and the time from when you want to start running the scheduler.

Now in the ‘Actions‘ Tab, select ‘Start a Program‘.

Click on ‘Next‘, and here we need to add the path for running our web service. In ‘Program/Script‘, give the path for Chrome as the schedule jobs will be executed via web service calls which needs chrome to Run.

Now , in add Arguments add the path for the schedule tasks. In an Offline machine, the Clinicea runs in the IIS Server. So, we need to supply the path where the scheduled jobs are stored. The Path is as follows:

Now Click ‘Next‘ and Check in the Checkbox as shown below and Click on ‘Finish‘.

Now the ‘Properties‘ Window will open up. From that tab, click on ‘Trigger‘ and set the options there as shown in the screenshot below.

If you are scheduling the task on a laptop, tablet or some other device with a battery, go to the ‘Conditions’ tab in the Create Task window. There, look for the Power section and uncheck the setting that says “Start the task only if the computer is on AC power.” This ensures that the task runs at all times, no matter whether your laptop or tablet is using the battery or it is connected to a power plug.

The task is created with the name and settings that you have provided.

Test if the task runs well

In ‘Task Scheduler’, double-click (or double-tap) on the ‘Task Scheduler Library’, in the column on the left. In the middle of the app window, you see all the tasks that exist. Find the one you created and click or tap on its name. Then, in the Actions panel on the right, click or tap ‘Run’. The task should run and launch the file that you selected. Create some test data in Clinicea. When you are manually running the task, make sure that the ‘Notification Time’ in Clinicea is set same as the Start Time of the Task to get the desired results for SMS and Emails.

We have successfully created a Windows Task for Clinicea Schedule Jobs. Enjoy!

Did this answer your question?