Package com.uc4.api.objects
Class ScheduleTask
- java.lang.Object
-
- com.uc4.api.objects.ScheduleTask
-
-
Constructor Summary
Constructors Constructor Description ScheduleTask(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)Constructs aScheduleTaskfrom the specified XML document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskCalendarcalendar()Gets the calendar condition of this task.ScheduleTaskcopy()This method is used to return the copy of the ScheduleTask.voidcopy(ScheduleTask task)Method to copy the attributes from the provided ScheduleTaskintgetDayOffset()Returns the number of days which should are added to the start time.java.lang.StringgetIdnr()Returns the ID of thisor ScheduleTasktask.intgetLnr()Returns number containing the order of activation.TimegetStartTime()Returns the start time of this task.java.lang.StringgetTaskName()Gets the name of this Schedule or Workflow task.java.lang.StringgetType()Returns the object type of this task.booleanhasCalendarCondition()booleanhasResultCondition()Returnstrueif the result condition of this Schedule task is set.booleanhasRuntimeCondition()booleanisActive()Returnstrueif this task is active.TaskResultresult()Gets theTaskResultof this task.TaskRuntimeruntime()Returns the runtime settings of this task.voidsetActive(boolean active)Sets thisScheduleTaskactive or inactive.voidsetDayOffset(int dayOffset)Sets the number of days which should are added to the start time.protected voidsetLnr(int lnr)voidsetStartTime(Time startTime)Sets the start time of this task.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element struct)TaskValuesvalues()Provides access to the values and PromptSets of a Schedule or Workflow task.
-
-
-
Method Detail
-
calendar
public TaskCalendar calendar()
Description copied from interface:ITaskItemGets the calendar condition of this task.
-
values
public TaskValues values()
Description copied from interface:ITaskItemProvides access to the values and PromptSets of a Schedule or Workflow task.
-
runtime
public TaskRuntime runtime()
Description copied from interface:ITaskItemReturns the runtime settings of this task.
-
getLnr
public int getLnr()
Description copied from interface:ITaskItemReturns number containing the order of activation. A task with Lnr = 1 is executed first.
-
result
public TaskResult result()
Gets theTaskResultof this task. TheTaskResultmay be used to define reactions to the end status of a task. Any task can so be re-activated and/or re-started if the specified status cannot be reached.- Returns:
- Task result
-
getDayOffset
public int getDayOffset()
Returns the number of days which should are added to the start time.- Returns:
- Number of days added to the start time
-
setDayOffset
public void setDayOffset(int dayOffset)
Sets the number of days which should are added to the start time.- Parameters:
dayOffset- Number of days added to the start times
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element struct)
-
getTaskName
public java.lang.String getTaskName()
Description copied from interface:ITaskItemGets the name of this Schedule or Workflow task.- Specified by:
getTaskNamein interfaceITaskItem- Returns:
- Name of the task
-
getType
public java.lang.String getType()
Description copied from interface:ITaskItemReturns the object type of this task.
-
isActive
public boolean isActive()
Returnstrueif this task is active.- Returns:
- True if this task is active
-
setActive
public void setActive(boolean active)
Sets thisScheduleTaskactive or inactive.- Parameters:
active- Boolean to enable or disable the task
-
getStartTime
public Time getStartTime()
Returns the start time of this task.- Returns:
- Start time
-
setStartTime
public void setStartTime(Time startTime)
Sets the start time of this task.- Parameters:
startTime- Start time
-
setLnr
protected void setLnr(int lnr)
-
hasCalendarCondition
public boolean hasCalendarCondition()
- Specified by:
hasCalendarConditionin interfaceITaskItem- Returns:
- true if this task has a calendar condition.
-
hasRuntimeCondition
public boolean hasRuntimeCondition()
- Specified by:
hasRuntimeConditionin interfaceITaskItem- Returns:
- true if this task has a runtime condition.
-
hasResultCondition
public boolean hasResultCondition()
Returnstrueif the result condition of this Schedule task is set.- Returns:
- true if the task has a result setting
-
getIdnr
public java.lang.String getIdnr()
Description copied from interface:ITaskItemReturns the ID of thisor ScheduleTasktask.
-
copy
public ScheduleTask copy()
This method is used to return the copy of the ScheduleTask.- Returns:
- ScheduleTask
-
copy
public void copy(ScheduleTask task)
Method to copy the attributes from the provided ScheduleTask- Parameters:
task- the ScheduleTask from which the attributes are to be copied- Throws:
java.lang.IllegalArgumentException- if the task parameter isnull
-
-