Constructor and Description |
---|
ScheduleTask(com.uc4.util.XMLDocument doc,
org.w3c.dom.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.
|
java.lang.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.
|
java.lang.String |
getTaskName()
Gets the name of this Schedule or Workflow task.
|
java.lang.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.
|
protected void |
setLnr(int lnr) |
void |
setStartTime(Time startTime)
Sets the start time of this task.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element struct) |
TaskValues |
values()
Provides access to the values and PromptSets of a Schedule or Workflow task.
|
public ScheduleTask(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
ScheduleTask
from the specified XML document.doc
- XML Documenttask
- Element containing the schedule taskpublic TaskCalendar calendar()
ITaskItem
public TaskValues values()
ITaskItem
public TaskRuntime runtime()
ITaskItem
public int getLnr()
ITaskItem
public 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 timesprotected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element struct)
public java.lang.String getTaskName()
ITaskItem
getTaskName
in interface ITaskItem
public java.lang.String getType()
ITaskItem
public 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 timeprotected void setLnr(int lnr)
public boolean hasCalendarCondition()
hasCalendarCondition
in interface ITaskItem
public boolean hasRuntimeCondition()
hasRuntimeCondition
in interface ITaskItem
public boolean hasResultCondition()
true
if the result condition of this Schedule task is set.public java.lang.String getIdnr()
ITaskItem
or ScheduleTask
task.public ScheduleTask copy()
public void copy(ScheduleTask task)
task
- the ScheduleTask from which the attributes are to be copiedjava.lang.IllegalArgumentException
- if the task parameter is null