Task scheduler to automate ReadSoft Invoices services

Available starting with Kofax ReadSoft Invoices 6.1.

Task scheduler allows you to create a scheduler to start or stop service jobs created for ReadSoft Invoices services such as Interpret or Transfer. You can schedule the time between which you want the services to run. Also, task scheduler can start a service automatically when the service is down or stopped unexpectedly during the schedule.

Note To configure task scheduler for PM services, make sure you install TaskScheduler from Nuget.

You can configure task scheduler using the PM service flags available in the INVOICES.PMService.exe.config file.

Follow these steps to configure a schedule for a service:

  1. On the computer where the ReadSoft Invoices services are configured, go to C:\Program Files (x86)\ReadSoft\INVOICES\Bin\PMService\Server.
  2. Open INVOICES.PMService.exe.config.
  3. To enable task scheduler, change the value of TaskSchedulerPMserviceStartStop flag to 1.
  4. Enter the service start time in INVOICES.PMService.exeStart flag
  5. Under PM service start flag, add flags for each service for which you want to schedule a start time.

    syntax - <service_name>Start.

  6. Enter the service stop time in INVOICES.PMService.exeStop flag.
  7. Under PM service stop flag, add stop flags for each service for which start time has been configured.

    syntax - <service_name>Stop.

  8. Save the file and close. The task scheduler is configured.

    Note Example

    Example

    For service INVOICESPMServiceD, the start and stop flags are as follows:

    
    INVOICESPMServiceDStart
    INVOICESPMServiceDStop

Auto restart service

Follow these steps to set the service restart time to restart the stopped service:

  1. On the computer where the ReadSoft Invoices services are configured, go to Control Panel > System & Security > Administrative Tools.

    The list of tools is displayed.

  2. Double click Services. The list of services available is displayed.
  3. Go to INVOICES PMService.
  4. Right click INVOICES PMService and select Properties.

    The INVOICES PMService (Local Computer) dialog box is displayed.

  5. Select the Recovery tab.
  6. In the Restart service after text box, enter after how many minutes you want the service to restart once stopped.
  7. Select Apply and then select OK.

    The service is configured to restart automatically.