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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringstatic Stringprotected Stringprotected Dateprotected Stringprotected Stringprotected Stringprotected Dateprotected Stringstatic final Stringstatic final Stringprotected StringFields 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 -
Method Summary
Modifier and TypeMethodDescriptionIndicates the type of of action and also indicates the meaning of the parts as exposed inEvent.getMessageParts()the full comment message the user had related to the task and/or process instancebyte[]getId()comment idThe message that can be used in case this action only has a single message part.The meaning of the message parts is defined by the action as you can find inEvent.getAction()Returns a representation of the object, as would be stored in the database.reference to the process instance on which this comment was madeThe time the historic comment will be removed.reference to the root process instance id of the process instance on which this comment was madereference to the task on which this comment was madegetTime()time and date when the user made the commentgetType()reference to the user that made the commentvoidvoidsetFullMessage(String fullMessage) voidsetFullMessageBytes(byte[] fullMessageBytes) voidvoidsetMessage(String message) voidsetMessage(String[] messageParts) voidsetProcessInstanceId(String processInstanceId) voidsetRemovalTime(Date removalTime) voidsetRootProcessInstanceId(String rootProcessInstanceId) voidvoidsetTenantId(String tenantId) voidvoidvoidtoString()
-
Field Details
-
TYPE_EVENT
- See Also:
-
TYPE_COMMENT
- See Also:
-
id
-
type
-
userId
-
time
-
taskId
-
processInstanceId
-
action
-
message
-
fullMessage
-
tenantId
-
rootProcessInstanceId
-
removalTime
-
MESSAGE_PARTS_MARKER
-
-
Constructor Details
-
CommentEntity
public CommentEntity()
-
-
Method Details
-
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
-
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
-
getId
Description copied from interface:Commentcomment id -
setId
-
getUserId
Description copied from interface:Commentreference to the user that made the comment -
setUserId
-
getTaskId
Description copied from interface:Commentreference to the task on which this comment was made -
setTaskId
-
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
-
getTime
Description copied from interface:Commenttime and date when the user made the comment -
setTime
-
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
-
getType
-
setType
-
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:
-
setFullMessage
-
getAction
Description copied from interface:EventIndicates the type of of action and also indicates the meaning of the parts as exposed inEvent.getMessageParts() -
setAction
-
getTenantId
-
setTenantId
-
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
-
getRemovalTime
Description copied from interface:CommentThe time the historic comment will be removed.- Specified by:
getRemovalTimein interfaceComment
-
setRemovalTime
-
toString
-