Specifications

Returns a list of Job instances representing all of the jobs currently
waiting in the input folders for the specified incoming connection. Same
semantics as for the getJobs function apply.
getJobsForConnection(
c : Connection ) :
JobList
Returns a Job instance representing a new job that does not correspond
to an incoming job. The job is given a fresh job ticket with default values.
The file path associated with the job is the empty string.
createNewJob( origin
: String ) : Job
A new job is needed only in cases the script generates or imports new
jobs into a flow. In all other cases the script should use (one of) the
incoming job(s) related to the output so that job ticket information is
preserved.
The optional argument provides an indication of the origin of the job
before it was injected in the flow, for example its absolute file path or
location in a third-party data base. This value is written in the origin
attribute of the ‘Produced’ occurrence in the newly created job ticket
(see job occurrence trail). If the origin argument is missing or null, the
empty string is used.
Logs a fatal error with the specified message and puts the flow element
instance in the “problem process” state, without providing the context
of a particular job.
failProcess( message
: String, extra : String
or Number )
This function should be used only when there is no appropriate job
context, for example in the timerArrived entry point of a Producer. In
all other cases, use the Job.failProcess() function instead so that the job
causing the problem is properly retried when the process is retried.
See the description of the Environment.log() function for more
information on the message and extra arguments. See viewing problem
status for more information on problem processes.
Accessing the timer interval
Sets the interval, in seconds, between subsequent invocations of the
timerFired entry point (if it has been declared in the script). The
setTimerInterval(
seconds : Number )
implementation guarantees only that the time between invocations
will not be less than the specified number of seconds. Depending on
run-time circumstances the actual interval may be (much) longer. The
default value for the timer interval is 300 seconds (5 minutes).
Returns the interval, in seconds between subsequent invocations of
the timerFired entry point.
getTimerInterval( ) :
Number
Returns true if the flow in which this script resides is attempting to
deactivate at the time of invocation; false otherwise.
isDeactivating ( ) :
Boolean
When the user deactivates a flow (or quits the server) Switch waits
until all executing entry points have run to completion. Therefore, an
entry point that potentially executes for a long time, for example
461
Enfocus Switch 10