Use Logi Scheduler

The Logi Scheduler provides the ability to execute reports and other activities on a scheduled basis. Developers can build Logi applications that take advantage of Scheduler features; this topic provides guidance in the use of these features.

Quick and Easy Report Scheduling

Developers or administrators who just want to run Logi reports or tasks on a scheduled basis can do so by:

  1. Installing the Logi Scheduler,
  2. Downloading the Scheduler Console sample application (in the General category) from DevNet,
  3. Registering the sample application with your web server via Logi Studio,
  4. And running it to create and manage Scheduler tasks.

The remainder of this topic discusses how to configure the Scheduler, and how to build user- and administrative-scheduling applications.  

Developer Overview

Developers who have not already done so are encouraged to read our introductory topic Introduction to Logi Scheduler in order to get a basic understanding of the Scheduler product and its installation before proceeding. From a development perspective, the Logi Scheduler consists of three parts:

  1. An autonomous service that automatically runs scheduled reports and other Logi application activities without direct user interaction (much like the Windows Task Scheduler).
  2. A database of scheduled tasks which is read and updated by the Scheduler service.
  3. Special elements that let developers build definitions for creating and managing the scheduled task database. These may be used to create administrative tools for system admins, or they may be incorporated into reports so that end-users can do their own runtime scheduling. The Schedule element, for example, is a "super-element" with built-in user input controls for presenting scheduled task data.

The first half of this topic focuses on Part 3, describing techniques for writing definitions that interact with the Scheduler and its database. The rest of it discusses some of the operational details of configuring and managing the Scheduler service.

Back to top


Communicating with the Scheduler

The first step in using the Scheduler with a Logi application is to create a connection to the Scheduler service or daemon.

The Connection.Scheduler element is used, in a Logi application's _Settings definition, to create this connection. The ID of this element is then used in other elements to connect them to the service.

The Scheduler has its own communication settings and Connection.Scheduler must be configured to match them in order for a connection to be made.

 For enhanced security, any Logi application that contains Process Tasks that will be called by a Logi Scheduler instance in a different Logi application needs to have a properly configured Connection.Scheduler element connecting it to the scheduler.

Default values are provided that allow communication "out of the box", but in case you wish to change them, the Connection.Scheduler attributes are: 



ID(Required) Specifies a unique value identifying this connection; used by other elements to access the connection.
Pass Key (Required) Specifies the pass key, a password-like string used to secure access to the Scheduler service. Must match the PassKey value set in the Scheduler service's _Settings.lgx file. Tokens are supported in this attribute.
Default: myKey
Port Specifies the TCP/IP port used to gain access to the Scheduler service. Must match the Port value set in the Scheduler service's _Settings.lgx file. Tokens are supported in this attribute.
Default: 56982 The Logi Scheduler supports multiple instances and a comma-delimited list of port values can be entered if multiple instances are being used. The order of the port numbers in the list must correspond with the order of names in the Server Name attribute.
Server Name Specifies the name or IP address (IPv4) of the server computer where the Scheduler service is installed.
Tokens are supported in this attribute.
Default: localhost The Logi Scheduler supports multiple instances and a comma-delimited list of server names or IP addresses can be entered if multiple instances are being used. The order of the names in the list must correspond with the order of port numbers in the Port attribute.

The Scheduler's Settings File and Logs

In most cases, communication with the Logi Scheduler will work fine without any further configuration, using default values. However, details of the settings file are presented here in case custom configurations are desired.

The Scheduler's settings are stored in its own settings file. In a Windows environment, using default installation options, this is:

(.NET)  C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service\_Settings.lgx
   (Java)  C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service Java\_Settings.lgx    

In a Linux/UNIX environment, the Scheduler folders and files are installed in a folder selected by the developer, and the _Settings.lgx file can be found there.

    <RemoteApi Port="56982" PassKey="myKey" />
    <WebRequest Timeout="20"
ConcurrencyLimit="5" Stagger="1" LoggingLevel="WARNING" />

