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
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
static String
protected String
protected Date
protected String
protected String
protected String
protected Date
protected String
static final String
static final String
protected String
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
-
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 commentvoid
void
setFullMessage
(String fullMessage) void
setFullMessageBytes
(byte[] fullMessageBytes) void
void
setMessage
(String message) void
setMessage
(String[] messageParts) void
setProcessInstanceId
(String processInstanceId) void
setRemovalTime
(Date removalTime) void
setRootProcessInstanceId
(String rootProcessInstanceId) void
void
setTenantId
(String tenantId) void
void
void
toString()
-
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:DbEntity
Returns 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:
getPersistentState
in interfaceDbEntity
-
getFullMessageBytes
public byte[] getFullMessageBytes() -
setFullMessageBytes
public void setFullMessageBytes(byte[] fullMessageBytes) -
setMessage
-
getMessageParts
Description copied from interface:Event
The meaning of the message parts is defined by the action as you can find inEvent.getAction()
- Specified by:
getMessageParts
in interfaceEvent
-
getId
Description copied from interface:Comment
comment id -
setId
-
getUserId
Description copied from interface:Comment
reference to the user that made the comment -
setUserId
-
getTaskId
Description copied from interface:Comment
reference to the task on which this comment was made -
setTaskId
-
getMessage
Description copied from interface:Event
The message that can be used in case this action only has a single message part.- Specified by:
getMessage
in interfaceEvent
-
setMessage
-
getTime
Description copied from interface:Comment
time and date when the user made the comment -
setTime
-
getProcessInstanceId
Description copied from interface:Comment
reference to the process instance on which this comment was made- Specified by:
getProcessInstanceId
in interfaceComment
- Specified by:
getProcessInstanceId
in interfaceEvent
-
setProcessInstanceId
-
getType
-
setType
-
getFullMessage
Description copied from interface:Comment
the full comment message the user had related to the task and/or process instance- Specified by:
getFullMessage
in interfaceComment
- See Also:
-
setFullMessage
-
getAction
Description copied from interface:Event
Indicates 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:Comment
reference to the root process instance id of the process instance on which this comment was made- Specified by:
getRootProcessInstanceId
in interfaceComment
-
setRootProcessInstanceId
-
getRemovalTime
Description copied from interface:Comment
The time the historic comment will be removed.- Specified by:
getRemovalTime
in interfaceComment
-
setRemovalTime
-
toString
-