<?xml version="1.0" encoding="UTF-8"?>
<!--
 | Project:       GeoTIFF Uploader
 | Author:        $Author: stripodi $ (Terradue Srl)
 | Last update:   $Date: 2011-09-02 11:03:06 +0200 (Fri, 02 Sep 2011) $
 | Element:       ify web portal
 | Context:       services/gtu
 | Name:          service.js
 | Version:       1.0.1-3.1.0 (UNKNOWN_BRANCH@r??????; 2014-05-11 02:50:05+0200)
 | Description:   Specific Javascript for gtu. It makes the _size optional 
 |
 | This document is the property of Terradue and contains information directly
 | resulting from knowledge and experience of Terradue.
 | Any changes to this code is forbidden without written consent from Terradue Srl
 |
 | Contact: info@terradue.com
-->
<core>
  <info>
    <description>GeoTIFF Uploader is a processor for Geo data that converts them to GeoTIFF format/extracts metadata
  and uploads to Geoserver via REST APIs</description>
    <context>AUTHOR_ORGANISATION</context>
    <JobType>Local</JobType>
    <Arguments></Arguments>
    <JobDescription></JobDescription>
  </info>
  <config>
    <!-- the jobType "Local" goes into the jobtype table, and tells g-pod where to find the job's template directory (tdir), 
      which will be $JOBNAME/Local -->
    <Local jobType="Local">
      <!-- List each template that contains $#readall() or other variables that must be expanded from user settings on the 
        portal. You should list here your executable templates in every case (and in the Executable block as well). These templates 
        are registered in the jobtemplate table. -->
      <Template>
        <name>Local/params</name>
      </Template>
      <Template>
        <name>../../../utils/ify-job-execute.sh</name>
      </Template>
      <Template>
        <name>../../../utils/Env.sh</name>
      </Template>
      <Template>
        <name>Local/preparation.Pilot.sh</name>
      </Template>
      <Template>
        <name>Local/wrapper.Pilot.sh</name>
      </Template>
      <Template>
        <name>Local/Pilot.sh</name>
      </Template>
      <!-- list each script that must be invoked at OnStart, OnError, or OnEnd (only one per event). OnStart is absolutely 
        essential, otherwise the job will not start. These scripts will be registered in the joboperation table -->
      <Executable>
        <name>../../../utils/ify-job-execute.sh</name>
        <run-as>
          <description>SHELL script</description>
          <env>/bin/sh</env>
          <event>OnStart</event>
        </run-as>
      </Executable>
    </Local>
  </config>
</core>
