Specifications
missing, null or the empty string, the user’s default system font location
is used instead.
Undoes the effect of any prior invocations of activateFonts() in this entry
point. If necessary this function is called automatically when exiting the
entry point, however it is good programming style to call it explicitly.
deactivateFonts( )
Automatic Job Completion
The following function is provided to allow generating output jobs for the same input job during
multiple subsequent entry point invocations. Normally an input job is removed when exiting
the first entry point in which an output job is generated.
Sets the auto-completion flag for the job to the specified value.
setAutoComplete(
auto-complete :
Boolean )
If the auto-completion flag has a value of “false” when exiting the entry
point, the job will stay in the input folder, even if any number of sendTo()
functions have been called for the job during the entry point invocation.
If the auto-completion flag has a value of “true” when exiting the entry
point, and one or more sendTo() functions have been called for the job during
the entry point invocation, the job will be removed from the input folder.
This is the default behavior.
At the start of each entry point invocation, the auto-completion flag is
initialized to its default value of “true” for all jobs. Consequently the effect
of the setAutoComplete() function is restricted to the current entry point
invocation. Furthermore, since the auto-completion flag is checked only when
exiting the entry point, the order in which the setAutoComplete() and sendTo()
functions are called is of no importance.
The auto-completion flag does not affect the behavior of the fail() functions.
After calling a fail function for a job, the job will be removed from the input
folder regardless of the value of the auto-completion flag.
Occurrence class
An instance of the Occurrence class represents a single item in a job’s occurrence trail, and allows
retrieving the occurrence’s attributes. See job occurrence trail.
Getting occurrence attributes
Returns the moment in time when this occurrence happened. The class
of the returned Date object is specific to the scripting environment in
use.
getTimeStamp( ) : Date
Returns the occurrence type as a string (one of “Detected”, “Produced”,
“Moved”, “Duplicated”, “Processed” or “Failed”).
getType( ) : String
Returns the module or type of flow element causing this occurrence
(same as the module attribute in a log message).
getModule( ) : String
Returns the name of the flow causing this occurrence.
getFlow( ) : String
474
Enfocus Switch 10