Package com.uc4.api.objects
Class JobPlanExternal
java.lang.Object
com.uc4.api.objects.JobPlanExternal
- All Implemented Interfaces:
HasAlias
- Direct Known Subclasses:
JobPlanMonitor.JobPlanMonitorExternal
External Dependency.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJobPlanExternal(com.uc4.util.XMLDocument doc, Element task) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a deep copy of this objectReturns the name of the alarm object.getAlias()Returns the alias name of this task ornullif no alias is set.Returns the status expected for the external task's end of execution.Returns the parent of the external task.intReturns the number of seconds which are set as time limit.intReturns the time span that should be waited.booleanReturnstrueif an alarm object should be executed.booleanReturnstrueif "JobPlan cancel" is set as "Else" action.booleanReturnstrueif "Skip" is set as "Else" action.booleanReturnstrueif "Wait" is set as "Else" action.booleanReturnstrueif satisfaction lead time commences when the JobPlan starts.booleanReturnstrueif the satisfaction lead time commences before the JobPlan starts.booleanReturnstrueif satisfaction lead time commences at the end of the last JobPlan execution.booleanReturnstrueif timeout is enabled.booleanSettings made in here are only taken into account when "Wait" has been checked in the Else area.booleanReturnstrueif the JobPlan containing the external dependency is aborted.booleanReturnstrueif external dependency is skipped.booleanReturnstrueif JobPlan execution is in a waiting condition without limitation.booleanvoidsetAlarmObject(UC4ObjectName alarmObject) Sets the alarm object.voidSets the alias name, usenullto remove the alias.voidsetElseAlarm(boolean elseAlarmFlag) Enables or disables the execution of an alarm object.voidThe JobPlan containing the external dependency is aborted.voidSet the else action to "Skip".voidSet 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.voidThe satisfaction lead time commences when the JobPlan starts.voidsetSltBeforeJobPlanStart(int seconds) The satisfaction lead time commences before the JobPlan starts.voidThe 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.voidSettings 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.voidSettings made in here are only taken into account when "Wait" has been checked in the Else area.voidSettings made in here are only taken into account when "Wait" has been checked in the Else area.voidsetValidOnSameLDate(boolean validOnSameLDate) protected void
-
Constructor Details
-
JobPlanExternal
-
-
Method Details
-
store
-
getAlias
Returns the alias name of this task ornullif no alias is set. -
setAlias
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
- Returns:
- Parent alias
-
setParentAlias
Sets the parent alias.- Parameters:
parentAlias- parent alias
-
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
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
Returns the name of the alarm object.- Returns:
- Alarm object
-
setAlarmObject
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
Returns the status expected for the external task's end of execution.- Returns:
- Status
-
setExpectedStatus
Sets the status expected for the external task's end of execution.- Parameters:
expectedStatus- Status
-
copy
Creates a deep copy of this object- Returns:
- A copy of this object
-