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 voidafterSaveObject()Called after an object is saved.JobAttributesattributes()Returns the generic attributes of this job.com.uc4.api.objects.ChildPostProcessgetChildPostProcess()Deprecated.Will be removed in future version.java.lang.StringgetChildPostProcessScript()Returns the content of the Child Post-Process Script.java.lang.StringgetPostProcess()Returns the content of the Post Process tab.java.lang.StringgetPreProcess()Returns the content of the Pre Process tab.java.lang.StringgetProcess()Returns the content of the "Process" tab.java.lang.StringgetRAJobType()Returns the Rapid Automation Job type ornullif this is not an RA Job.java.lang.StringgetRASubJobType()Returns the Rapid Automation Sub Job type ornullif this is not an RA Job.XHeaderheader()Returns the header data of this object.IHostAttributeshostAttributes()Returns host specific attributes.booleanisExecutable()Returnstrueif this Object can be executed.protected voidloadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)OCVPanelocvValues()This method provides access to the RA Job values.OutputFilesoutputFiles()This method provides access to the registered output files of this Job definition.OutputScanoutputScan()Returns anOutputScaninstance which represents the "Output Scan" tab of an Job.Rollbackrollback()This method provides access to the rollback tab of an executable object.Runtimeruntime()Returns runtime information of this job.voidsetChildPostProcess(com.uc4.api.objects.ChildPostProcess childPostProcess)Deprecated.Will be removed in future version.voidsetChildPostProcessScript(java.lang.String childPostProcessScript)Sets the content of the Child Post-Process Script.voidsetPostProcess(java.lang.String postScript)Sets the content of the Post Process tab.voidsetPreProcess(java.lang.String preScript)Sets the content of the Pre Process tab.voidsetProcess(java.lang.String script)Sets the content of the "Process" tab.protected voidstoreContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)SyncListsyncs()Returns aSyncListobject which contains sync conditions of this object.ObjectValuesvalues()-
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
nullif 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 ornullif 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 ornullif 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 aSyncListobject which contains sync conditions of this object.- Returns:
- sync conditions
-
outputScan
public OutputScan outputScan()
Returns anOutputScaninstance 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
IllegalStateExceptionis 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
IllegalStateExceptionis thrown.- Parameters:
childPostProcessScript- child post process script
-
isExecutable
public boolean isExecutable()
Description copied from class:UC4ObjectReturnstrueif this Object can be executed.- Specified by:
isExecutablein classUC4Object- Returns:
- true if the Object can be executed, false if not.
-
afterSaveObject
public void afterSaveObject()
Description copied from interface:LifecycleSaveAwareCalled after an object is saved.- Specified by:
afterSaveObjectin interfaceLifecycleSaveAware
-
-