Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor corrections to text

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

Description of the JobSchedulerExistsFile Job - check whether a file exists

Checks for the existence of a file, a directory or for specific files inside of a directory. 

...

 Name

Title

Mandatory

Default

file

File or Folder to watch for

true

.

file_spec

Regular Expression for filename filtering

false

 

gracious

Specify error message tolerance

false

false

max_file_age

Maximum age of a file

false

0

min_file_age

Minimum age of a file

false

0

max_file_size

Maximum size of a file

false

-1

min_file_size

Minimum size of one or multiple files

false

-1

skip_first_files

Number of files to remove from the top of the result-set

false

0

skip_last_files

Number of files to remove from the bottom of the result-set

false

0

count_files

Return the size of resultset

false

false

create_order

Activate file-order creation

false

false

create_orders_for_all_files

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 

falsefalse 
param_name_file_path  false ---

order_jobchain_name

The name of the jobchain which belongs to the order

false

 

next_state

The first node to execute in a jobchain

false

 

merge_order_parameter  Merge actual order parameter into new created orderfalsefalse 

on_empty_result_set

Set next node on empty result set

false

empty

expected_size_of_result_set

Number of expected hits in result-list

false

0

raise_error_if_result_set_is

Raise error on expected size of result-set

false

0

result_list_file

Name of the result-list file

false

empty

check_steady_state_of_files  

Check the completeness of a file (steady state)

falsefalse 
steady_state_count  Maximum Number of Checkpointsfalse30 
check_steady_state_interval  Temporal distance between checkpointsfalse1 

Parameter file: File or Folder to watch for

...

For example, the setting "gracious=all" will suppress all errors regarding an empty result-set and will terminate a Job (standalone and inside a jobchain) as it would be without errors.
Data-Type : SOSOptionGracious
The default value for this parameter is false.

Parameter max_file_age:

...

Maximum age of a file

...

maximum age of a file
Specifies the maximum age of a file. If a file is older, then it is deemed not to exist, it will be not included in the result list.
Data-Type : SOSOptionTime
The default value for this parameter is 0.

Parameter min_file_age:

...

Minimum age of a file

...

minimum age of a file

Specifies the minimum age of a files. If the file(s) is newer then it is classified as non-existing, it will be not included in the result list.
Data-Type : SOSOptionTime
The default value for this parameter is 0.

Parameter max_file_size:

...

Maximum size of a file

...

maximum size of a file

Specifies the maximum size of a file in bytes: should the size of one of the files exceed this value, then it is classified as non-existing.
valid values for file size are

...

Data-Type : SOSOptionFileSize
The default value for this parameter is -1.

Parameter min_file_size:

...

Minimum size of one or multiple files

...

minimum size of one or multiple files
Specifies the minimum size of one or multiple files in bytes: should the size of one of the files fall below this value, then it is not included in the result list of the operation.
valid values for file size are

...

Data-Type : SOSOptionFileSize
The default value for this parameter is -1.

Parameter skip_first_files:

...

Number of files to remove from the top of the result-set

...

number of files to remove from the top of the result-set
The number of files are removed from the beginning of the set resulting by min_file_size , min_file_age etc. These files are excluded from further operations.
The result set is sorted according to the used filter parameters:

...

Only either skip_first_files or skip_last_files is allowed to be set at the same time.
Data-Type : SOSOptionInteger
The default value for this parameter is 0.

Parameter skip_last_files:

...

Number of files to remove from the bottom of the result-set

...

 number Number of files to remove from the bottom of the result-set

...

merge actual order parameter into new created order  
 

This parameter specifies , that the order, which has to be created, will be extended by the parameters of the actual order.

...

Set next node on empty result set
The next Node (Step, Job) to execute in a JobChain can be set with this parameter. The value of the parameter is a (valid) node-name of the current JobChain. In case of an empty result-set, e.g. due to non existent files, the current job will end without an errors and the JobChain will continue with the name of the node which is given as the value of this parameter.
Data-Type : SOSOptionJobChainNode
The default value for this parameter is empty.

Parameter expected_size_of_result_set:

...

Number of expected hits in result list

...

number Number of expected hits in result-list

Data-Type : SOSOptionInteger
The default value for this parameter is 0.
Use together with parameter:
raise_error_if_result_set_is - raise error on expected size of result-set

Parameter raise_error_if_result_set_is:

...

Raise error on expected size of result set

...

raise Raise error on expected size of result-set
With this parameter it is possible to raise an error if the quantity of hits of the result list is according to the value of this parameter.
An example:
Assuming, that the parameter "raise_error_if_result_set_is=ne" is defined and the parameter "expected_size_of_result_set=1" is specified as well. If the number of hits is not equal to "1" an error will raised.

...

Name

Title

Mandatory

Default

scheduler_file_path

File to process for a file-order

false

empty

scheduler_file_parent

Pathname of the file to process for a file-order

false

empty

scheduler_file_name

Name of the file to process for a file-order

false

empty

scheduler_sosfileoperations_resultset

The result of the operation as a list of items

false

empty

scheduler_sosfileoperations_resultsetsize

The amount of hits in the result set of the operation

false

empty

scheduler_sosfileoperations_file_count

Return the size of the result set after a file operation

false

0

 

Parameter scheduler_file_path:

...

File to process for a file-order

...

file to process for a file-order
Using Directory Monitoring with File Orders the job parameter scheduler_file_path contains automatically the path of the file that triggered the order.
Data-Type : SOSOptionFileName
The default value for this parameter is empty.

Parameter scheduler_file_parent:

...

Pathanme of the file to process for a file-order

...

pathanme Pathanme of the file to process for a file-order

...