public class ActionTask extends AbstractTask
Title: Service Event Fabric Core
Description: Defines an Action Task managed by a Task List.
Copyright: Copyright (c) 2019
Company: StreamScape Technologies
AbstractTask.ListenerHelper
START_TASK_NAME, START_TASK_OID
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
void |
doSetUndoLimit(int undoLimit) |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAuthor()
Returns a name of the user that created this object.
|
java.util.Date |
getCreationTime()
Returns a timestamp indicating when the object was created.
|
java.lang.String |
getDescription()
Returns a description of the object.
|
java.util.Date |
getLastUpdateTime()
Returns a timestamp indicating when the object was updated last time.
|
java.lang.String |
getModel() |
java.lang.String |
getName()
Returns a name of the object.
|
java.util.UUID |
getOID()
Returns an unique identifier of the object.
|
java.lang.String |
getScript() |
java.lang.Long |
getTaskWindow()
Returns a time interval available for execution of the
RPL script. |
TaskType |
getType()
Returns a type of the task.
|
int |
getUndoLimit() |
boolean |
hasScript() |
boolean |
isEncrypted() |
java.util.List |
listEventIds()
Returns a list of all event ids that can be raised by the task.
|
void |
setDescription(java.lang.String description)
Sets the specified description of the object.
|
void |
setEncrypted(boolean encrypted) |
void |
setModel(java.lang.String model) |
void |
setName(java.lang.String name)
Sets the specified object name.
|
void |
setScript(java.lang.String script) |
void |
setUndoLimit(int undoLimit) |
void |
undo()
Resets the state of the current execution, forcing the task to retry its execution.
|
void |
undo(long delay)
Resets the state of the current execution, forcing the task to retry its execution after the specified delay (in seconds).
|
doDisableResumptionOn, getAfterTaskName, getAfterTaskOID, getConsequent, getExceptionTask, getExecution, getOrder, getOwner, getPrecedent, getRuleSet, getState, getTaskList, getTaskWindowUnit, getWeight, isResumptionEnabledOn, isResumptionEnabledTotally, listResumptionStates, setAfterTask, setWeight, toString
addTag, clearProperties, clearTags, disableResumptionOn, disableResumptionTotally, enableResumptionOn, enableResumptionTotally, existsProperty, existsTag, getEndTimeMsec, getExpirationDate, getMetadata, getProperties, getProperty, getPropertyList, getPropertyResolved, isAutoComplete, listProperties, listTags, putProperty, removeProperty, removeTag, setMetadata, setTaskWindow, setTaskWindowUnit
clone, getSerialVersionUID
getClass, hashCode, notify, notifyAll, wait, wait, wait
disableResumptionOn, disableResumptionTotally, enableResumptionOn, enableResumptionTotally, getFullName, isAutoComplete, setTaskWindow, setTaskWindowUnit
addTag, clearProperties, clearTags, existsProperty, existsTag, getEndTimeMsec, getExpirationDate, getMetadata, getProperties, getProperty, getPropertyList, getPropertyResolved, listTags, putProperty, removeProperty, removeTag, setMetadata
getAuthor, getCreationTime, getLastUpdateTime, getOID
getDescription, setDescription, setName
getName
public TaskType getType()
Task
public java.lang.Long getTaskWindow()
RPL
script.
EXPIRED
state.
getTaskWindow
in interface Task
getTaskWindow
in class AbstractTask
public java.lang.String getScript()
public boolean hasScript()
public void setScript(java.lang.String script) throws SchedulerException
SchedulerException
public java.lang.String getModel()
public void setModel(java.lang.String model) throws SchedulerException
SchedulerException
public boolean isEncrypted()
public void setEncrypted(boolean encrypted) throws SchedulerException
SchedulerException
public int getUndoLimit()
public void setUndoLimit(int undoLimit) throws SchedulerException
SchedulerException
public void doSetUndoLimit(int undoLimit)
public java.util.List listEventIds()
Task
public void undo() throws SchedulerException
Task
This method is only applicable to Action Task.
This method is only applicable if the task is currently running.
SchedulerException
- if the operation is not supported.public void undo(long delay) throws SchedulerException
Task
This method is only applicable to Action Task.
This method is only applicable if the task is currently running.
delay
- the delay (in seconds) before retrying the task.SchedulerException
- if the specified delay is a negative number or
if the task is not currently running or
if the operation is not supported.public java.util.UUID getOID()
SchedulerObject
getOID
in interface SchedulerObject
public java.lang.String getName()
NamedObject
getName
in interface NamedObject
public void setName(java.lang.String name) throws SchedulerException
DescribedNamedObject
setName
in interface DescribedNamedObject
name
- the name to be set.SchedulerException
- if the name has wrong format.public java.lang.String getDescription()
DescribedNamedObject
getDescription
in interface DescribedNamedObject
public void setDescription(java.lang.String description)
DescribedNamedObject
setDescription
in interface DescribedNamedObject
description
- the value to be set.public java.lang.String getAuthor()
SchedulerObject
getAuthor
in interface SchedulerObject
public java.util.Date getCreationTime()
SchedulerObject
getCreationTime
in interface SchedulerObject
public java.util.Date getLastUpdateTime()
SchedulerObject
getLastUpdateTime
in interface SchedulerObject
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.