Class 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 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 interface com.aquima.interactions.process.dao.ITaskModel
      • getCaseId

        public long getCaseId()
        Specified by:
        getCaseId in interface com.aquima.interactions.process.dao.ITaskModel
      • getParentId

        public Long getParentId()
        Specified by:
        getParentId in interface com.aquima.interactions.process.dao.ITaskModel
      • getName

        public String getName()
        Specified by:
        getName in interface com.aquima.interactions.process.dao.ITaskModel
      • setName

        public void setName​(String name)
      • getType

        public com.aquima.interactions.process.dao.TaskType getType()
        Specified by:
        getType in interface com.aquima.interactions.process.dao.ITaskModel
      • getStatus

        public com.aquima.interactions.process.TaskStatusType getStatus()
        Specified by:
        getStatus in interface com.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 interface com.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 interface com.aquima.interactions.process.dao.ITaskModel
      • getStartDate

        public com.aquima.interactions.foundation.types.DateTimeValue getStartDate()
        Specified by:
        getStartDate in interface com.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 interface com.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 interface com.aquima.interactions.process.dao.ITaskModel
      • setDueDate

        public void setDueDate​(com.aquima.interactions.foundation.types.DateTimeValue dueDate)
      • getExitState

        public String getExitState()
        Specified by:
        getExitState in interface com.aquima.interactions.process.dao.ITaskModel
      • setExitState

        public void setExitState​(String exitState)
      • isConditional

        public boolean isConditional()
        Specified by:
        isConditional in interface com.aquima.interactions.process.dao.ITaskModel
      • isRequired

        public boolean isRequired()
        Specified by:
        isRequired in interface com.aquima.interactions.process.dao.ITaskModel
      • setRequired

        public void setRequired​(boolean required)
      • getEventName

        public String getEventName()
        Specified by:
        getEventName in interface com.aquima.interactions.process.dao.ITaskModel
      • getExecutedBy

        public String getExecutedBy()
        Specified by:
        getExecutedBy in interface com.aquima.interactions.process.dao.ITaskModel
      • setExecutedBy

        public void setExecutedBy​(String user)
      • getCustomFields

        public String[] getCustomFields()
        Specified by:
        getCustomFields in interface com.aquima.interactions.process.dao.ITaskModel
      • getCustomFieldValue

        public String getCustomFieldValue​(String name)
        Specified by:
        getCustomFieldValue in interface com.aquima.interactions.process.dao.ITaskModel
      • getPriority

        public Integer getPriority()
        Specified by:
        getPriority in interface com.aquima.interactions.process.dao.ITaskModel
      • setPriority

        public void setPriority​(Integer priority)
      • getLastPriorityCheck

        public com.aquima.interactions.foundation.types.DateTimeValue getLastPriorityCheck()
        Specified by:
        getLastPriorityCheck in interface com.aquima.interactions.process.dao.ITaskModel
      • setLastPriorityCheck

        public void setLastPriorityCheck​(com.aquima.interactions.foundation.types.DateTimeValue lastPriorityCheck)
      • getUnauthorizedUserIds

        public String[] getUnauthorizedUserIds()
        Specified by:
        getUnauthorizedUserIds in interface com.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 interface com.aquima.interactions.process.dao.IGenericTaskModel
      • getDisplayName

        public com.aquima.interactions.process.dao.impl.IDisplayNameModel getDisplayName​(String languageCode)
        Specified by:
        getDisplayName in interface com.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 interface com.aquima.interactions.process.dao.ITaskModel
      • isUserSet

        public boolean isUserSet()
        Specified by:
        isUserSet in interface com.aquima.interactions.process.dao.ITaskModel
      • setUserSet

        public void setUserSet​(boolean userSet)
      • toTraceTaskDTO

        public com.aquima.interactions.trace.impl.TraceTaskDto toTraceTaskDTO()
        Specified by:
        toTraceTaskDTO in interface com.aquima.interactions.process.dao.ITaskModel