<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="scheduler_job_documentation.xsl"?>
<description xmlns="http://www.sos-berlin.com/schema/scheduler_job_documentation_v1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sos-berlin.com/schema/scheduler_job_documentation_v1.0 http://www.sos-berlin.com/schema/scheduler_job_documentation_v1.0.xsd">

  <job name  = "JobSampleHelloWorld"
       title = "Sample job for interpreter usage"
       order = "no">
    <script  language = "perlscript"/>
  </job>

  <releases>
    <release id="1.0" created="2006-02-20" modified="2006-02-21">
      <title>Version 1.0</title>
      <author name="Andreas Püschel" email="andreas.pueschel@sos-berlin.com"/>
      <note language="de"><div xmlns="http://www.w3.org/1999/xhtml">Initiale Auslieferung</div></note>
      <note language="en"><div xmlns="http://www.w3.org/1999/xhtml">initial release</div></note>
    </release>
  </releases>

  <configuration />

  <documentation language="de">
    <div xmlns="http://www.w3.org/1999/xhtml">
      Der Job zeigt wie ein einfaches "hello world" mit der Script-Schnittstelle des Job Schedulers erzeugt wird.
      <br/><br/>
      Für Perl kann das Script wie folgt implementiert werden:
      <br/>
        <pre>
        &lt;script language="PerlScript">
              &lt;![CDATA[
                print("hello world");
              ]]&gt;
        &lt;/script&gt;
        </pre>
      <br/>
      JavaScript unterstützt kein direktes Schreiben in die Standardausgabe, hier kann es lauten:
      <br/>
        <pre>
        &lt;script language="JavaScript">
              &lt;![CDATA[
                spooler_log.info("hello world");
              ]]&gt;
        &lt;/script&gt;
        </pre>
      <br/>
      Sie können sogar Java Code scripten, der zur Laufzeit vom Job Scheduler kompiliert wird, wenn
      ein JDK im Pfad gefunden wird:
      <br/>
        <pre>
        &lt;script language="Java" java_class="HelloWorld">
              &lt;![CDATA[
            import sos.spooler.Job_impl;

            public class HelloWorld extends Job_impl {

                public boolean spooler_process() {
                    System.out.println("hello world");
                    return false;
                }
             }
              ]]&gt;
        &lt;/script&gt;
        </pre>
      <br/>
      VBScript unterstützt kein direktes Schreiben in die Standardausgabe, hier kann es lauten:
      <br/>
        <pre>
        &lt;script language="VBScript">
              &lt;![CDATA[
                spooler_log.info("hello world")
              ]]&gt;
        &lt;/script&gt;
      </pre>
    </div>
  </documentation>

  <documentation language="en">
    <div xmlns="http://www.w3.org/1999/xhtml">
      This job shows how a simple "hello world" is echoed with the Job Scheduler script interface.
      <br/><br/>
      For Perl you would implement the script as follows:
      <br/>
      <pre>
        &lt;script language="PerlScript">
              &lt;![CDATA[
                print("hello world");
              ]]&gt;
        &lt;/script&gt;
      </pre>
      <br/>
      JavaScript does not support output to be echoed, so this could be:
      <br/>
      <pre>
        &lt;script language="JavaScript">
              &lt;![CDATA[
                spooler_log.info("hello world");
              ]]&gt;
        &lt;/script&gt;
      </pre>
      <br/>
      You could even script Java code that is compiled at run time by the Job Scheduler if a JDK is found in your path:
      <br/>
      <pre>
        &lt;script language="Java" java_class="HelloWorld">
              &lt;![CDATA[
            import sos.spooler.Job_impl;

            public class HelloWorld extends Job_impl {

                public boolean spooler_process() {
                    System.out.println("hello world");
                    return false;
                }
             }
              ]]&gt;
        &lt;/script&gt;
      </pre>
      <br/>
      VBScript does not support direct output, so this could be:
      <br/>
      <pre>
        &lt;script language="VBScript">
              &lt;![CDATA[
                spooler_log.info("hello world")
              ]]&gt;
        &lt;/script&gt;
      </pre>
    </div>
  </documentation>
</description>
