GeolinQ
Support Portal

XML Script

GeolinQ XML script automates manual administration procedures by defining operations in a XML script. The operations defined in the XML script are executed in a task on the task server. GeolinQ XML script supports the following operations:

Operation Description
CreateTenant Create a new tenant on the root tenant.
UpdateTenant Update a tenant on the root tenant with operations.
UpdateAllTenants Update all child tenants on the root tenant with operations.
DeleteTenant Deletes a tenant on the root tenant
ImportLicense Imports a license file into a tenant
ImportDatasource Imports a datasource a on a tenant
UpdateDatasource Updates a datasource with operations a on a tenant
DeleteDatasource Removes a datasource a on a tenant
DeleteAllDatasources Removes all datasources from a on a tenant
ImportMultiDataset Import multiple datasets into a datasource
ExportMultiDataset Export multiple datasets from a datasource

Create a XML script

The XML script is created by adding operations in a XML document with the following structure:

<?xml version="1.0" encoding="UTF-8"?>
<Operations>
  <CreateTenant>
    ...
  </CreateaTenant>
  <UpdateDatasource>
    ...
  </UpdateDatasource>
  ...
</Operations>

The operations in the script are defined between Operations elements of the script. The XML syntax is specified for each operations in the manual. Operations are performed in a context. The operation CreateTenant should be executed in the context of the root tenant. The operation ImportMultiDataset should be executed in the context of a datasource.

The XML script is included in a ZIP file with all additional files required to execute the script.

Execute a XML script in a task

The script is executed in a task on the task server. The ZIP file with the script is uploaded in GeolinQ to the task and the script is executed in a task on a tenant. The task will fork when the script switches to a child tenant to ensure that all tenant specific operations are executed in task belonging to the appropriate tenant.

1. Select Tasks from the main menu

2. Select Add Task from task toolbar

3. Select as task type XML Script

Now the XML Script Task form group appears.

4. Select the ZIP file contains the XML scripts at XML Script ZIP file

5. Select the XML Script file from the XML Script File Name drop down box

6. Select Submit to submit the task

Now the task to excute the XML script is scheduled and the task will start as soon as the task server picks up the task. Check the task log to for any failures in the script.