The _Settings.lgx file's default contents, shown above, contain a RemoteApi tag with Port and PassKey values, which need to match the Connection.Scheduler element attribute values discussed earlier.

In addition, the file can contain these WebRequest values, which can be altered manually if necessary:

  • Timeout - Specifies the number of minutes allowed for a task to complete before the Scheduler abandons it. Default value: 20 minutes.
  • ConcurrencyLimit - Specifies the maximum number of concurrently running requests/tasks allowed. When the limit is reached, additional scheduled tasks must wait for one of the other running tasks to complete before it can start. Default value: 5 tasks.
  • Stagger -  Specifies the number of seconds to wait before starting the next request/task. Default value: 1 second.
  • LoggingLevel - Specifies the logging level for events, using these values: ERROR, WARNING, INFO, DEBUG, or NONE.

    The Scheduler Service for .NET logs operational events to files in (if default installation location was used):

    C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service\Log

    The Scheduler Service for Java logs events to files in <schedulerInstallFolder>/Log/LogiScheduler.log

    The INFO logging level value provides a moderate amount of detail about Scheduler events in the logs, while the DEBUG value records every web request made, including creating a task, querying the task list, getting a task, updating a task, deleting a task, and many details about running tasks. This value should not be used casually, as it will generate many, many log entries. Default value: WARNING.

  • PollingFrequency - (not shown) Specifies the number of seconds that elapse before the database is polled for a task to run. This should normally not be modified. Default value: 60 seconds.
  • MaxFieldLength - (not shown) Specifies the maximum length of the ProcessXML value, which is 4,000 characters by default. You may need to increase this limit if you're scheduling tasks with a very large number of, or very long, request parameters. Note - If you provide a longer value here, you must also manually alter the associated column in your Scheduler database table to match.

 You may need to stop and restart the Logi Info Scheduler service or daemon after saving changes to this settings file.

The settings file also includes an explanatory comments section. This section includes example tags for configuring connections to database servers. These are used if you want to store your schedule task data in a networked SQL database rather than in the standard, file-based database. Information about configuring these connection can be found in section Scheduled Task Data Storage Options.

Once you've added and configured a Connection.Scheduler element to your Logi application, you're ready to begin working with the other Scheduler elements.

Back to top


Getting Data with DataLayer.Scheduler

A special datalayer element, DataLayer.Scheduler, is used to retrieve data from the Scheduler database. The query it uses can be restricted by providing default values for some of the element's attributes. When examining or editing a Scheduler task with User Input elements, this datalayer is typically used with Local Data so that the data retrieved is widely available to other elements in the definition, using @Local tokens. It can also be used beneath a Data Table to display all Scheduler tasks.

DataLayer.Scheduler has the following attributes:



Connection ID (Required) Specifies the element ID of a Connection.Scheduler element in the _Settings definition. Connects the datalayer to the Scheduler database.
IDSpecifies a unique element ID.
Include Task Result Error Message
Specifies whether task error messages will be included in the data. If set to True, the datalayer will include an ErrorMsg column containing error message text from any failed Scheduler tasks. The default value is False.
Scheduler Application ID Specifies the first 20 characters of the name of a Logi application or any other categorizing text developers want to use. If not blank, acts as a Condition Filter and limits the datalayer query results to Scheduler tasks with matching values for this column. Max: 20 characters.
Scheduler Custom Column 1
Scheduler Custom Column 2
Specifies a value of any kind with a maximum length of 1,000 characters. If not blank, used to limit the datalayer query results to Scheduler tasks that match this column's value.
Scheduler RunAs Specifies a User Name value to be used when a Scheduler task is executed and Logi Security is enabled. The name is provided to Logi Security in order to ensure that reports are run with appropriate security control. Leave blank if Logi Security is not enabled. Max: 50 characters.
Scheduler Task ID Specifies the unique ID of a Scheduler task (these IDs are created and returned when new Scheduler tasks are created). If not blank, used to limit the datalayer query results to Scheduler tasks for the specified task ID.
Scheduler Task Name Specifies a unique name given to a Scheduler task, generally for easier task identification. If not blank, used to limit the datalayer query results to Scheduler tasks for the specified task name. Max: 50 characters.

  When DataLayer.Scheduler runs, it retrieves the following data columns for each stored Scheduler task:



