Class CommentEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.CommentEntity
-
- All Implemented Interfaces:
Serializable,DbEntity,HistoricEntity,Comment,Event
public class CommentEntity extends Object implements Comment, Event, DbEntity, HistoricEntity, Serializable
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringactionprotected StringfullMessageprotected Stringidprotected Stringmessagestatic StringMESSAGE_PARTS_MARKERprotected StringprocessInstanceIdprotected DateremovalTimeprotected StringrootProcessInstanceIdprotected StringtaskIdprotected StringtenantIdprotected Datetimeprotected Stringtypestatic StringTYPE_COMMENTstatic StringTYPE_EVENTprotected StringuserId-
Fields inherited from interface org.camunda.bpm.engine.task.Event
ACTION_ADD_ATTACHMENT, ACTION_ADD_COMMENT, ACTION_ADD_GROUP_LINK, ACTION_ADD_USER_LINK, ACTION_DELETE_ATTACHMENT, ACTION_DELETE_GROUP_LINK, ACTION_DELETE_USER_LINK
-
-
Constructor Summary
Constructors Constructor Description CommentEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAction()Indicates the type of of action and also indicates the meaning of the parts as exposed inEvent.getMessageParts()StringgetFullMessage()the full comment message the user had related to the task and/or process instancebyte[]getFullMessageBytes()StringgetId()comment idStringgetMessage()The message that can be used in case this action only has a single message part.List<String>getMessageParts()The meaning of the message parts is defined by the action as you can find inEvent.getAction()ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.StringgetProcessInstanceId()reference to the process instance on which this comment was madeDategetRemovalTime()The time the historic comment will be removed.StringgetRootProcessInstanceId()reference to the root process instance id of the process instance on which this comment was madeStringgetTaskId()reference to the task on which this comment was madeStringgetTenantId()DategetTime()time and date when the user made the commentStringgetType()StringgetUserId()reference to the user that made the commentvoidsetAction(String action)voidsetFullMessage(String fullMessage)voidsetFullMessageBytes(byte[] fullMessageBytes)voidsetId(String id)voidsetMessage(String message)voidsetMessage(String[] messageParts)voidsetProcessInstanceId(String processInstanceId)voidsetRemovalTime(Date removalTime)voidsetRootProcessInstanceId(String rootProcessInstanceId)voidsetTaskId(String taskId)voidsetTenantId(String tenantId)voidsetTime(Date time)voidsetType(String type)voidsetUserId(String userId)StringtoString()
-
-
-
Field Detail
-
TYPE_EVENT
public static final String TYPE_EVENT
- See Also:
- Constant Field Values
-
TYPE_COMMENT
public static final String TYPE_COMMENT
- See Also:
- Constant Field Values
-
id
protected String id
-
type
protected String type
-
userId
protected String userId
-
time
protected Date time
-
taskId
protected String taskId
-
processInstanceId
protected String processInstanceId
-
action
protected String action
-
message
protected String message
-
fullMessage
protected String fullMessage
-
tenantId
protected String tenantId
-
rootProcessInstanceId
protected String rootProcessInstanceId
-
removalTime
protected Date removalTime
-
MESSAGE_PARTS_MARKER
public static String MESSAGE_PARTS_MARKER
-
-
Method Detail
-
getPersistentState
public Object getPersistentState()
Description copied from interface:DbEntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentStatein interfaceDbEntity
-
getFullMessageBytes
public byte[] getFullMessageBytes()
-
setFullMessageBytes
public void setFullMessageBytes(byte[] fullMessageBytes)
-
setMessage
public void setMessage(String[] messageParts)
-
getMessageParts
public List<String> getMessageParts()
Description copied from interface:EventThe meaning of the message parts is defined by the action as you can find inEvent.getAction()- Specified by:
getMessagePartsin interfaceEvent
-
getUserId
public String getUserId()
Description copied from interface:Commentreference to the user that made the comment
-
setUserId
public void setUserId(String userId)
-
getTaskId
public String getTaskId()
Description copied from interface:Commentreference to the task on which this comment was made
-
setTaskId
public void setTaskId(String taskId)
-
getMessage
public String getMessage()
Description copied from interface:EventThe message that can be used in case this action only has a single message part.- Specified by:
getMessagein interfaceEvent
-
setMessage
public void setMessage(String message)
-
getTime
public Date getTime()
Description copied from interface:Commenttime and date when the user made the comment
-
setTime
public void setTime(Date time)
-
getProcessInstanceId
public String getProcessInstanceId()
Description copied from interface:Commentreference to the process instance on which this comment was made- Specified by:
getProcessInstanceIdin interfaceComment- Specified by:
getProcessInstanceIdin interfaceEvent
-
setProcessInstanceId
public void setProcessInstanceId(String processInstanceId)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getFullMessage
public String getFullMessage()
Description copied from interface:Commentthe full comment message the user had related to the task and/or process instance- Specified by:
getFullMessagein interfaceComment- See Also:
TaskService.getTaskComments(String)
-
setFullMessage
public void setFullMessage(String fullMessage)
-
getAction
public String getAction()
Description copied from interface:EventIndicates the type of of action and also indicates the meaning of the parts as exposed inEvent.getMessageParts()
-
setAction
public void setAction(String action)
-
getTenantId
public String getTenantId()
-
setTenantId
public void setTenantId(String tenantId)
-
getRootProcessInstanceId
public String getRootProcessInstanceId()
Description copied from interface:Commentreference to the root process instance id of the process instance on which this comment was made- Specified by:
getRootProcessInstanceIdin interfaceComment
-
setRootProcessInstanceId
public void setRootProcessInstanceId(String rootProcessInstanceId)
-
getRemovalTime
public Date getRemovalTime()
Description copied from interface:CommentThe time the historic comment will be removed.- Specified by:
getRemovalTimein interfaceComment
-
setRemovalTime
public void setRemovalTime(Date removalTime)
-
-