Package de.hybris.platform.task
Class TaskModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.task.TaskModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DistributedProcessTransitionTaskModel,DistributedProcessWorkerTaskModel,EscalationTaskModel,ProcessTaskModel,ScriptingTaskModel,TriggerTaskModel
public class TaskModel extends ItemModel
Generated model class for type Task first defined at extension processing.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCONDITIONSGenerated constant - Attribute key ofTask.conditionsattribute defined at extensionprocessing.static java.lang.StringCONTEXTGenerated constant - Attribute key ofTask.contextattribute defined at extensionprocessing.static java.lang.StringCONTEXTITEMGenerated constant - Attribute key ofTask.contextItemattribute defined at extensionprocessing.static java.lang.StringEXECUTIONDATEGenerated constant - Attribute key ofTask.executionDateattribute defined at extensionprocessing.static java.lang.StringEXECUTIONHOURMILLISGenerated constant - Attribute key ofTask.executionHourMillisattribute defined at extensionprocessing.static java.lang.StringEXECUTIONTIMEMILLISGenerated constant - Attribute key ofTask.executionTimeMillisattribute defined at extensionprocessing.static java.lang.StringEXPIRATIONDATEGenerated constant - Attribute key ofTask.expirationDateattribute defined at extensionprocessing.static java.lang.StringEXPIRATIONTIMEMILLISGenerated constant - Attribute key ofTask.expirationTimeMillisattribute defined at extensionprocessing.static java.lang.StringFAILEDGenerated constant - Attribute key ofTask.failedattribute defined at extensionprocessing.static java.lang.StringNODEGROUPGenerated constant - Attribute key ofTask.nodeGroupattribute defined at extensionprocessing.static java.lang.StringNODEIDGenerated constant - Attribute key ofTask.nodeIdattribute defined at extensionprocessing.static java.lang.StringRETRYGenerated constant - Attribute key ofTask.retryattribute defined at extensionprocessing.static java.lang.StringRUNNERBEANGenerated constant - Attribute key ofTask.runnerBeanattribute defined at extensionprocessing.static java.lang.StringRUNNINGONCLUSTERNODEGenerated constant - Attribute key ofTask.runningOnClusterNodeattribute defined at extensionprocessing.-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description TaskModel()Generated constructor - Default constructor for generic creation.TaskModel(ItemModel _owner, java.lang.String _runnerBean)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersTaskModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextTaskModel(java.lang.String _runnerBean)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<TaskConditionModel>getConditions()Generated method - Getter of theTask.conditionsattribute defined at extensionprocessing.java.lang.ObjectgetContext()Generated method - Getter of theTask.contextattribute defined at extensionprocessing.ItemModelgetContextItem()Generated method - Getter of theTask.contextItemattribute defined at extensionprocessing.java.util.DategetExecutionDate()Generated method - Getter of theTask.executionDatedynamic attribute defined at extensionprocessing.java.lang.LonggetExecutionTimeMillis()Generated method - Getter of theTask.executionTimeMillisattribute defined at extensionprocessing.java.util.DategetExpirationDate()Generated method - Getter of theTask.expirationDatedynamic attribute defined at extensionprocessing.java.lang.LonggetExpirationTimeMillis()Generated method - Getter of theTask.expirationTimeMillisattribute defined at extensionprocessing.java.lang.BooleangetFailed()Generated method - Getter of theTask.failedattribute defined at extensionprocessing.java.lang.StringgetNodeGroup()Generated method - Getter of theTask.nodeGroupattribute defined at extensionprocessing.java.lang.IntegergetNodeId()Generated method - Getter of theTask.nodeIdattribute defined at extensionprocessing.java.lang.IntegergetRetry()Generated method - Getter of theTask.retryattribute defined at extensionprocessing.java.lang.StringgetRunnerBean()Generated method - Getter of theTask.runnerBeanattribute defined at extensionprocessing.java.lang.IntegergetRunningOnClusterNode()Generated method - Getter of theTask.runningOnClusterNodeattribute defined at extensionprocessing.voidsetConditions(java.util.Set<TaskConditionModel> value)Generated method - Setter ofTask.conditionsattribute defined at extensionprocessing.voidsetContext(java.lang.Object value)Generated method - Setter ofTask.contextattribute defined at extensionprocessing.voidsetContextItem(ItemModel value)Generated method - Setter ofTask.contextItemattribute defined at extensionprocessing.voidsetExecutionDate(java.util.Date value)Generated method - Setter ofTask.executionDatedynamic attribute defined at extensionprocessing.voidsetExecutionHourMillis(java.lang.Long value)Generated method - Setter ofTask.executionHourMillisattribute defined at extensionprocessing.voidsetExecutionTimeMillis(java.lang.Long value)Generated method - Setter ofTask.executionTimeMillisattribute defined at extensionprocessing.voidsetExpirationDate(java.util.Date value)Generated method - Setter ofTask.expirationDatedynamic attribute defined at extensionprocessing.voidsetExpirationTimeMillis(java.lang.Long value)Generated method - Setter ofTask.expirationTimeMillisattribute defined at extensionprocessing.voidsetFailed(java.lang.Boolean value)Generated method - Setter ofTask.failedattribute defined at extensionprocessing.voidsetNodeGroup(java.lang.String value)Generated method - Setter ofTask.nodeGroupattribute defined at extensionprocessing.voidsetNodeId(java.lang.Integer value)Generated method - Setter ofTask.nodeIdattribute defined at extensionprocessing.voidsetRetry(java.lang.Integer value)Generated method - Setter ofTask.retryattribute defined at extensionprocessing.voidsetRunnerBean(java.lang.String value)Generated method - Setter ofTask.runnerBeanattribute defined at extensionprocessing.voidsetRunningOnClusterNode(java.lang.Integer value)Generated method - Setter ofTask.runningOnClusterNodeattribute defined at extensionprocessing.-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
RUNNERBEAN
public static final java.lang.String RUNNERBEAN
Generated constant - Attribute key ofTask.runnerBeanattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
EXECUTIONDATE
public static final java.lang.String EXECUTIONDATE
Generated constant - Attribute key ofTask.executionDateattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
EXECUTIONTIMEMILLIS
public static final java.lang.String EXECUTIONTIMEMILLIS
Generated constant - Attribute key ofTask.executionTimeMillisattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
EXECUTIONHOURMILLIS
public static final java.lang.String EXECUTIONHOURMILLIS
Generated constant - Attribute key ofTask.executionHourMillisattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
FAILED
public static final java.lang.String FAILED
Generated constant - Attribute key ofTask.failedattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
EXPIRATIONDATE
public static final java.lang.String EXPIRATIONDATE
Generated constant - Attribute key ofTask.expirationDateattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
EXPIRATIONTIMEMILLIS
public static final java.lang.String EXPIRATIONTIMEMILLIS
Generated constant - Attribute key ofTask.expirationTimeMillisattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
CONTEXT
public static final java.lang.String CONTEXT
Generated constant - Attribute key ofTask.contextattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
CONTEXTITEM
public static final java.lang.String CONTEXTITEM
Generated constant - Attribute key ofTask.contextItemattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
NODEID
public static final java.lang.String NODEID
Generated constant - Attribute key ofTask.nodeIdattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
NODEGROUP
public static final java.lang.String NODEGROUP
Generated constant - Attribute key ofTask.nodeGroupattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
RETRY
public static final java.lang.String RETRY
Generated constant - Attribute key ofTask.retryattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
RUNNINGONCLUSTERNODE
public static final java.lang.String RUNNINGONCLUSTERNODE
Generated constant - Attribute key ofTask.runningOnClusterNodeattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
CONDITIONS
public static final java.lang.String CONDITIONS
Generated constant - Attribute key ofTask.conditionsattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TaskModel
public TaskModel()
Generated constructor - Default constructor for generic creation.
-
TaskModel
public TaskModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
TaskModel
@Deprecated(since="4.1.1", forRemoval=true) public TaskModel(java.lang.String _runnerBean)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_runnerBean- initial attribute declared by typeTaskat extensionprocessing
-
TaskModel
@Deprecated(since="4.1.1", forRemoval=true) public TaskModel(ItemModel _owner, java.lang.String _runnerBean)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_owner- initial attribute declared by typeItemat extensioncore_runnerBean- initial attribute declared by typeTaskat extensionprocessing
-
-
Method Detail
-
getConditions
@Accessor(qualifier="conditions", type=GETTER) public java.util.Set<TaskConditionModel> getConditions()
Generated method - Getter of theTask.conditionsattribute defined at extensionprocessing. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the conditions
-
getContext
@Accessor(qualifier="context", type=GETTER) public java.lang.Object getContext()
Generated method - Getter of theTask.contextattribute defined at extensionprocessing.- Returns:
- the context
-
getContextItem
@Accessor(qualifier="contextItem", type=GETTER) public ItemModel getContextItem()
Generated method - Getter of theTask.contextItemattribute defined at extensionprocessing.- Returns:
- the contextItem
-
getExecutionDate
@Accessor(qualifier="executionDate", type=GETTER) public java.util.Date getExecutionDate()
Generated method - Getter of theTask.executionDatedynamic attribute defined at extensionprocessing.- Returns:
- the executionDate - Date after this task is to be executed
-
getExecutionTimeMillis
@Accessor(qualifier="executionTimeMillis", type=GETTER) public java.lang.Long getExecutionTimeMillis()
Generated method - Getter of theTask.executionTimeMillisattribute defined at extensionprocessing.- Returns:
- the executionTimeMillis - Internal representation to overcome database limitations!
-
getExpirationDate
@Accessor(qualifier="expirationDate", type=GETTER) public java.util.Date getExpirationDate()
Generated method - Getter of theTask.expirationDatedynamic attribute defined at extensionprocessing.- Returns:
- the expirationDate
-
getExpirationTimeMillis
@Accessor(qualifier="expirationTimeMillis", type=GETTER) public java.lang.Long getExpirationTimeMillis()
Generated method - Getter of theTask.expirationTimeMillisattribute defined at extensionprocessing.- Returns:
- the expirationTimeMillis - Date when this task is to be executed
-
getFailed
@Accessor(qualifier="failed", type=GETTER) public java.lang.Boolean getFailed()
Generated method - Getter of theTask.failedattribute defined at extensionprocessing.- Returns:
- the failed
-
getNodeGroup
@Accessor(qualifier="nodeGroup", type=GETTER) public java.lang.String getNodeGroup()
Generated method - Getter of theTask.nodeGroupattribute defined at extensionprocessing.- Returns:
- the nodeGroup
-
getNodeId
@Accessor(qualifier="nodeId", type=GETTER) public java.lang.Integer getNodeId()
Generated method - Getter of theTask.nodeIdattribute defined at extensionprocessing.- Returns:
- the nodeId
-
getRetry
@Accessor(qualifier="retry", type=GETTER) public java.lang.Integer getRetry()
Generated method - Getter of theTask.retryattribute defined at extensionprocessing.- Returns:
- the retry
-
getRunnerBean
@Accessor(qualifier="runnerBean", type=GETTER) public java.lang.String getRunnerBean()
Generated method - Getter of theTask.runnerBeanattribute defined at extensionprocessing.- Returns:
- the runnerBean
-
getRunningOnClusterNode
@Accessor(qualifier="runningOnClusterNode", type=GETTER) public java.lang.Integer getRunningOnClusterNode()
Generated method - Getter of theTask.runningOnClusterNodeattribute defined at extensionprocessing.- Returns:
- the runningOnClusterNode
-
setConditions
@Accessor(qualifier="conditions", type=SETTER) public void setConditions(java.util.Set<TaskConditionModel> value)
Generated method - Setter ofTask.conditionsattribute defined at extensionprocessing.- Parameters:
value- the conditions
-
setContext
@Accessor(qualifier="context", type=SETTER) public void setContext(java.lang.Object value)
Generated method - Setter ofTask.contextattribute defined at extensionprocessing.- Parameters:
value- the context
-
setContextItem
@Accessor(qualifier="contextItem", type=SETTER) public void setContextItem(ItemModel value)
Generated method - Setter ofTask.contextItemattribute defined at extensionprocessing.- Parameters:
value- the contextItem
-
setExecutionDate
@Accessor(qualifier="executionDate", type=SETTER) public void setExecutionDate(java.util.Date value)
Generated method - Setter ofTask.executionDatedynamic attribute defined at extensionprocessing.- Parameters:
value- the executionDate - Date after this task is to be executed
-
setExecutionHourMillis
@Accessor(qualifier="executionHourMillis", type=SETTER) public void setExecutionHourMillis(java.lang.Long value)
Generated method - Setter ofTask.executionHourMillisattribute defined at extensionprocessing.- Parameters:
value- the executionHourMillis - Internal representation to overcome database limitations!
-
setExecutionTimeMillis
@Accessor(qualifier="executionTimeMillis", type=SETTER) public void setExecutionTimeMillis(java.lang.Long value)
Generated method - Setter ofTask.executionTimeMillisattribute defined at extensionprocessing.- Parameters:
value- the executionTimeMillis - Internal representation to overcome database limitations!
-
setExpirationDate
@Accessor(qualifier="expirationDate", type=SETTER) public void setExpirationDate(java.util.Date value)
Generated method - Setter ofTask.expirationDatedynamic attribute defined at extensionprocessing.- Parameters:
value- the expirationDate
-
setExpirationTimeMillis
@Accessor(qualifier="expirationTimeMillis", type=SETTER) public void setExpirationTimeMillis(java.lang.Long value)
Generated method - Setter ofTask.expirationTimeMillisattribute defined at extensionprocessing.- Parameters:
value- the expirationTimeMillis - Date when this task is to be executed
-
setFailed
@Accessor(qualifier="failed", type=SETTER) public void setFailed(java.lang.Boolean value)
Generated method - Setter ofTask.failedattribute defined at extensionprocessing.- Parameters:
value- the failed
-
setNodeGroup
@Accessor(qualifier="nodeGroup", type=SETTER) public void setNodeGroup(java.lang.String value)
Generated method - Setter ofTask.nodeGroupattribute defined at extensionprocessing.- Parameters:
value- the nodeGroup
-
setNodeId
@Accessor(qualifier="nodeId", type=SETTER) public void setNodeId(java.lang.Integer value)
Generated method - Setter ofTask.nodeIdattribute defined at extensionprocessing.- Parameters:
value- the nodeId
-
setRetry
@Accessor(qualifier="retry", type=SETTER) public void setRetry(java.lang.Integer value)
Generated method - Setter ofTask.retryattribute defined at extensionprocessing.- Parameters:
value- the retry
-
setRunnerBean
@Accessor(qualifier="runnerBean", type=SETTER) public void setRunnerBean(java.lang.String value)
Generated method - Setter ofTask.runnerBeanattribute defined at extensionprocessing.- Parameters:
value- the runnerBean
-
-