TaskID Unique Scheduler task ID.
ApplicationIDLogi application name.
TaskName Descriptive name for Scheduler task.
CustomColumn1 Value selected by developer./
CustomColumn2 Value selected by developer.
IsDisabled"True" or "False" - Indicates state of this Scheduler task; disabled tasks are not executed.
ScheduleXML XML data containing date-time-interval specific information. Example:
<Schedule Type="Once" StartDate="2013-02-05" EndDate="2013-02-27" FirstRunTime="13:48" /> 
ProcessXML XML data containing Process-specific information. Example:
<ProcessTask ProcessFile="myProcess.Run" TaskID="RunSalesReport" URL="http://localhost/myApplication" PhysicalPath="C:\Projects\myApplication"><LinkParams inpCategory="3" /></ProcessTask>
TimeCreated ISO format timestamp for creation of this Scheduler task.
Example: 2013-02-03T16:37:18-05:00
TimeModified ISO format timestamp for modification of this Scheduler task.
Example: 2013-02-03T16:37:18-05:00
TimeLastRun ISO format timestamp for this Scheduler task's last run.
Example: 2013-02-03T16:37:18-05:00
TimeNextRun ISO format timestamp for this Scheduler task's next scheduled run.
Example: 2013-02-03T16:37:18-05:00
RunAs The User Name to pass to Logi Security when the Scheduler task is executed. Ignored when the Schedule task runs if Logi Security is not enabled. For more information, see the section Running Scheduler Tasks with Logi Security.
WasSuccessfulLastRun"True" or "False" - Indicates if last run of this Scheduler task was successful (i.e. occurred without errors).
TaskResults Fully-qualified path and name of task results file on the server. Will not exist if tasks have never been run. Examples:
(.NET) C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service\Log\
(Java) C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service Java\Log\
IsRunning"True" or "False" - Indicates if this Scheduler task is currently running.
If the datalayer's Include Task Result Error Message attribute is set to True, this column will include the error message text for any failed tasks.
ScheduleDescription Plain language description of date-time-interval information for this task:
Example: At 1:48 PM on 02/05/2013
ProcessUrlURL for the web application in which the Process definition file named in the next field resides. Example: http://localhost/myWebApp
ProcessFileName of the Process definition file, without a file extension, that contains process task to be executed when the Scheduler task runs. Do not include the .lgx file extension.
ProcessTaskIDName of the process task, within the process definition named in the previous attribute, that will be executed when the Scheduler task runs.
ProcessParams List of parameters to be passed to the process task that will be executed when the Scheduler task runs. Example: <LinkParams CategoryID="4" />

In order to edit an existing Scheduler task, it's the developer's responsibility for retrieve the data for the task and then provide it to the Schedule element, described below.

Back to top


The Schedule Element

The Schedule element makes it easy to create and edit Scheduler Tasks. Because it's a super-element, adding it to a report definition automatically creates a user interface for a Scheduler task.  

As shown above, the user interface presented by the Schedule element allows the user to select criteria for the Scheduler task. It's dynamic and will present more or fewer controls as required. For example, in the image above right, when a Monthly schedule is selected, the element expands vertically to display the months (a horizontal expansion, to the right, instead is also an option).

The Schedule element is built as an HTML table and has typical table attributes, such as Layout, Width, and Width Scale, used to control its size. The Schedule element also uses the following other attributes:



