@Entity
public class ProcessLog
extends com.whitestein.lsps.common.AbstractEntity
Modifier and Type | Field and Description |
---|---|
static String |
DELETE_BY_MODEL_INSTANCES
Deletes logs of model instance.
|
static String |
FIND_BY_MODEL_INSTANCE
Finds logs by model instance and orders the result by the logIndex.
|
Modifier | Constructor and Description |
---|---|
protected |
ProcessLog()
Creates new empty instance of
ProcessLog . |
|
ProcessLog(ModelInstanceEntity modelInstance,
Long moduleInstanceId,
Long processInstanceId,
Long parentProcessInstanceId,
long logIndex,
Long modelId,
String elementId,
String elementName,
String elementClass,
Date logDate,
LogEvent event,
TerminationReason terminationReason,
Long tokenId,
Long executionId,
String oldState,
String newState,
String parentModelElementId,
String iteratorValue,
String message)
Creates new instance of
ProcessLog . |
|
ProcessLog(ModelInstanceEntity modelInstance,
ProcessInstance processInstance,
Long modelId,
String elementId,
String elementName,
String elementClass,
Date logDate,
LogEvent event,
TerminationReason terminationReason,
Long tokenId,
Long executionId,
String oldState,
String newState,
String parentModelElementId,
String iteratorValue)
Creates new instance of
ProcessLog . |
Modifier and Type | Method and Description |
---|---|
String |
getElementClass()
Returns the element class.
|
String |
getElementId()
Returns the element id.
|
String |
getElementName()
Returns the element name.
|
LogEvent |
getEvent()
Returns the event.
|
Long |
getExecutionId()
Returns the execution id.
|
String |
getIteratorValue() |
Date |
getLogDate()
Returns the logDate.
|
long |
getLogIndex()
Returns the logIndex of this log.
|
String |
getMessage()
Returns the log message.
|
Long |
getModelId() |
ModelInstanceEntity |
getModelInstance()
Returns the model instance.
|
Long |
getModuleInstanceId()
Returns the module instance id.
|
String |
getNewState()
Returns the new state.
|
String |
getOldState()
Returns the old state.
|
String |
getParentModelElementId() |
Long |
getParentProcessInstanceId()
Returns the parent process instance id.
|
Long |
getProcessInstanceId()
Returns the process instance id.
|
String |
getTerminationReason()
Returns the termination reason.
|
Long |
getTokenId()
Returns the token id.
|
void |
setMessage(String message)
Sets the log message.
|
public static final String FIND_BY_MODEL_INSTANCE
public static final String DELETE_BY_MODEL_INSTANCES
protected ProcessLog()
ProcessLog
.public ProcessLog(ModelInstanceEntity modelInstance, ProcessInstance processInstance, Long modelId, String elementId, String elementName, String elementClass, Date logDate, LogEvent event, TerminationReason terminationReason, Long tokenId, Long executionId, String oldState, String newState, String parentModelElementId, String iteratorValue)
ProcessLog
. Full constructor.modelInstance
- processInstance
- modelId
- elementId
- elementName
- elementClass
- logDate
- event
- terminationReason
- tokenId
- executionId
- oldState
- newState
- parentModelElementId
- iteratorValue
- NullPointerException
- if model
or elementType
or logDate
or event
is
nullpublic ProcessLog(ModelInstanceEntity modelInstance, Long moduleInstanceId, Long processInstanceId, Long parentProcessInstanceId, long logIndex, Long modelId, String elementId, String elementName, String elementClass, Date logDate, LogEvent event, TerminationReason terminationReason, Long tokenId, Long executionId, String oldState, String newState, String parentModelElementId, String iteratorValue, String message)
ProcessLog
. Full constructor.modelInstance
- moduleInstanceId
- processInstanceId
- parentProcessInstanceId
- logIndex
- modelId
- elementId
- elementName
- elementClass
- logDate
- event
- terminationReason
- tokenId
- executionId
- oldState
- newState
- parentModelElementId
- iteratorValue
- message
- the log messageNullPointerException
- if model
or logDate
or event
is nullpublic ModelInstanceEntity getModelInstance()
public String getElementId()
public String getElementName()
public String getElementClass()
public Long getModuleInstanceId()
public Long getProcessInstanceId()
public Long getModelId()
public long getLogIndex()
public Date getLogDate()
public LogEvent getEvent()
public Long getParentProcessInstanceId()
public String getTerminationReason()
public String getOldState()
public String getNewState()
public Long getTokenId()
public Long getExecutionId()
public String getParentModelElementId()
public String getIteratorValue()
public String getMessage()
public void setMessage(String message)
message
- the message to setCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.