Package com.uc4.api.objects
Class Job
java.lang.Object
com.uc4.api.objects.UC4Object
com.uc4.api.objects.Job
- All Implemented Interfaces:
LifecycleSaveAware
This is the base class for all jobs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called after an object is saved.Returns the generic attributes of this job.com.uc4.api.objects.ChildPostProcess
Deprecated.Will be removed in future version.Returns the content of the Child Post-Process Script.Returns the content of the Post Process tab.Returns the content of the Pre Process tab.Returns the content of the "Process" tab.Returns the Rapid Automation Job type ornull
if this is not an RA Job.Returns the Rapid Automation Sub Job type ornull
if this is not an RA Job.header()
Returns the header data of this object.Returns host specific attributes.boolean
Returnstrue
if this Object can be executed.protected void
loadContent
(com.uc4.util.XMLDocument doc, ConnectionAttributes info) This method provides access to the RA Job values.This method provides access to the registered output files of this Job definition.Returns anOutputScan
instance which represents the "Output Scan" tab of an Job.rollback()
This method provides access to the rollback tab of an executable object.runtime()
Returns runtime information of this job.void
setChildPostProcess
(com.uc4.api.objects.ChildPostProcess childPostProcess) Deprecated.Will be removed in future version.void
setChildPostProcessScript
(String childPostProcessScript) Sets the content of the Child Post-Process Script.void
setPostProcess
(String postScript) Sets the content of the Post Process tab.void
setPreProcess
(String preScript) Sets the content of the Pre Process tab.void
setProcess
(String script) Sets the content of the "Process" tab.protected void
storeContent
(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo) syncs()
Returns aSyncList
object which contains sync conditions of this object.values()
Methods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, getObjectClient, getType, isOldVersion, load, store, validate
-
Constructor Details
-
Job
public Job()
-
-
Method Details
-
loadContent
-
storeContent
protected void storeContent(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo) -
rollback
This method provides access to the rollback tab of an executable object.- Returns:
- Rollback settings
-
ocvValues
This method provides access to the RA Job values. If this Job is not a RA Job the return value isnull
.- Returns:
- Values or
null
if this Job is not an RA Job.
-
outputFiles
This method provides access to the registered output files of this Job definition.- Returns:
- Output tab of the Job
-
getRAJobType
Returns the Rapid Automation Job type ornull
if this is not an RA Job.- Returns:
- RA Job type, for example "FTPAGENT"
-
getRASubJobType
Returns the Rapid Automation Sub Job type ornull
if this is not an RA Job.- Returns:
- RA Sub Job type, for example "FTPFILETRANSFERJOB"
-
values
- Returns:
- Variables of this object
-
syncs
Returns aSyncList
object which contains sync conditions of this object.- Returns:
- sync conditions
-
outputScan
Returns anOutputScan
instance which represents the "Output Scan" tab of an Job.- Returns:
- Output Scan
-
header
Returns the header data of this object. This is the information of the header tab in the dialog client.- Returns:
- header
-
attributes
Returns the generic attributes of this job. The returned object contains all information of the attributes tab.- Returns:
- Job attributes
-
hostAttributes
Returns host specific attributes. The return value is class that implements the IHostAttributes interface.- Returns:
- host attributes
-
runtime
Returns runtime information of this job. This corresponds to the "Runtime" tab in the dialog client.- Returns:
- Runtime information
-
getProcess
Returns the content of the "Process" tab.- Returns:
- JCL
-
setProcess
Sets the content of the "Process" tab.- Parameters:
script
- Script
-
setPreProcess
Sets the content of the Pre Process tab. Contrary to the "Process" tab, the processing commands here are still processed within the header.- Parameters:
preScript
- Pre Script
-
getPreProcess
Returns the content of the Pre Process tab.- Returns:
- preScript Pre Script
-
setPostProcess
Sets the content of the Post Process tab. The script commands stored in this tab are processed after the Job has ended.- Parameters:
postScript
- Post script
-
getPostProcess
Returns the content of the Post Process tab.- Returns:
- Post script
-
getChildPostProcess
Deprecated.Will be removed in future version. Use getChildPostProcessScript() instead.Returns the content of the Child Post-Process tab.- Returns:
- Child Post script
-
getChildPostProcessScript
Returns the content of the Child Post-Process Script.- Returns:
- String Child Post script
-
setChildPostProcess
Deprecated.Will be removed in future version. Use setChildPostProcessScript(String) instead.Sets the content of the Child Post-Process tab.- The script is processed for each individual child process.
- The script is processed immediately after the child process finishes.
Calling this method is only allowed for SAP and PS Jobs. If the Job type is not SAP or PS an
IllegalStateException
is thrown.- Parameters:
childPostProcess
- Child Post script
-
setChildPostProcessScript
Sets the content of the Child Post-Process Script.- The script is set for child process.
- The script is processed immediately after the child process finishes.
Calling this method is only allowed for SAP and PS Jobs. If the Job type is not SAP or PS an
IllegalStateException
is thrown.- Parameters:
childPostProcessScript
- child post process script
-
isExecutable
public boolean isExecutable()Description copied from class:UC4Object
Returnstrue
if this Object can be executed.- Specified by:
isExecutable
in classUC4Object
- Returns:
- true if the Object can be executed, false if not.
-
afterSaveObject
public void afterSaveObject()Description copied from interface:LifecycleSaveAware
Called after an object is saved.- Specified by:
afterSaveObject
in interfaceLifecycleSaveAware
-