Format Specifies the format of the Start and End dates in the UI. Other format choices are shown but have no effect. Default: System Short Date format
Schedule Intervals A comma-separated list of the interval modes that will be displayed in the UI. This can be used to limit the type of Schedules tasks that can be created and saved. Valid choices are Once, Daily, Weekly, Monthly, Minutes, and Hourly. Default: All modes
Schedule Orientation Specifies how the UI expands when certain interval modes are selected. Horizontal places the configuration options for the selected interval mode to the right of the interval, start date, end date and start time inputs. Vertical (the default) places the configuration options below them.
ScheduleXMLA string of XML data that represents the date-time-interval data for a Scheduler task. This can be typed into this attribute's value as a "hard-coded" string or placed there using tokens such as @Local. This provides the mechanism for reading a schedule task, using Local Data and DataLayer.Scheduler, from the Scheduler database and placing the retrieved data into the Schedule element for manipulation by the user.
Show Days Of The Week Specifies that a checklist of days-of-the-week will be displayed when the Weekly interval mode is selected. Default: True
Show Months Specifies that a checklist of months will be displayed when the Monthly interval mode is selected. Default: True.
Show Process Parameters Specifies that additional controls, used to add any number of name-value pairs of parameters used to run a Scheduler task, will be displayed. This is primarily used for administrative applications. Default: False.
Show Schedule XML Specifies that, as options are selected in the UI and the XML data is generated, it will be displayed to the developer below the element. This is intended to be used for debug purposes only. Default: False
Template Modifier File Specifies the name of a template modifier file that can be used to alter the user interface. Can be used, for example, to change language- and culture-specific control Captions.

The element's UI does not display the ProcessXML value, a string of XML data that includes the task name, application URL, process definition file name, and process task ID, nor does it display the Task Name and Run As values. These values are available, however, from the Scheduler database as columns for retrieval using DataLayer.Scheduler and, if desired, the developer can create a UI to display and update them outside of the Schedule element interface.

As mentioned above, the Schedule element has a Show Schedule XML attribute which can be turned on during development to assist in understanding scheduling intervals:  

The image above shows what the display looks like when the Show Schedule XML attribute is set to True. If you change the interval selections, the ScheduleXML display will be immediately updated with new values.

Parameters that are to be passed to the process task at runtime can also be stored in the Scheduler task. See the section that follows about working with process parameters.

Using CSS with the Schedule Element

Many presentation aspects of the Schedule element can be customized through the use of CSS classes. The default style sheet used by the element is <application folder>\rdTemplate\rdSchedule\rdScheduleStyle.css

Classes in this default style sheet can be overridden by copying them into, and altering them in, your own application style sheet. Do not modify the default style sheet.

For example, this class adds additional space between the UI's labels and input controls:

