Class TaskModel
- java.lang.Object
-
- com.aquima.interactions.process.dao.impl.TaskModel
-
- All Implemented Interfaces:
com.aquima.interactions.process.dao.IGenericTaskModel
,com.aquima.interactions.process.dao.ITaskModel
,Serializable
public class TaskModel extends Object implements com.aquima.interactions.process.dao.IGenericTaskModel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaskModel(long id, long caseId, Long parentId, com.aquima.interactions.process.dao.TaskType taskType, com.aquima.interactions.foundation.GUID nodeId, boolean conditional, boolean required, boolean userSet, com.aquima.interactions.process.TaskStatusType status, String name, com.aquima.interactions.process.dao.impl.AssigneeInfo assigneeInfo, com.aquima.interactions.foundation.types.DateTimeValue startDate, com.aquima.interactions.foundation.types.DateTimeValue timeoutDate, com.aquima.interactions.foundation.types.DateTimeValue dueDate, String exitState, String eventName, Integer priority, com.aquima.interactions.foundation.types.DateTimeValue lastPriorityCheck, Map<String,String> taskProperties, String[] unauthorizedUserIds, com.aquima.interactions.foundation.text.IMultilingualText displayName)
TaskModel(TaskModel other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskModel
duplicate()
com.aquima.interactions.process.dao.IAssigneeInfo
getAssigneeInfo()
long
getCaseId()
String[]
getCustomFields()
String
getCustomFieldValue(String name)
com.aquima.interactions.foundation.text.IMultilingualText
getDisplayName()
com.aquima.interactions.process.dao.impl.IDisplayNameModel
getDisplayName(String languageCode)
List<TaskDisplayNameModel>
getDisplayNames()
com.aquima.interactions.foundation.types.DateTimeValue
getDueDate()
String
getEventName()
String
getExecutedBy()
String
getExitState()
long
getId()
com.aquima.interactions.foundation.types.DateTimeValue
getLastPriorityCheck()
String
getName()
com.aquima.interactions.foundation.GUID
getNodeId()
Long
getParentId()
Integer
getPriority()
com.aquima.interactions.foundation.types.DateTimeValue
getStartDate()
com.aquima.interactions.process.TaskStatusType
getStatus()
com.aquima.interactions.foundation.types.DateTimeValue
getTimeoutDate()
com.aquima.interactions.process.dao.TaskType
getType()
String[]
getUnauthorizedUserIds()
boolean
isConditional()
boolean
isRequired()
boolean
isUserSet()
void
setAssignee(com.aquima.interactions.process.dao.IAssigneeInfo assigneeInfo)
void
setDisplayName(com.aquima.interactions.foundation.text.IMultilingualText displayName)
void
setDueDate(com.aquima.interactions.foundation.types.DateTimeValue dueDate)
void
setExecutedBy(String user)
void
setExitState(String exitState)
void
setLastPriorityCheck(com.aquima.interactions.foundation.types.DateTimeValue lastPriorityCheck)
void
setName(String name)
void
setPriority(Integer priority)
void
setRequired(boolean required)
void
setStartDate(com.aquima.interactions.foundation.types.DateTimeValue startDate)
void
setStatus(com.aquima.interactions.process.TaskStatusType status)
void
setTimeoutDate(com.aquima.interactions.foundation.types.DateTimeValue timeoutDate)
void
setUnauthorizedUserIds(String... unauthorizedUserIds)
void
setUserSet(boolean userSet)
String
toString()
com.aquima.interactions.trace.impl.TraceTaskDto
toTraceTaskDTO()
-
-
-
Constructor Detail
-
TaskModel
public TaskModel(long id, long caseId, Long parentId, com.aquima.interactions.process.dao.TaskType taskType, com.aquima.interactions.foundation.GUID nodeId, boolean conditional, boolean required, boolean userSet, com.aquima.interactions.process.TaskStatusType status, String name, com.aquima.interactions.process.dao.impl.AssigneeInfo assigneeInfo, com.aquima.interactions.foundation.types.DateTimeValue startDate, com.aquima.interactions.foundation.types.DateTimeValue timeoutDate, com.aquima.interactions.foundation.types.DateTimeValue dueDate, String exitState, String eventName, Integer priority, com.aquima.interactions.foundation.types.DateTimeValue lastPriorityCheck, Map<String,String> taskProperties, String[] unauthorizedUserIds, com.aquima.interactions.foundation.text.IMultilingualText displayName)
-
TaskModel
public TaskModel(TaskModel other)
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
getCaseId
public long getCaseId()
- Specified by:
getCaseId
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
getParentId
public Long getParentId()
- Specified by:
getParentId
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
getName
public String getName()
- Specified by:
getName
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setName
public void setName(String name)
-
getType
public com.aquima.interactions.process.dao.TaskType getType()
- Specified by:
getType
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
getStatus
public com.aquima.interactions.process.TaskStatusType getStatus()
- Specified by:
getStatus
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setStatus
public void setStatus(com.aquima.interactions.process.TaskStatusType status)
-
getAssigneeInfo
public com.aquima.interactions.process.dao.IAssigneeInfo getAssigneeInfo()
- Specified by:
getAssigneeInfo
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setAssignee
public void setAssignee(com.aquima.interactions.process.dao.IAssigneeInfo assigneeInfo)
-
getNodeId
public com.aquima.interactions.foundation.GUID getNodeId()
- Specified by:
getNodeId
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
getStartDate
public com.aquima.interactions.foundation.types.DateTimeValue getStartDate()
- Specified by:
getStartDate
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setStartDate
public void setStartDate(com.aquima.interactions.foundation.types.DateTimeValue startDate)
-
getTimeoutDate
public com.aquima.interactions.foundation.types.DateTimeValue getTimeoutDate()
- Specified by:
getTimeoutDate
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setTimeoutDate
public void setTimeoutDate(com.aquima.interactions.foundation.types.DateTimeValue timeoutDate)
-
getDueDate
public com.aquima.interactions.foundation.types.DateTimeValue getDueDate()
- Specified by:
getDueDate
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setDueDate
public void setDueDate(com.aquima.interactions.foundation.types.DateTimeValue dueDate)
-
getExitState
public String getExitState()
- Specified by:
getExitState
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setExitState
public void setExitState(String exitState)
-
isConditional
public boolean isConditional()
- Specified by:
isConditional
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
isRequired
public boolean isRequired()
- Specified by:
isRequired
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setRequired
public void setRequired(boolean required)
-
getEventName
public String getEventName()
- Specified by:
getEventName
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
getExecutedBy
public String getExecutedBy()
- Specified by:
getExecutedBy
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setExecutedBy
public void setExecutedBy(String user)
-
duplicate
public TaskModel duplicate()
-
getCustomFields
public String[] getCustomFields()
- Specified by:
getCustomFields
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
getCustomFieldValue
public String getCustomFieldValue(String name)
- Specified by:
getCustomFieldValue
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
getPriority
public Integer getPriority()
- Specified by:
getPriority
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setPriority
public void setPriority(Integer priority)
-
getLastPriorityCheck
public com.aquima.interactions.foundation.types.DateTimeValue getLastPriorityCheck()
- Specified by:
getLastPriorityCheck
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setLastPriorityCheck
public void setLastPriorityCheck(com.aquima.interactions.foundation.types.DateTimeValue lastPriorityCheck)
-
getUnauthorizedUserIds
public String[] getUnauthorizedUserIds()
- Specified by:
getUnauthorizedUserIds
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setUnauthorizedUserIds
public void setUnauthorizedUserIds(String... unauthorizedUserIds)
-
setDisplayName
public final void setDisplayName(com.aquima.interactions.foundation.text.IMultilingualText displayName)
- Specified by:
setDisplayName
in interfacecom.aquima.interactions.process.dao.IGenericTaskModel
-
getDisplayName
public com.aquima.interactions.process.dao.impl.IDisplayNameModel getDisplayName(String languageCode)
- Specified by:
getDisplayName
in interfacecom.aquima.interactions.process.dao.ITaskModel
- Parameters:
languageCode
- if null, returns the default display name(the one with no language code in the DB)- Returns:
- the
IDisplayNameModel
for the specific language code or for the default value if there is no description for the specific language, or null
-
getDisplayName
public com.aquima.interactions.foundation.text.IMultilingualText getDisplayName()
- Specified by:
getDisplayName
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
getDisplayNames
public List<TaskDisplayNameModel> getDisplayNames()
-
isUserSet
public boolean isUserSet()
- Specified by:
isUserSet
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
setUserSet
public void setUserSet(boolean userSet)
-
toTraceTaskDTO
public com.aquima.interactions.trace.impl.TraceTaskDto toTraceTaskDTO()
- Specified by:
toTraceTaskDTO
in interfacecom.aquima.interactions.process.dao.ITaskModel
-
-