Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: 'Deprecation' Notice added
Info
titleThis Job has been deprecated

The JobSchedulerFTPReceive Job has been deprecated with the release of JobScheduler version 1.10.

We strongly recommend that users of the JobScheduler version 1.10 and newer use the JADE and JADE4DMZ JITL Jobs for their file transfer requirements.

Display feature availability
StartingFromRelease1.10

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

...

Code Block
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/job_chain.xml job_chain]<job_chain  orders_recoverable = "yes">
    <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/job_chain_node.xml job<job_chain_node] state       = "receive"
                      job         = "ftpReceive"
                      next_state  = "check"
                      error_state = "error"/>
 
    <job_chain_node   state       = "check"
                      job         = "checkSuccessFiles"
                      next_state  = "process"
                      error_state = "error"/>
 
    <job_chain_node   state       = "process"
                      job         = "processSuccessFiles"
                      next_state  = "success"
                      error_state = "error"/>
 
    <job_chain_node   state       = "success"/>
    <job_chain_node   state       = "error"/>
 </job_chain>
 

...

Code Block
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/job.xml job]<job order="yes" stop_on_error="no">
    <description>
       <include file="jobs/[http://www.sos-berlin.com/download/scheduler/jobs/JobSchedulerFTPReceive.xml JobSchedulerFTPReceive.xml]"/>
    </description>
    <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/script.xml script]<script language="java" java_class="sos.scheduler.ftp.JobSchedulerFTPReceive"/>
 </job>

...

Code Block
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/job.xml job]<job order="yes" stop_on_error="no">
    <description>
       <include file="jobs/[http://www.sos-berlin.com/download/scheduler/jobs/JobSchedulerExistsFile.xml JobSchedulerExistsFile.xml]"/>
    </description>
    <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/script.xml script]<script language="java" java_class="sos.scheduler.file.JobSchedulerExistsFile"/>
 </job>

...

Code Block
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/job.xml job]<job order="yes" stop_on_error="no">
    <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/script.xml script]<script language="shell">
        <![CDATA[
 # here you can do somethimg with the result set
 echo "FTP RESULT FILES = $SCHEDULER_PARAM_SCHEDULER_SOSFILEOPERATIONS_RESULTSET"
        ]]>
    </script>
 </job>

...

Code Block
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/order.xml order]><order>
    <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/params.xml params]><params>
 
       &lt;<!-- Parameter of the ftpReceive job --&gt;>
        <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/param.xml param]<param   name="ftp_host"          value="ServerA"/>
       <param   name="ftp_port"          value="22"/>
       <param   name="ftp_protocol"      value="sftp"/>
       <param   name="ftp_user"          value="my_user"/>
       <param   name="ftp_password"      value="my_pass"/>
       <param   name="ssh_auth_method"   value="password"/>
       <param   name="ftp_remote_dir"    value="/ftp_out"/>
       <param   name="ftp_local_dir"     value="/home/my_user/ftp_in"/>
       <param   name="ftp_file_spec"     value=".*"/>
       <span style="color:green"><param<param   name="ftp_atomic_suffix" value="~"/></span>>
 
       &lt;<!-- Parameter of the fileExists job --&gt;>
       <param   name="file"              value="/home/my_user/ftp_in"/>
       <span style="color:green"><param <param   name="file_spec"         value="[^~]$"/></span>>
 
    </params>
    <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/run_time.xml run_time]<run_time/>
 </order>

NOTICE:

The parameter ftp_atomic_suffix is set with "~".

...

The file_spec parameter of the check looks for all files without a "~" at the end.