Batch Scripts Batch Scripts

Batch scripts are a way to let the Scheduler execute a series of algorithms. Each step in the batch will be executed with the set of specified parameters.

Batch scripts must be present in the configuration's web folder. The filename of the batch XML must start with batch and end with .xml, for example, batch-morning-run.xml. A list of available batch scripts are presented to the user if the following conditions hold true:

  • The preference General -> Batch Mode -> Algorithms contains BatchScript as single entry
  • The preference General -> Batch Mode -> Apply in UI is set
  • The user clicks on the Automatic Planning button on the Scheduler's toolbar
Batch Script Sample

<?xml version="1.0" encoding="UTF-8" ?> 

<Batch name="Customer ABC"> 
  <!-- 
  Algorithm name="Refresh"/
  --> 
  <Algorithm name="Unplan" /> 
  <Algorithm name="Fixed"> 
    <Property name="required" value="true" /> 
    <Property name="sort" value="latest" /> 
  </Algorithm> 
  <Algorithm name="Fixed"> 
    <Property name="sort" value="latest" /> 
  </Algorithm> 
  <Algorithm name="Response"> 
   <Property name="max" value="120" /> 
   <Property name="sort" value="latest" /> 
   <Property name="try3Opt" value="true" /> 
  </Algorithm> 
  <Algorithm name="Response"> 
    <Property name="max" value="511" /> 
    <Property name="sort" value="latest" /> 
    <Property name="required" value="true" /> 
  </Algorithm> 
  <Algorithm name="Response"> 
    <Property name="max" value="511" /> 
    <Property name="sort" value="latest" /> 
  </Algorithm> 
  <Algorithm name="SwoonMix"> 
    <Property name="sort" value="latest" /> 
  </Algorithm> 
  <Algorithm name="OptimizeTrips" /> 
  <Algorithm name="Replan" /> 
  <Algorithm name="OptimizeTrips" /> 
  <Algorithm name="Replan" /> 
  <Algorithm name="OptimizeTrips" /> 
</Batch>