Package com.uc4.api.objects
Class JobPlanAttributes
- java.lang.Object
-
- com.uc4.api.objects.JobPlanAttributes
-
public class JobPlanAttributes extends java.lang.ObjectThis class repesents JobPlan attributes.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJobPlanAttributes(com.uc4.util.XMLDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UC4ObjectNamegetChildrenQueue()Returns the name of the Queue Object for children of this ProcessFlow.DeactivateConditiongetDeactivate()Returns the deactivate condition for this JobPlan.ExtendedReportsgetExtendedReports()Returns the setting for extended reports.java.lang.StringgetIntAccount()Returns the internal account assigned to this JobPlan.UC4ObjectNamegetOkStateExecute()Returns the object that is executed when a task does not have the expected end status.TaskStategetOkStateForTasks()Returns the end status that is expected for the subordinated tasks of the JobPlan.intgetPriority()Priority with which this Workflow should be executed in the Automation Engine.UC4ObjectNamegetQueue()Returns the Queue Object.UC4ObjectNamegetStartType()Returns the start type of this JobPlan.UC4TimezoneNamegetTimezone()Returns the TimeZone that is to be used.booleanisGenerateAtRuntime()Returnstrueif this JobPlan should not be generated at activation time but rather at runtime.booleanisPassPriority()Pass priority to WF childrenbooleanisReuseAgentGroups()Re-using AgentGroup calculation.MaxParallelmaxParallel()Returns settings for parallel tasks.voidsetChildrenQueue(UC4ObjectName childrenQueue)Sets the name of the Queue Object for children of this ProcessFlow.voidsetDeactivate(DeactivateCondition deactivate)Sets the deactivate condition for this JobPlan.voidsetExtendedReports(ExtendedReports extendedReports)Sets the option for extended reports.voidsetGenerateAtRuntime(boolean generateAtRuntime)Sets if this JobPlan should be generated at runtime.voidsetIntAccount(java.lang.String intAccount)Sets the internal account, max.voidsetOkStateExecute(UC4ObjectName okStateExecute)Sets the object that is executed when a task does not have the expected end status.voidsetOkStateForTasks(TaskState state)Sets the end status that is expected for the subordinated tasks of the JobPlan.voidsetPassPriority(boolean passPriority)voidsetPriority(int priority)Priority with which this Workflow should be executed in the Automation Engine.voidsetQueue(UC4ObjectName queue)Sets the Queue that will be used when this object is executed.voidsetReuseAgentGroups(boolean reuseAgentGroups)Sets the flag for re-using AgentGroup calculation.voidsetStartType(UC4ObjectName startType)Sets the start type of this JobPlan.voidsetTimezone(UC4TimezoneName timezone)Sets the TimeZone for this JobPlan.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
isReuseAgentGroups
public boolean isReuseAgentGroups()
Re-using AgentGroup calculation.- Returns:
- Returns
trueif ProcessFlow tasks of the same AgentGroup should use the same hosts.
-
setReuseAgentGroups
public void setReuseAgentGroups(boolean reuseAgentGroups)
Sets the flag for re-using AgentGroup calculation.- Parameters:
reuseAgentGroups-trueif ProcessFlow tasks of the same AgentGroup should use the same hosts
-
isPassPriority
public boolean isPassPriority()
Pass priority to WF children- Returns:
- Returns
trueif the WF priority should be passed on to the children tasks
-
setPassPriority
public void setPassPriority(boolean passPriority)
- Parameters:
passPriority- Istrueif the WF priority should be passed on to the children tasks
-
getChildrenQueue
public UC4ObjectName getChildrenQueue()
Returns the name of the Queue Object for children of this ProcessFlow.- Returns:
- Name of the Queue or
nullif *OWN has been set.
-
setChildrenQueue
public void setChildrenQueue(UC4ObjectName childrenQueue)
Sets the name of the Queue Object for children of this ProcessFlow.- Parameters:
childrenQueue- Name of the Queue (can be empty) ornullfor *OWN
-
getQueue
public UC4ObjectName getQueue()
Returns the Queue Object.- Returns:
- Name of the Queue Object
-
setQueue
public void setQueue(UC4ObjectName queue)
Sets the Queue that will be used when this object is executed.- Parameters:
queue- Name of the Queue Object
-
getStartType
public UC4ObjectName getStartType()
Returns the start type of this JobPlan.- Returns:
- Start type
-
setStartType
public void setStartType(UC4ObjectName startType)
Sets the start type of this JobPlan.- Parameters:
startType- Start type
-
getIntAccount
public java.lang.String getIntAccount()
Returns the internal account assigned to this JobPlan.- Returns:
- Internal account
-
getDeactivate
public DeactivateCondition getDeactivate()
Returns the deactivate condition for this JobPlan.- Returns:
- Deactivate condition
-
setDeactivate
public void setDeactivate(DeactivateCondition deactivate)
Sets the deactivate condition for this JobPlan.- Parameters:
deactivate- Deactivate condition
-
setIntAccount
public void setIntAccount(java.lang.String intAccount)
Sets the internal account, max. 20 characters.- Parameters:
intAccount- internal account
-
isGenerateAtRuntime
public boolean isGenerateAtRuntime()
Returnstrueif this JobPlan should not be generated at activation time but rather at runtime.- Returns:
- True if "Generate at runtime" is selected
-
setGenerateAtRuntime
public void setGenerateAtRuntime(boolean generateAtRuntime)
Sets if this JobPlan should be generated at runtime.- Parameters:
generateAtRuntime- If set to true the object is generated at runtime
-
maxParallel
public MaxParallel maxParallel()
Returns settings for parallel tasks.- Returns:
- parallel task settings
-
getPriority
public int getPriority()
Priority with which this Workflow should be executed in the Automation Engine. Permitted values: 0 to 255
Default: 0
1 stands for highest, 255 for lowest priority. If 0 is chosen, the priority defined in the UC_CLIENT_SETTINGS variables with TASK_PRIORITY for local clients is used. If no default priority is set or if no variable is present in the local clients, then 200 is assigned as the valid priority.- Returns:
- priority
-
setPriority
public void setPriority(int priority)
Priority with which this Workflow should be executed in the Automation Engine. Permitted values: 0 to 255
Default: 0
1 stands for highest, 255 for lowest priority. If 0 is chosen, the priority defined in the UC_CLIENT_SETTINGS variables with TASK_PRIORITY for local clients is used. If no default priority is set or if no variable is present in the local clients, then 200 is assigned as the valid priority.- Parameters:
priority- Priority
-
getTimezone
public UC4TimezoneName getTimezone()
Returns the TimeZone that is to be used.- Returns:
- TimeZone
-
setTimezone
public void setTimezone(UC4TimezoneName timezone)
Sets the TimeZone for this JobPlan.- Parameters:
timezone- TimeZone
-
getOkStateForTasks
public TaskState getOkStateForTasks()
Returns the end status that is expected for the subordinated tasks of the JobPlan.- Returns:
- Expected end status
-
setOkStateForTasks
public void setOkStateForTasks(TaskState state)
Sets the end status that is expected for the subordinated tasks of the JobPlan.- Parameters:
state- Expected end status
-
getOkStateExecute
public UC4ObjectName getOkStateExecute()
Returns the object that is executed when a task does not have the expected end status.- Returns:
- Name of the object which should be executed
-
setOkStateExecute
public void setOkStateExecute(UC4ObjectName okStateExecute)
Sets the object that is executed when a task does not have the expected end status.- Parameters:
okStateExecute- Name of the object which should be executed
-
getExtendedReports
public ExtendedReports getExtendedReports()
Returns the setting for extended reports.- Returns:
- Extended reports.
-
setExtendedReports
public void setExtendedReports(ExtendedReports extendedReports)
Sets the option for extended reports.- Parameters:
extendedReports- Extended reports.
-
-