Package com.uc4.api.objects
Class JobPlanExternal
- java.lang.Object
-
- com.uc4.api.objects.JobPlanExternal
-
- All Implemented Interfaces:
HasAlias
- Direct Known Subclasses:
JobPlanMonitor.JobPlanMonitorExternal
public class JobPlanExternal extends java.lang.Object implements HasAlias
External Dependency.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJobPlanExternal(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobPlanExternalcopy()Creates a deep copy of this objectUC4ObjectNamegetAlarmObject()Returns the name of the alarm object.UC4AliasgetAlias()Returns the alias name of this task ornullif no alias is set.TaskStategetExpectedStatus()Returns the status expected for the external task's end of execution.UC4ObjectNamegetExternalParent()Returns the parent of the external task.UC4AliasgetParentAlias()intgetSltWithinSeconds()Returns the number of seconds which are set as time limit.intgetTimeoutSeconds()Returns the time span that should be waited.booleanisElseAlarm()Returnstrueif an alarm object should be executed.booleanisElseCancelJobPlan()Returnstrueif "JobPlan cancel" is set as "Else" action.booleanisElseSkip()Returnstrueif "Skip" is set as "Else" action.booleanisElseWait()Returnstrueif "Wait" is set as "Else" action.booleanisSltAfterJobPlanStart()Returnstrueif satisfaction lead time commences when the JobPlan starts.booleanisSltBeforeJobPlanStart()Returnstrueif the satisfaction lead time commences before the JobPlan starts.booleanisSltSinceLastJobPlanExecution()Returnstrueif satisfaction lead time commences at the end of the last JobPlan execution.booleanisTimeout()Returnstrueif timeout is enabled.booleanisTimeoutAlarm()Settings made in here are only taken into account when "Wait" has been checked in the Else area.booleanisTimeoutCancelJobPlan()Returnstrueif the JobPlan containing the external dependency is aborted.booleanisTimeoutSkip()Returnstrueif external dependency is skipped.booleanisTimeoutWait()Returnstrueif JobPlan execution is in a waiting condition without limitation.booleanisValidOnSameLDate()voidsetAlarmObject(UC4ObjectName alarmObject)Sets the alarm object.voidsetAlias(UC4Alias alias)Sets the alias name, usenullto remove the alias.voidsetElseAlarm(boolean elseAlarmFlag)Enables or disables the execution of an alarm object.voidsetElseCancelJobPlan()The JobPlan containing the external dependency is aborted.voidsetElseSkip()Set the else action to "Skip".voidsetElseWait()Set the else action to "Wait".voidsetExpectedStatus(TaskState expectedStatus)Sets the status expected for the external task's end of execution.voidsetExternalParent(UC4ObjectName externalParent)Sets the parent of the external task.voidsetParentAlias(UC4Alias parentAlias)Sets the parent alias.voidsetSltAfterJobPlanStart()The satisfaction lead time commences when the JobPlan starts.voidsetSltBeforeJobPlanStart(int seconds)The satisfaction lead time commences before the JobPlan starts.voidsetSltSinceLastJobPlanExecution()The satisfaction lead time commences at the end of the last JobPlan execution.voidsetTimeout(boolean timeoutFlag)Enables or disables timeout.voidsetTimeoutAlarm(boolean timeoutAlarmFlag)Settings made in here are only taken into account when "Wait" has been checked in the Else area.voidsetTimeoutCancelJobPlan()Settings made in here are only taken into account when "Wait" has been checked in the Else area.voidsetTimeoutSeconds(int timeoutSeconds)Sets the time span that should be waited.voidsetTimeoutSkip()Settings made in here are only taken into account when "Wait" has been checked in the Else area.voidsetTimeoutWait()Settings made in here are only taken into account when "Wait" has been checked in the Else area.voidsetValidOnSameLDate(boolean validOnSameLDate)protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
-
getAlias
public UC4Alias getAlias()
Returns the alias name of this task ornullif no alias is set.
-
setAlias
public void setAlias(UC4Alias alias)
Sets the alias name, usenullto remove the alias.- Parameters:
alias- Alias name or null
-
isValidOnSameLDate
public boolean isValidOnSameLDate()
- Returns:
- True if the external dependency is only valid when activated with the same logical date.
-
setValidOnSameLDate
public void setValidOnSameLDate(boolean validOnSameLDate)
- Parameters:
validOnSameLDate- Sets a flag to decide if this external dependency is only valid when activated with the same logical date.
-
getParentAlias
public UC4Alias getParentAlias()
- Returns:
- Parent alias
-
setParentAlias
public void setParentAlias(UC4Alias parentAlias)
Sets the parent alias.- Parameters:
parentAlias- parent alias
-
getExternalParent
public UC4ObjectName getExternalParent()
Returns the parent of the external task. An emptyUC4ObjectNameis returned if the external dependency does not have a parent.- Returns:
- Parent of the external dependency
-
setExternalParent
public void setExternalParent(UC4ObjectName externalParent)
Sets the parent of the external task. An emptyUC4ObjectNamecan be used if the external dependency should not have a parent- Parameters:
externalParent- Parent of the external dependency
-
setElseWait
public void setElseWait()
Set the else action to "Wait".
-
isElseWait
public boolean isElseWait()
Returnstrueif "Wait" is set as "Else" action.- Returns:
- True if the external dependency waits
-
setElseSkip
public void setElseSkip()
Set the else action to "Skip".
-
isElseSkip
public boolean isElseSkip()
Returnstrueif "Skip" is set as "Else" action.- Returns:
- True if the external dependency is skipped
-
setElseCancelJobPlan
public void setElseCancelJobPlan()
The JobPlan containing the external dependency is aborted.
-
isElseCancelJobPlan
public boolean isElseCancelJobPlan()
Returnstrueif "JobPlan cancel" is set as "Else" action.- Returns:
- True if the JobPlan containing the external dependency should be aborted.
-
isElseAlarm
public boolean isElseAlarm()
Returnstrueif an alarm object should be executed. The name of the alarm object can be set using the methodsetAlarmObject.- Returns:
- True if an alarm object should be executed
-
setElseAlarm
public void setElseAlarm(boolean elseAlarmFlag)
Enables or disables the execution of an alarm object. IfelseAlarmFlagis set totruethe alarm object which is specified using the methodsetAlarmObjectis executed.- Parameters:
elseAlarmFlag- Boolean which is set to true if the alarm object should be enabled
-
getAlarmObject
public UC4ObjectName getAlarmObject()
Returns the name of the alarm object.- Returns:
- Alarm object
-
setAlarmObject
public void setAlarmObject(UC4ObjectName alarmObject)
Sets the alarm object.- Parameters:
alarmObject- Alarm object
-
setSltSinceLastJobPlanExecution
public void setSltSinceLastJobPlanExecution()
The satisfaction lead time commences at the end of the last JobPlan execution.
-
isSltSinceLastJobPlanExecution
public boolean isSltSinceLastJobPlanExecution()
Returnstrueif satisfaction lead time commences at the end of the last JobPlan execution.- Returns:
- SLT since last JobPlan execution
-
setSltAfterJobPlanStart
public void setSltAfterJobPlanStart()
The satisfaction lead time commences when the JobPlan starts.
-
isSltAfterJobPlanStart
public boolean isSltAfterJobPlanStart()
Returnstrueif satisfaction lead time commences when the JobPlan starts.- Returns:
- SLT after JobPlan start
-
setSltBeforeJobPlanStart
public void setSltBeforeJobPlanStart(int seconds)
The satisfaction lead time commences before the JobPlan starts. The length of this period depends on the value that has been specified. There is a limit when the end of the last JobPlan execution is also within this period.- Parameters:
seconds- Time limit in seconds
-
isSltBeforeJobPlanStart
public boolean isSltBeforeJobPlanStart()
Returnstrueif the satisfaction lead time commences before the JobPlan starts.- Returns:
- SLT before JobPlan starts
-
getSltWithinSeconds
public int getSltWithinSeconds()
Returns the number of seconds which are set as time limit.- Returns:
- Number of seconds
-
setTimeoutWait
public void setTimeoutWait()
Settings made in here are only taken into account when "Wait" has been checked in the Else area.JobPlan execution is in a waiting condition without limitation. Manual action needs to be taken. Timeout is repeated in the intervals specified in timeout after... If you specified an Alarm object, it starts whenever a timeout occurs.
-
isTimeoutWait
public boolean isTimeoutWait()
Returnstrueif JobPlan execution is in a waiting condition without limitation.- Returns:
- True if "Wait" is selected as timeout option
-
setTimeoutSkip
public void setTimeoutSkip()
Settings made in here are only taken into account when "Wait" has been checked in the Else area.The external dependency is skipped.
-
isTimeoutSkip
public boolean isTimeoutSkip()
Returnstrueif external dependency is skipped.- Returns:
- True if "Skip" is selected as timeout option
-
setTimeoutCancelJobPlan
public void setTimeoutCancelJobPlan()
Settings made in here are only taken into account when "Wait" has been checked in the Else area.The JobPlan containing the external dependency is aborted.
-
isTimeoutCancelJobPlan
public boolean isTimeoutCancelJobPlan()
Returnstrueif the JobPlan containing the external dependency is aborted.- Returns:
- True if "JobPlan cancel" is selected as timeout option
-
isTimeoutAlarm
public boolean isTimeoutAlarm()
Settings made in here are only taken into account when "Wait" has been checked in the Else area.Returns
trueif an alarm object should be executed- Returns:
- True if an alarm object should be executed
-
setTimeoutAlarm
public void setTimeoutAlarm(boolean timeoutAlarmFlag)
Settings made in here are only taken into account when "Wait" has been checked in the Else area.Sets if an alarm object should be executed.
- Parameters:
timeoutAlarmFlag- True if an alarm object should be executed
-
getTimeoutSeconds
public int getTimeoutSeconds()
Returns the time span that should be waited.- Returns:
- Time span in seconds
-
setTimeoutSeconds
public void setTimeoutSeconds(int timeoutSeconds)
Sets the time span that should be waited. The value of MIN_EVENT_INTERVAL in the variable UC_SYSTEM_SETTINGS also affects the time span. As it defines the minimum value, it is used if the timeout value is less than the value specified in MIN_EVENT_INTERVAL.- Parameters:
timeoutSeconds- Time span in seconds
-
isTimeout
public boolean isTimeout()
Returnstrueif timeout is enabled.- Returns:
- True if timeout is enabled
-
setTimeout
public void setTimeout(boolean timeoutFlag)
Enables or disables timeout.- Parameters:
timeoutFlag- True if timeout should be enabled
-
getExpectedStatus
public TaskState getExpectedStatus()
Returns the status expected for the external task's end of execution.- Returns:
- Status
-
setExpectedStatus
public void setExpectedStatus(TaskState expectedStatus)
Sets the status expected for the external task's end of execution.- Parameters:
expectedStatus- Status
-
copy
public JobPlanExternal copy()
Creates a deep copy of this object- Returns:
- A copy of this object
-
-