public class HistoryRecord
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
HistoryRecord.ProcessModelInfo
Information about a process model, including id, version, name and uuid.
|
Modifier and Type | Field and Description |
---|---|
static int |
OBJECT_TYPE_PROCESS |
static int |
OBJECT_TYPE_TASK |
static int |
OBJECT_TYPE_VARIABLE |
static java.lang.Integer |
SORT_BY_DATA_IDS |
static java.lang.Integer |
SORT_BY_DIRECTION |
static java.lang.Integer |
SORT_BY_GROUPS |
static java.lang.Integer |
SORT_BY_NEW_NAME |
static java.lang.Integer |
SORT_BY_NEW_PRIORITY |
static java.lang.Integer |
SORT_BY_NEW_TIMESTAMP |
static java.lang.Integer |
SORT_BY_NEW_VALUE |
static java.lang.Integer |
SORT_BY_OBJECT_ID |
static java.lang.Integer |
SORT_BY_OBJECT_NAME |
static java.lang.Integer |
SORT_BY_OBJECT_TYPE |
static java.lang.Integer |
SORT_BY_SAVED_AS_VERSION |
static java.lang.Integer |
SORT_BY_SOURCE_MODEL_INFO |
static java.lang.Integer |
SORT_BY_TARGET_MODEL_INFO |
static java.lang.Integer |
SORT_BY_TIMESTAMP |
static java.lang.Integer |
SORT_BY_TYPE |
static java.lang.Integer |
SORT_BY_USER |
static java.lang.Integer |
SORT_BY_USERS |
static int |
TYPE_ADD_ATTACHMENT |
static int |
TYPE_ADD_NOTE |
static int |
TYPE_ADD_VARIABLE |
static int |
TYPE_ASSIGNED |
static int |
TYPE_CANCEL |
static int |
TYPE_CHANGE_PRIORITY |
static int |
TYPE_COMPLETE |
static int |
TYPE_EDIT_PROCESS
Represents an edit of a process from Edit Mode.
|
static int |
TYPE_ESCALATED |
static int |
TYPE_ESCALATION_NOTIFICATION |
static int |
TYPE_EVENT_ABORT |
static int |
TYPE_EVENT_ACTIVATE |
static int |
TYPE_EVENT_CANCEL |
static int |
TYPE_EVENT_FIRE |
static int |
TYPE_MODIFY_EXTERNAL_VARIABLE |
static int |
TYPE_MODIFY_NAME |
static int |
TYPE_MODIFY_VARIABLE |
static int |
TYPE_PAUSE |
static int |
TYPE_REASSIGNED |
static int |
TYPE_REMOVE_ATTACHMENT |
static int |
TYPE_REMOVE_NOTE |
static int |
TYPE_RESUME |
static int |
TYPE_SCHEDULE |
static int |
TYPE_START |
static int |
TYPE_UPGRADE_PROCESS
Represents an upgrade of a process to a new process model.
|
Constructor and Description |
---|
HistoryRecord() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static java.util.Comparator |
getComparator(int sortKey)
Comparator for HistoryRecord
|
java.lang.Object |
getData()
Get the associated data for the history record; note, those history records that
return multiple objects will return them as an Object[].
|
java.lang.Long[] |
getDataIds()
Set only by history types ADD_ATTACHMENT, REMOVE_ATTACHMENT, ADD_NOTE, REMOVE_NOTE
|
java.lang.Long |
getDirection()
Set only by history type CHANGE_PRIORITY
|
int |
getEngineId()
This is 0 for EXEC00, 1 for EXEC01, etc.
|
java.lang.Long[] |
getGroups()
Set only by history types ESCALATION_NOTIFICATION, REASSIGNED, ASSIGNED
|
java.lang.String |
getNewName() |
java.lang.Long |
getNewPriority()
Set only by history type CHANGE_PRIORITY
|
java.sql.Timestamp |
getNewTimestamp()
Set only by history type SCHEDULE
|
TypedValue |
getNewValue()
Set only by history type MODIFY_VARIABLE.
|
java.lang.Long |
getObjectId()
Id of the object in the history record.
|
java.lang.String |
getObjectName()
Name of the object in the history record.
|
int |
getObjectType()
Type of the object in the history record.
|
java.lang.String |
getSavedAsVersion()
Gets the resulting process model version that the edited process was saved as.
|
HistoryRecord.ProcessModelInfo |
getSourceModel()
Gets a ProcessModelInfo object representing the source process model that was in use
before the process upgrade.
|
HistoryRecord.ProcessModelInfo |
getTargetModel()
Gets a ProcessModelInfo object representing the target process model to which the
process was upgraded.
|
java.sql.Timestamp |
getTimestamp()
Timestamp at which this modification occurred.
|
int |
getType()
Type of this history record (e.g., START is 6, MODIFY_VARIABLE is 17, etc.)
|
java.lang.String |
getUser()
The user responsible for the history record.
|
java.lang.String[] |
getUsers()
Set only by history types ESCALATION_NOTIFICATION, REASSIGNED, ASSIGNED
|
int |
getWriteCounter()
This advances by one every time a write to external (set, modify, or
delete) occurs within an engine.
|
int |
getWriteEpoch()
Whenever the writeCounter advances beyond Integer.MAX_VALUE, it resets to
0, and the writeEpoch increases by one.
|
long |
getWriteIndex()
The writeIndex encapsulates both writeCounter and writeEpoch into a single value.
|
int |
hashCode() |
void |
setDataIds(java.lang.Long[] dataIds_) |
void |
setDirection(java.lang.Long direction_) |
void |
setEngineId(int engineId_)
This is 0 for EXEC00, 1 for EXEC01, etc.
|
void |
setGroups(java.lang.Long[] groups_) |
void |
setIndex(int[] indices) |
void |
setIndex(java.lang.Integer[] indices) |
void |
setNewName(java.lang.String newName_)
Set only by history types ADD_VARIABLE, MODIFY_NAME
|
void |
setNewPriority(java.lang.Long newPriority_) |
void |
setNewTimestamp(java.sql.Timestamp newTimestamp_) |
void |
setNewValue(TypedValue newValue_) |
void |
setObjectId(java.lang.Long objectId_) |
void |
setObjectName(java.lang.String objectName_) |
void |
setObjectType(int objectType_) |
void |
setSavedAsVersion(java.lang.String savedAsVersion)
Sets the process model version that the edited process was saved as.
|
void |
setSourceModel(HistoryRecord.ProcessModelInfo sourceModel)
Sets the ProcessModelInfo object representing the source process model that was in
use before the process upgrade.
|
void |
setTargetModel(HistoryRecord.ProcessModelInfo targetModel)
Sets the ProcessModelInfo object representing the target process model to which the
process was upgraded.
|
void |
setTimestamp(java.sql.Timestamp timestamp_) |
void |
setType(int historyType_) |
void |
setUser(java.lang.String user_) |
void |
setUsers(java.lang.String[] users_) |
void |
setWriteCounter(int writeCounter_) |
void |
setWriteEpoch(int writeEpoch_) |
void |
setWriteIndex(long value)
The writeIndex encapsulates both writeCounter and writeEpoch into a single value.
|
java.lang.String |
toString()
Only intended to help debugging.
|
public static final int TYPE_CHANGE_PRIORITY
public static final int TYPE_SCHEDULE
public static final int TYPE_ASSIGNED
public static final int TYPE_REASSIGNED
public static final int TYPE_ESCALATED
public static final int TYPE_ESCALATION_NOTIFICATION
public static final int TYPE_START
public static final int TYPE_CANCEL
public static final int TYPE_PAUSE
public static final int TYPE_RESUME
public static final int TYPE_COMPLETE
public static final int TYPE_ADD_ATTACHMENT
public static final int TYPE_REMOVE_ATTACHMENT
public static final int TYPE_ADD_NOTE
public static final int TYPE_REMOVE_NOTE
public static final int TYPE_MODIFY_NAME
public static final int TYPE_MODIFY_VARIABLE
public static final int TYPE_ADD_VARIABLE
public static final int TYPE_EVENT_ACTIVATE
public static final int TYPE_EVENT_FIRE
public static final int TYPE_EVENT_CANCEL
public static final int TYPE_EVENT_ABORT
public static final int TYPE_MODIFY_EXTERNAL_VARIABLE
public static final int TYPE_EDIT_PROCESS
public static final int TYPE_UPGRADE_PROCESS
public static final int OBJECT_TYPE_PROCESS
public static final int OBJECT_TYPE_TASK
public static final int OBJECT_TYPE_VARIABLE
public static final java.lang.Integer SORT_BY_USER
public static final java.lang.Integer SORT_BY_TIMESTAMP
public static final java.lang.Integer SORT_BY_TYPE
public static final java.lang.Integer SORT_BY_OBJECT_TYPE
public static final java.lang.Integer SORT_BY_OBJECT_ID
public static final java.lang.Integer SORT_BY_OBJECT_NAME
public static final java.lang.Integer SORT_BY_NEW_VALUE
public static final java.lang.Integer SORT_BY_NEW_NAME
public static final java.lang.Integer SORT_BY_DATA_IDS
public static final java.lang.Integer SORT_BY_USERS
public static final java.lang.Integer SORT_BY_GROUPS
public static final java.lang.Integer SORT_BY_NEW_TIMESTAMP
public static final java.lang.Integer SORT_BY_DIRECTION
public static final java.lang.Integer SORT_BY_NEW_PRIORITY
public static final java.lang.Integer SORT_BY_SAVED_AS_VERSION
public static final java.lang.Integer SORT_BY_SOURCE_MODEL_INFO
public static final java.lang.Integer SORT_BY_TARGET_MODEL_INFO
public java.lang.Object getData()
public int getType()
public void setType(int historyType_)
public java.sql.Timestamp getTimestamp()
public void setTimestamp(java.sql.Timestamp timestamp_)
public java.lang.Long getObjectId()
public void setObjectId(java.lang.Long objectId_)
public java.lang.String getObjectName()
public void setObjectName(java.lang.String objectName_)
public int getObjectType()
public void setObjectType(int objectType_)
public java.lang.String getUser()
public void setUser(java.lang.String user_)
public TypedValue getNewValue()
public void setNewValue(TypedValue newValue_)
public java.lang.Long[] getDataIds()
public void setDataIds(java.lang.Long[] dataIds_)
public java.lang.Long getDirection()
public void setDirection(java.lang.Long direction_)
public java.lang.Long[] getGroups()
public void setGroups(java.lang.Long[] groups_)
public java.lang.String getNewName()
public void setNewName(java.lang.String newName_)
newName_
- public java.lang.Long getNewPriority()
public void setNewPriority(java.lang.Long newPriority_)
public java.sql.Timestamp getNewTimestamp()
public void setNewTimestamp(java.sql.Timestamp newTimestamp_)
public java.lang.String[] getUsers()
public void setUsers(java.lang.String[] users_)
public java.lang.String getSavedAsVersion()
public void setSavedAsVersion(java.lang.String savedAsVersion)
savedAsVersion
- the process model version that the edited process was saved aspublic HistoryRecord.ProcessModelInfo getSourceModel()
public void setSourceModel(HistoryRecord.ProcessModelInfo sourceModel)
sourceModel
- a ProcessModelInfo object representing the source process modelpublic HistoryRecord.ProcessModelInfo getTargetModel()
public void setTargetModel(HistoryRecord.ProcessModelInfo targetModel)
targetModel
- a ProcessModelInfo object representing the target process modelpublic long getWriteIndex()
public void setWriteIndex(long value)
public int getWriteCounter()
public void setWriteCounter(int writeCounter_)
writeCounter_
- the writeCounter to setpublic int getWriteEpoch()
public void setWriteEpoch(int writeEpoch_)
writeEpoch_
- the writeEpoch to setpublic int getEngineId()
public void setEngineId(int engineId_)
engineId_
- the engineId to setpublic void setIndex(java.lang.Integer[] indices)
public void setIndex(int[] indices)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public static java.util.Comparator getComparator(int sortKey)
sortKey
- Copyright © 2003-2024 Appian Corporation. All Rights Reserved.