.rdScheduleColumnGap {
  width: 15px;  /* add more space between labels and controls */

and this one adds a background color to the element:

.rdSchedule TABLE {
    border-collapse: collapse;
    border-width: 0px;
    background-color: AliceBlue; /* add BG color so element is obvious */

Note that HTML tables are used within the Scheduler super-element, and so you can count on working with table-related HMTL tags to make some CSS changes.

Creating and Editing Scheduler Tasks

Developers need to create Process definition tasks to create and edit the Scheduler task data that, typically, has been collected using the Schedule element.

The Procedure.Scheduler Create Task and Procedure.Scheduler Update Task elements are used for this purpose and have identical attributes, with the exception that the Scheduler Update Task element also includes a Scheduler Task ID attribute. They have the same attributes as the Schedule element, which was discussed on the previous page.

These two elements have an additional attribute: Scheduler Session Variables, which let your enumerate, in a comma-separated list, the Session variables that should be passed to the scheduled task when it's executed.

Both of these elements are used in Process tasks that might, for example, be called from a report definition using a "Create a New Scheduled Task" or an "Edit a Scheduled Task" link on a report page.

They require Target.Process child elements and use them in an unusual fashion. Instead of identifying a destination for program flow to be redirected to, as most Target-type elements do, these child elements' attributes are used instead to supply the Scheduler database with the Process definition file name and Process task name for the Scheduler task being created or updated. Typically these are in the form of Request tokens passed from the calling report definition.  

As shown in the example Process definition above, a Procedure.Create Scheduler Task element ("CreateTask") has been added to a Process task. Beneath it, a Target.Process element is used to identify the Process definition file and Process task that will be "called" by the Scheduler. A definition using Procedure.Update Scheduler Task looks very similar.

When a new Scheduler task is created, its Task ID is returned and can be accessed using a procedure token. In the example shown above, it would be available as: @Procedure.CreateTask.TaskID~   (remember that tokens are case-sensitive).

Back to top

Working with Process Parameters

Parameters, in the format of name-value pairs, can be stored with a Scheduler task and passed to the target Process task when the Scheduler task runs. The Schedule element includes an user input control set that it displays for entering and editing these parameters. Its appearance in the UI is controlled by the element's Show Process Parameters attribute.

As shown above, the Schedule element's interface can be used to add a number of parameters at runtime. As the parameters are entered, they're assembled into an XML string and placed into a hidden input control with the ID rdProcessParams_<Schedule Element ID>.

Saving the Parameters

When a Process task is called to save the task data, the XML string of parameters is passed to it as a request variable. The elements used to store Scheduler data, Procedure.Scheduler Create Task and Procedure.Scheduler Update Task, will automatically look for and use this request variable and store the parameters with the Scheduler task.

Retrieving the Parameters

We need to reverse the previous process to retrieve the stored parameters and load them into the Schedule element:

The example shown above is of a definition that will allow users to edit stored Scheduler tasks. A DataLayer.Scheduler, a child of Local Data, is used to retrieve data for the desired Scheduler task. Then a Default Request Parameters element is used with a Local token to create a request variable named rdProcessParams_<Schedule Element ID> with the value of the ProcessParams column in the datalayer. This will automatically load any stored parameters into the Schedule element interface, so that they can be edited.

Back to top

Running and Deleting Scheduler Tasks

When the Scheduler runs one of its scheduled tasks, it calls a task in a Process definition:

The example shown above is of a task that runs a report and saves it as an HTML file. First, any older version of the file needs to be deleted, then a Procedure.Save HTML element is used to save the desired report as a file on the web server. After that users could presumably browse it or further procedure tasks could distribute it as email, etc. Finally, the task needs to end with some kind of Response element (although its target report will never be visible to anyone because the Scheduler runs tasks in their own session). So, at the correct time, the Scheduler would simply call the RunMyReport task to get the job done.

Two other elements, Procedure.Scheduler Run Task and Procedure.Scheduler Delete Task, can be used to immediately run Scheduler tasks, and to delete them. These elements only require the connection ID of the Connection.Scheduler element and a TaskID.

For instance, you may wish to give your users the option to run a report immediately, instead of waiting for the scheduled time. This is done by creating a Process task that tells the Scheduler to run the desired Scheduler task right now.

As shown above, this is done in a Process task using the Procedure.Scheduler Run Task element. Its attributes identify an existing Scheduler task by ID.

Running Scheduler Tasks with Logi Security

If the Scheduler runs Process tasks within an application that implements Logi Security, there will be no physical user at the time (and no Login page), so what security credentials and rights will the Scheduler use?

The "user" in this case will be the one named in the value of the RunAs column in the Scheduler Task record in the Scheduler's database. Enter a valid user name in this column. If you want dynamic values and, for example, you're using Procedure.Create Scheduler Task to create the task, you can enter the @Function.UserName~ token in the RunAs field. This will automatically set the value to the user name of the currently logged-in user. In that way, the Scheduler will run the Process task using the name of the user who created the scheduled task.

In addition, if you're using a query of some kind to get Security Rights in the _Settings definition, be sure to use that same token, @Function.UserName~, in the query insteadof @Request.rdUserName~. That will ensure that the query will return the correct rights when the Scheduler executes the application.

Deleting a Task

The coding for a Process task for deleting a Scheduler task is identical to that shown above for creating a task, except that it uses a Procedure.Delete Task element.

Back to top

Scheduler Results and Logging

The Scheduler service can write out two types of information about its attempts to run tasks: results files and an operational log.

The results file contains details about the parameters passed to the targeted Process task, time stamps, a final status, and any error message passed through the Logi Server Engine.

Operational logs contain lower-level details about the internal operations of the web service itself and any errors it encounters. Whether there will be any logging and the amount of detail in the log depends on the "logging level" specified in the Scheduler's _Settings.lgx file, as discussed on page one.

In addition, the Scheduler updates a scheduled task's database record after each run attempt. For example, the success or failure of each Scheduler task's last attempted run is written in its database record in the "WasSuccessfulLastRun" column, and the fully-qualified path and filename of the results file generated for each run attempt is written to the "TaskResults" column. This allows easy programmatic access to run attempt results from within reports, using DataLayer.Scheduler, and can also be very helpful in diagnosing problems.

Results Files

As mentioned above, a results file will be created for each run attempt. These are .xml text files and are stored in:     (Windows .NET) C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service\Log
    (Windows Java) C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service Java\Log
    (Linux/UNIX)   <installFolder>/Log

A typical results file name is:  rdSchedulerTask-8-d55cadb8-e243-437d-8587-d190417bdcb2.xml  


The example above shows the XML data in a results file. The contents will vary and may include an error message. These files can be read using a Logi report definition for the purpose of displaying task run status information (this is how the Scheduler Console sample app gets its task status).

 Results files are small, typically about 800 bytes, but they will accumulate over time and may consume excessive server storage if ignored. It's the developer's or server administrator's responsibility to manage these files.

Operational Log

As mentioned above, if the Scheduler's settings file is so configured, operational details will be written to a log. The log is:     (Windows .NET) The Windows Event Log
    (Windows Java) C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service Java\Log\LogiScheduler.log
    (Linux/UNIX)   <installFolder>/Log/LogiScheduler.log

The Java log file, "LogiScheduler.log", is a text file written using the Apache log4j 2 Logging Library and it can be viewed with any generic text reader or log viewer tool.


The Windows Event Log, shown above, can be viewed using the Event Viewer administrative tool, and entries are listed in Applications and Service Logs, under "Logi Info".

Back to top

Scheduled Task Data Storage Options

The Scheduler Service for .NET normally stores its scheduled task data using an embedded instance of VistaDB, a text-based database; for the Scheduler Service for Java, an embedded instance of Apache Derby is used.

The scope of the Scheduler database is significant, as it can contain records for scheduled events for multiple Logi applications on the same web server. It's important to keep this in mind when developing applications using the Scheduler, so that the correct application is identified when creating or modifying stored data.

For developers upgrading from early versions of Logi Info, which used the Windows Task Scheduler to schedule reports, there is no way to import or migrate schedules established in the Windows Task Scheduler into the Logi Scheduler. However, any legacy scheduled events created with the Windows Task Scheduler will still run in later Logi Info versions.

Backing Up the Scheduler Database Files

As mentioned earlier, the default Logi Scheduler configuration stores scheduled event information in embedded database files that can be backed up using any standard file copy or backup methods. The relevant files are:

      (Windows .NET) C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service Java\Schedules.vdb3
    (Windows Java) C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service Java\Schedules\*.*
    (Linux/UNIX)   <installFolder>/Schedules/*.*

These files can even be backed up from within a Logi Process definition, so the Scheduler can schedule and run its own backup. See the Scheduler Console sample application for an example of how this is done.  

Using a Database Server

You have the option of storing Scheduler task data in a networked Microsoft SQL Server, Oracle, MySQL or, in Logi Info v12.5+, PostgreSQL database.

If you choose to use Microsoft SQL Server, for the best performance, we recommend that it be SQL Server 2008 or later, in order to avoid the "8KB page size" issue found in older SQL Server versions. This script will also work with earlier SQL Server versions but you may experience performance degradation if the data in your fields exceeds 8KB and the number of stored Scheduler tasks is large (exceeding 8KB triggers behind-the-scenes row splitting in older SQL Server versions).

In order to use one of these SQL database servers, you must first create the Tasks table in a database of your choice, and then configure the Scheduler's _Settings.lgx file to use it.

In your Scheduler installation folder, four example SQL scripts shown above have been provided to help you create the Tasks table, and they include comments about their use. Modify a copy of the appropriate script and run it on your database server to create the table.

Using a case-sensitive database? The Scheduler service issues a SQL query that uses mixed case: "SELECT TaskID, ProcessXml, RunAs FROM Tasks WHERE..." so be sure to edit the example script you use to create the table to match this case.

    <RemoteApi Port="56982" PassKey="myKey" />
    <WebRequest Timeout="20"
ConcurrencyLimit="5" Stagger="1" LoggingLevel="WARNING" />
    <Connection Type="MySql" ID="MySQL" MySqlServer="YourDatabaseServerName"
       MySqlDatabase="YourDatabase" MySqlUser="YourUser" MySqlPassword="YourPassword" />

To complete the configuration, you must edit the Scheduler service's _Settings.lgx file to include a connection element for the database server you're going to use. The settings file is distributed with example connection elements in its comments section; copy the code for your database server type, paste it into the file as shown above, and configure it.

Stop and restart the Scheduler service to begin sending Scheduled task data to the database.

 If you have concerns about the security of the database credentials stored in the Scheduler's _Settings.lgx file, you can use the Batch Obfuscation Tool (see Using Logi 12 Studio) installed with Logi Studio to obfuscate the file. This is done from a command prompt (Windows only) with a command like this (assumes default Logi Info installation location):

    C:\Program Files\LogiXML IES Dev>LogiObfuscation "C:\Program Files\LogiXML IES Dev\LogiXML Scheduler Service\_Settings.lgx" yourPassword /obfuscate

A similar command, using the /deobfuscate argument, can be used to de-obfuscate the file for maintenance. Note that Logi Analytics has no way to de-obfuscate the file for you if you forget your password.

If you wish to transfer existing data from the default database files into a SQL database, you will find that there are export tools for both VistaDB and Derby, either built-in or available online, that allow you to export data in a variety of formats (CSV, XML, etc.) for subsequent insertion into SQL databases.

Back to top


Implementing Multiple Scheduler Instances

Support for storing task data in networked databases, discussed in the previous section, allows multiple instances of the Scheduler service to run at the same time, on multiple servers, creating a fault-tolerant configuration. If one of the Scheduler instances goes down, the remaining instances will continue to function.

A multi-instance configuration is not supported when using the standard embedded VistaDB (.NET) or Derby (Java) file databases.

Assuming you've already set up data storage on networked database server, the first step in using multiple instances is to install the Scheduler service on multiple servers and configure the Scheduler's _Settings.lgx file as desired. To facilitate this, the Scheduler service can be installed independently of the full Logi Info product.

For the purpose of this discussion, let's assume you've installed the Scheduler on four separate servers, with these settings file values:

    Server Name or IP Address


    Pass Key
















  Note that each of the Scheduler services has been configured to access the same networked database server where the Scheduler task data is stored.  

Now, to engage the instances, in the application's _Settings definition, the Connection.Scheduler element's Port and Server Name attributes must be given a comma-delimited string of the ports and names/addresses, as shown above. Notice that the first port number in the list correlates to the first server name in the list, the second port to the second server, and so on.

Having multiple Scheduler service instances will not result in a task being run more often than its designated frequency.

Back to top

Customizing Scheduler Appearance

The Schedule element uses a "template file" to define certain element properties that are not otherwise available as attributes to the developer for modification. These include language- and culture-specific Caption attributes that you may want to change for locale-based reasons (or you may simply want to change the captions to better suit your application).

The element's Template Modifier File attribute identifies a custom XML file developers can create containing special tags that will override elements in the template file, changing the appearance and some functionality.

More detailed information about template modifier files can be found in Template Modifier Files.


Back to top