| Constructor and Description |
|---|
ScheduleTask(com.uc4.util.XMLDocument doc,
Element task)
Constructs a
ScheduleTask from the specified XML document. |
| Modifier and Type | Method and Description |
|---|---|
TaskCalendar |
calendar()
Gets the calendar condition of this task.
|
ScheduleTask |
copy()
This method is used to return the copy of the ScheduleTask.
|
void |
copy(ScheduleTask task)
Method to copy the attributes from the provided ScheduleTask
|
int |
getDayOffset()
Returns the number of days which should are added to the start time.
|
String |
getIdnr()
Returns the ID of this
or ScheduleTask task. |
int |
getLnr()
Returns number containing the order of activation.
|
Time |
getStartTime()
Returns the start time of this task.
|
String |
getTaskName()
Gets the name of this Schedule or Workflow task.
|
String |
getType()
Returns the object type of this task.
|
boolean |
hasCalendarCondition() |
boolean |
hasResultCondition()
Returns
true if the result condition of this Schedule task is set. |
boolean |
hasRuntimeCondition() |
boolean |
isActive()
Returns
true if this task is active. |
TaskResult |
result()
Gets the
TaskResult of this task. |
TaskRuntime |
runtime()
Returns the runtime settings of this task.
|
void |
setActive(boolean active)
Sets this
ScheduleTask active or inactive. |
void |
setDayOffset(int dayOffset)
Sets the number of days which should are added to the start time.
|
void |
setStartTime(Time startTime)
Sets the start time of this task.
|
TaskValues |
values()
Provides access to the values and PromptSets of a Schedule or Workflow task.
|
public ScheduleTask(com.uc4.util.XMLDocument doc,
Element task)
ScheduleTask from the specified XML document.doc - XML Documenttask - Element containing the schedule taskpublic TaskCalendar calendar()
ITaskItempublic TaskValues values()
ITaskItempublic TaskRuntime runtime()
ITaskItempublic int getLnr()
ITaskItempublic TaskResult result()
TaskResult of this task.
The TaskResult may 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.public int getDayOffset()
public void setDayOffset(int dayOffset)
dayOffset - Number of days added to the start timespublic String getTaskName()
ITaskItemgetTaskName in interface ITaskItempublic String getType()
ITaskItempublic boolean isActive()
true if this task is active.public void setActive(boolean active)
ScheduleTask active or inactive.active - Boolean to enable or disable the taskpublic Time getStartTime()
public void setStartTime(Time startTime)
startTime - Start timepublic boolean hasCalendarCondition()
hasCalendarCondition in interface ITaskItempublic boolean hasRuntimeCondition()
hasRuntimeCondition in interface ITaskItempublic boolean hasResultCondition()
true if the result condition of this Schedule task is set.public String getIdnr()
ITaskItemor ScheduleTask task.public ScheduleTask copy()
public void copy(ScheduleTask task) throws IllegalArgumentException
task - the ScheduleTask from which the attributes are to be copiedIllegalArgumentException - if the task parameter is nullCopyright © 2021. All rights reserved.