Package com.uc4.api.objects
Class Job
- java.lang.Object
-
- com.uc4.api.objects.UC4Object
-
- com.uc4.api.objects.Job
-
- All Implemented Interfaces:
LifecycleSaveAware
public class Job extends UC4Object implements LifecycleSaveAware
This is the base class for all jobs.
-
-
Constructor Summary
Constructors Constructor Description Job()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
afterSaveObject()
Called after an object is saved.JobAttributes
attributes()
Returns the generic attributes of this job.com.uc4.api.objects.ChildPostProcess
getChildPostProcess()
Deprecated.Will be removed in future version.java.lang.String
getChildPostProcessScript()
Returns the content of the Child Post-Process Script.java.lang.String
getPostProcess()
Returns the content of the Post Process tab.java.lang.String
getPreProcess()
Returns the content of the Pre Process tab.java.lang.String
getProcess()
Returns the content of the "Process" tab.java.lang.String
getRAJobType()
Returns the Rapid Automation Job type ornull
if this is not an RA Job.java.lang.String
getRASubJobType()
Returns the Rapid Automation Sub Job type ornull
if this is not an RA Job.XHeader
header()
Returns the header data of this object.IHostAttributes
hostAttributes()
Returns host specific attributes.boolean
isExecutable()
Returnstrue
if this Object can be executed.protected void
loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
OCVPanel
ocvValues()
This method provides access to the RA Job values.OutputFiles
outputFiles()
This method provides access to the registered output files of this Job definition.OutputScan
outputScan()
Returns anOutputScan
instance which represents the "Output Scan" tab of an Job.Rollback
rollback()
This method provides access to the rollback tab of an executable object.Runtime
runtime()
Returns runtime information of this job.void
setChildPostProcess(com.uc4.api.objects.ChildPostProcess childPostProcess)
Deprecated.Will be removed in future version.void
setChildPostProcessScript(java.lang.String childPostProcessScript)
Sets the content of the Child Post-Process Script.void
setPostProcess(java.lang.String postScript)
Sets the content of the Post Process tab.void
setPreProcess(java.lang.String preScript)
Sets the content of the Pre Process tab.void
setProcess(java.lang.String script)
Sets the content of the "Process" tab.protected void
storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
SyncList
syncs()
Returns aSyncList
object which contains sync conditions of this object.ObjectValues
values()
-
Methods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, getObjectClient, getType, isOldVersion, load, store, validate
-
-
-
-
Method Detail
-
loadContent
protected void loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
-
storeContent
protected void storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
-
rollback
public Rollback rollback()
This method provides access to the rollback tab of an executable object.- Returns:
- Rollback settings
-
ocvValues
public OCVPanel 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
public OutputFiles outputFiles()
This method provides access to the registered output files of this Job definition.- Returns:
- Output tab of the Job
-
getRAJobType
public java.lang.String getRAJobType()
Returns the Rapid Automation Job type ornull
if this is not an RA Job.- Returns:
- RA Job type, for example "FTPAGENT"
-
getRASubJobType
public java.lang.String 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
public ObjectValues values()
- Returns:
- Variables of this object
-
syncs
public SyncList syncs()
Returns aSyncList
object which contains sync conditions of this object.- Returns:
- sync conditions
-
outputScan
public OutputScan outputScan()
Returns anOutputScan
instance which represents the "Output Scan" tab of an Job.- Returns:
- Output Scan
-
header
public XHeader header()
Returns the header data of this object. This is the information of the header tab in the dialog client.- Returns:
- header
-
attributes
public JobAttributes attributes()
Returns the generic attributes of this job. The returned object contains all information of the attributes tab.- Returns:
- Job attributes
-
hostAttributes
public IHostAttributes hostAttributes()
Returns host specific attributes. The return value is class that implements the IHostAttributes interface.- Returns:
- host attributes
-
runtime
public Runtime runtime()
Returns runtime information of this job. This corresponds to the "Runtime" tab in the dialog client.- Returns:
- Runtime information
-
getProcess
public java.lang.String getProcess()
Returns the content of the "Process" tab.- Returns:
- JCL
-
setProcess
public void setProcess(java.lang.String script)
Sets the content of the "Process" tab.- Parameters:
script
- Script
-
setPreProcess
public void setPreProcess(java.lang.String preScript)
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
public java.lang.String getPreProcess()
Returns the content of the Pre Process tab.- Returns:
- preScript Pre Script
-
setPostProcess
public void setPostProcess(java.lang.String postScript)
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
public java.lang.String getPostProcess()
Returns the content of the Post Process tab.- Returns:
- Post script
-
getChildPostProcess
@Deprecated public com.uc4.api.objects.ChildPostProcess 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
public java.lang.String getChildPostProcessScript()
Returns the content of the Child Post-Process Script.- Returns:
- String Child Post script
-
setChildPostProcess
@Deprecated public void setChildPostProcess(com.uc4.api.objects.ChildPostProcess childPostProcess)
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
public void setChildPostProcessScript(java.lang.String childPostProcessScript)
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
-
-