Package com.saperion.wf
Class TaskInfoImpl
- java.lang.Object
-
- com.saperion.wf.WorkflowDataHolder
-
- com.saperion.wf.TaskInfoImpl
-
- All Implemented Interfaces:
TaskInfo
,java.io.Serializable
public final class TaskInfoImpl extends WorkflowDataHolder implements TaskInfo
- Author:
- rbo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaskInfoImpl(java.util.Map<java.lang.String,java.lang.Object> propertyMap, java.lang.String ddcName, java.util.Map<java.lang.String,SaConstants.SaFieldType> fieldTypes)
Constructor from property map.
-
Method Summary
-
Methods inherited from class com.saperion.wf.WorkflowDataHolder
getDateValue, getIntValue, getStringValue
-
-
-
-
Constructor Detail
-
TaskInfoImpl
public TaskInfoImpl(java.util.Map<java.lang.String,java.lang.Object> propertyMap, java.lang.String ddcName, java.util.Map<java.lang.String,SaConstants.SaFieldType> fieldTypes)
Constructor from property map.- Parameters:
propertyMap
- Property MapddcName
- Workflow DDC namefieldTypes
- Fieldtype list
-
-
Method Detail
-
writeXML
public void writeXML(org.xml.sax.ContentHandler hd) throws org.xml.sax.SAXException
Writes data as xml part.- Parameters:
hd
- Content handler- Throws:
org.xml.sax.SAXException
- Exception
-
getErrMsg
public java.lang.String getErrMsg()
- Specified by:
getErrMsg
in interfaceTaskInfo
- Returns:
- the errMsg
- See Also:
TaskInfo.getErrMsg()
-
getUserDefined
public java.util.Map<java.lang.String,SaPropertyValue> getUserDefined()
- Specified by:
getUserDefined
in interfaceTaskInfo
- Returns:
- the userDefined fields
- See Also:
TaskInfo.getUserDefined()
-
getSysFields
public java.util.Map<java.lang.String,SaPropertyValue> getSysFields()
- Specified by:
getSysFields
in interfaceTaskInfo
- Returns:
- the system fields
- See Also:
TaskInfo.getSysFields()
-
getUserDefined
public SaPropertyValue getUserDefined(java.lang.String fieldName)
- Specified by:
getUserDefined
in interfaceTaskInfo
- Parameters:
fieldName
- Field name- Returns:
- Field value
- See Also:
TaskInfo.getUserDefined(java.lang.String)
-
getEscalationHoldInfo
public EscalationHoldInfo getEscalationHoldInfo()
- Specified by:
getEscalationHoldInfo
in interfaceTaskInfo
- Returns:
- the escalationHoldInfo
- See Also:
TaskInfo.getEscalationHoldInfo()
-
getTaskTimeInfo
public TimeInfo getTaskTimeInfo()
- Specified by:
getTaskTimeInfo
in interfaceTaskInfo
- Returns:
- the taskTimeInfo
- See Also:
TaskInfo.getTaskTimeInfo()
-
getLastTaskInfo
public LastTaskInfo getLastTaskInfo()
- Specified by:
getLastTaskInfo
in interfaceTaskInfo
- Returns:
- the lastInfo
- See Also:
TaskInfo.getLastTaskInfo()
-
getProcessInfo
public ProcessInfo getProcessInfo()
- Specified by:
getProcessInfo
in interfaceTaskInfo
- Returns:
- the processInfo
- See Also:
TaskInfo.getProcessInfo()
-
getSubject
public java.lang.String getSubject()
- Specified by:
getSubject
in interfaceTaskInfo
- Returns:
- the subject
- See Also:
TaskInfo.getSubject()
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfaceTaskInfo
- Returns:
- the priority
- See Also:
TaskInfo.getPriority()
-
getActivityId
public int getActivityId()
- Specified by:
getActivityId
in interfaceTaskInfo
- Returns:
- the activity Id
- See Also:
TaskInfo.getActivityId()
-
getActor
public ActorInfo getActor()
- Specified by:
getActor
in interfaceTaskInfo
- Returns:
- the user
- See Also:
TaskInfo.getActor()
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceTaskInfo
- Returns:
- the description
- See Also:
TaskInfo.getDescription()
-
getFlags
public int getFlags()
- Specified by:
getFlags
in interfaceTaskInfo
- Returns:
- the flags
- See Also:
TaskInfo.getFlags()
-
getInfoFlags
public TaskInfoFlags getInfoFlags()
- Specified by:
getInfoFlags
in interfaceTaskInfo
- Returns:
- Task info flags
- See Also:
TaskInfo.getInfoFlags()
-
getReceiveDate
public java.util.Date getReceiveDate()
- Specified by:
getReceiveDate
in interfaceTaskInfo
- Returns:
- the receiveDate
- See Also:
TaskInfo.getReceiveDate()
-
canDelete
public boolean canDelete()
- Specified by:
canDelete
in interfaceTaskInfo
- Returns:
- can delete (the only workflow-item that can be deleted is a notification)
- See Also:
TaskInfo.canDelete()
-
canPutBack
public boolean canPutBack()
- Specified by:
canPutBack
in interfaceTaskInfo
- Returns:
- can put back (is a pool task)
- See Also:
TaskInfo.canPutBack()
-
isError
public boolean isError()
- Specified by:
isError
in interfaceTaskInfo
- Returns:
- error in task
- See Also:
TaskInfo.isError()
-
isEscalation
public boolean isEscalation()
- Specified by:
isEscalation
in interfaceTaskInfo
- Returns:
- escalation (missed deadline)
- See Also:
TaskInfo.isEscalation()
-
hasNewComment
public boolean hasNewComment()
- Specified by:
hasNewComment
in interfaceTaskInfo
- Returns:
- task has new comment
- See Also:
TaskInfo.hasNewComment()
-
isPaused
public boolean isPaused()
- Specified by:
isPaused
in interfaceTaskInfo
- Returns:
- task is paused
- See Also:
TaskInfo.isPaused()
-
isProxy
public boolean isProxy()
- Specified by:
isProxy
in interfaceTaskInfo
- Returns:
- user is a substitute
- See Also:
TaskInfo.isProxy()
-
isReminderReached
public boolean isReminderReached()
- Specified by:
isReminderReached
in interfaceTaskInfo
- Returns:
- reminder reached
- See Also:
TaskInfo.isReminderReached()
-
canApprove
public boolean canApprove()
- Specified by:
canApprove
in interfaceTaskInfo
- Returns:
- Can approve
- See Also:
TaskInfo.canApprove()
-
canEditDoc
public boolean canEditDoc()
- Specified by:
canEditDoc
in interfaceTaskInfo
- Returns:
- Can edit doc
- See Also:
TaskInfo.canEditDoc()
-
canEditDocindex
public boolean canEditDocindex()
- Specified by:
canEditDocindex
in interfaceTaskInfo
- Returns:
- Can edit document index
- See Also:
TaskInfo.canEditDocindex()
-
canEditIndex
public boolean canEditIndex()
- Specified by:
canEditIndex
in interfaceTaskInfo
- Returns:
- Can edit index
- See Also:
TaskInfo.canEditIndex()
-
canForward
public boolean canForward()
- Specified by:
canForward
in interfaceTaskInfo
- Returns:
- Can forward
- See Also:
TaskInfo.canForward()
-
canNotResponsible
public boolean canNotResponsible()
- Specified by:
canNotResponsible
in interfaceTaskInfo
- Returns:
- Can not responsible
- See Also:
TaskInfo.canNotResponsible()
-
canReject
public boolean canReject()
- Specified by:
canReject
in interfaceTaskInfo
- Returns:
- Can reject
- See Also:
TaskInfo.canReject()
-
canRework
public boolean canRework()
- Specified by:
canRework
in interfaceTaskInfo
- Returns:
- Can rework
- See Also:
TaskInfo.canRework()
-
canTake
public boolean canTake()
- Specified by:
canTake
in interfaceTaskInfo
- Returns:
- Can take
- See Also:
TaskInfo.canTake()
-
hasChilds
public boolean hasChilds()
- Specified by:
hasChilds
in interfaceTaskInfo
- Returns:
- Has childs
- See Also:
TaskInfo.hasChilds()
-
hasComment
public boolean hasComment()
- Specified by:
hasComment
in interfaceTaskInfo
- Returns:
- Has comment
- See Also:
TaskInfo.hasComment()
-
hasNewHistoryCommentSet
public boolean hasNewHistoryCommentSet()
- Specified by:
hasNewHistoryCommentSet
in interfaceTaskInfo
- Returns:
- New history comment set
- See Also:
TaskInfo.hasNewHistoryCommentSet()
-
isAdhoc
public boolean isAdhoc()
- Specified by:
isAdhoc
in interfaceTaskInfo
- Returns:
- Is adhoc
- See Also:
TaskInfo.isAdhoc()
-
isClientaction
public boolean isClientaction()
- Specified by:
isClientaction
in interfaceTaskInfo
- Returns:
- Is client action
- See Also:
TaskInfo.isClientaction()
-
isEntryOrExitFailed
public boolean isEntryOrExitFailed()
- Specified by:
isEntryOrExitFailed
in interfaceTaskInfo
- Returns:
- Entry or exit failed
- See Also:
TaskInfo.isEntryOrExitFailed()
-
isInactive
public boolean isInactive()
- Specified by:
isInactive
in interfaceTaskInfo
- Returns:
- Is inactive
- See Also:
TaskInfo.isInactive()
-
isLockDoc
public boolean isLockDoc()
- Specified by:
isLockDoc
in interfaceTaskInfo
- Returns:
- Is lock doc
- See Also:
TaskInfo.isLockDoc()
-
isNewCommentSet
public boolean isNewCommentSet()
- Specified by:
isNewCommentSet
in interfaceTaskInfo
- Returns:
- New comment set
- See Also:
TaskInfo.isNewCommentSet()
-
isNotPresent
public boolean isNotPresent()
- Specified by:
isNotPresent
in interfaceTaskInfo
- Returns:
- Not present
- See Also:
TaskInfo.isNotPresent()
-
isNotification
public boolean isNotification()
- Specified by:
isNotification
in interfaceTaskInfo
- Returns:
- Is notification
- See Also:
TaskInfo.isNotification()
-
isReminder
public boolean isReminder()
- Specified by:
isReminder
in interfaceTaskInfo
- Returns:
- Is reminder
- See Also:
TaskInfo.isReminder()
-
-