...
The polling in above graphic is provided by a file order source setting in the job chain.
Example Job to Create a Result Set.
This job is creating a result set. A A result set contain the names of all files which are selected as specified by the filter criteria. The content of the result set is returned as a parameter, but can be written to a file, too.
Parameters, which are useful for creating a result-set, are:
...
Code Block |
---|
<job order='no' >
<params>
<param name="[[#file|file]]" value="." />
<param name="[[#file_spec|file_spec]]" value="" />
<param name="[[#gracious|gracious]]" value="false" />
<param name="[[#max_file_age|max_file_age]]" value="0" />
<param name="[[#min_file_age|min_file_age]]" value="0" />
<param name="[[#max_file_size|max_file_size]]" value="-1" />
<param name="[[#min_file_size|min_file_size]]" value="-1" />
<param name="[[#skip_first_files|skip_first_files]]" value="0" />
<param name="[[#skip_last_files|skip_last_files]]" value="0" />
<param name="[[#count_files|count_files]]" value="false" />
<param name="[[#create_order|create_order]]" value="false" />
<param name="[[#create_orders_for_all_files|create_orders_for_all_files]]" value="false" />
<param name="[[#order_jobchain_name|order_jobchain_name]]" value="" />
<param name="[[#next_state|next_state]]" value="" />
<param name="[[#on_empty_result_set|on_empty_result_set]]" value="empty" />
<param name="[[#expected_size_of_result_set|expected_size_of_result_set]]" value="0" />
<param name="[[#raise_error_if_result_set_is|raise_error_if_result_set_is]]" value="0" />
<param name="[[#result_list_file|result_list_file]]" value="empty" />
</params>
<script language="java" java_class="sos.scheduler.file.JobSchedulerExistsFile" />
</job>
|
This job can be used standalone, as a single job, or as an order driven job in a jobchain as a jobchain node. Parameters are respectively accepted as job- or as order-parameters.
A job can process multiple parameters that are analysed analyzed when the job starts. Parameters are defined in the configuration of the job or of the order. Parameters can also be submitted by API methods, as well. Parameters are optional or mandatory and may contain default values.
This job is creating a result set. A result set contain the names of all files which are selected as specified by the filter criteria. The content of the result set is returned as a parameter, but can be written to a file, too.
Parameters, which are useful for creating a result-set, are
...
Name | Title | Mandatory | Default |
---|---|---|---|
File or Folder to watch for | true | . | |
Regular Expression for filename filtering | false |
| |
Specify error message tolerance | false | false | |
Maximum age of a file | false | 0 | |
Minimum age of a file | false | 0 | |
Maximum size of a file | false | -1 | |
Minimum size of one or multiple files | false | -1 | |
Number of files to remove from the top of the result-set | false | 0 | |
Number of files to remove from the bottom of the result-set | false | 0 | |
Return the size of resultset | false | false | |
Activate file-order creation | false | false | |
Create a file-order for every file in the result-list | false | false | |
create_orders_for_new_files | Create a file-order for every new file in the result-list | false | false |
param_name_file_path | false | --- | |
The name of the jobchain which belongs to the order | false |
| |
The first node to execute in a jobchain | false |
| |
merge_order_parameter | Merge actual order parameter into new created order | false | false |
Set next node on empty result set | false | empty | |
Number of expected hits in result-list | false | 0 | |
Raise error on expected size of result-set | false | 0 | |
Name of the result-list file | false | empty | |
check_steady_state_of_files | Check the completeness of a file (steady state) | false | false |
steady_state_count | Maximum Number of Checkpoints | false | 30 |
check_steady_state_interval | Temporal distance between checkpoints | false | 1 |
Anchor | ||||
---|---|---|---|---|
|
...
File or Folder to watch for
Checked file or directory
Supports masks for substitution in the file name and directory name with format strings that are enclosed by [and]
. The following format strings are supported:
...