public class SModelInstance extends Object implements SXmlEntity
Modifier and Type | Field and Description |
---|---|
static String |
SCHEMA_NAMESPACE
ModelInstance schema namespace.
|
Constructor and Description |
---|
SModelInstance()
Creates new empty instance of
SModelInstance . |
Modifier and Type | Method and Description |
---|---|
void |
addEscalation(SEscalation escalation) |
void |
addLog(SProcessLog log) |
void |
addModuleInstance(SModuleInstance moduleInstance) |
void |
addProxySet(SRecordProxySet proxySet) |
void |
addSignal(SSignal signal) |
void |
addTopNoBaseLevelContext(SContext c) |
void |
addValue(SComplexValue value) |
long |
getCurrentInternalVersion()
Returns current internal version,
|
Long |
getDetachingTaskId()
Returns id of a task for which the detached model instance is created.
|
Long |
getDetachmentId()
Returns the last allocated detachment id.
|
String |
getDocumentDescription()
Gets a description of a document or
null if no document
description has been set for this model instance. |
List<SEscalation> |
getEscalations()
Returns a new list which holds all escalations in the model instance.
|
Set<String> |
getEvaluationLevelsOnDetach()
Set of used evaluation levels at the moment of detachment.
|
Date |
getFinishedDate()
Returns the finished date.
|
Long |
getId()
Returns the id.
|
long |
getIdSeq()
Returns the current id.
|
long |
getInternalVersionSeq() |
List<SProcessLog> |
getLogs()
Returns list of process logs.
|
long |
getMaxAllocatedId()
Returns maximal allocated id.
|
String |
getModelHash()
Returns the model hash.
|
long |
getModelId()
Returns the model id.
|
Long |
getModelInstanceMigrationId()
Returns the model instance migration id.
|
String |
getModelName()
Returns the model name.
|
String |
getModelVersion()
Returns the model version.
|
Collection<SModuleInstance> |
getModuleInstances()
Returns all modules in this model instance.
|
Long |
getParentId()
Returns the parent id.
|
Map<String,String> |
getProperties()
Returns the properties
|
Set<SRecordProxySet> |
getProxySets() |
Collection<SSignal> |
getSignals()
Returns the signals as an unmodifiable view.
|
Date |
getStartedDate()
Returns the started date.
|
ModelInstanceState |
getState()
Returns life-cycle state.
|
Set<SContext> |
getTopNoBaseLevelContexts()
Returns top contexts from evaluation levels higher that base level.
|
ModelInstanceType |
getType()
Returns model instance type.
|
Collection<SComplexValue> |
getValues()
Returns the model instance complex values.
|
boolean |
isCreateProcessLog() |
boolean |
isDetached()
Returns true if the model instance is detached.
|
boolean |
isDirty()
Returns true if the model instance is dirty.
|
boolean |
isFinished()
Returns true if the model instance is finished.
|
boolean |
isTrackingDirty()
Returns true if tracking of dirtiness is switched on.
|
boolean |
isUsingEvaluationLevels()
Returns true is a detached model instance is using evaluation levels.
|
void |
postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked after unmarshalling XML data into target.
|
void |
preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked before unmarshalling into target.
|
void |
setCreateProcessLog(boolean createProcessLog) |
void |
setDetachingTaskId(Long detachingTaskId) |
void |
setDetachmentId(Long detachmentId) |
void |
setDirty(boolean isDirty)
Sets isDirty.
|
void |
setDocumentDescription(String documentDescription)
Sets the description of a document for this model instance.
|
void |
setEvaluationLevelsOnDetach(Set<String> evaluationLevelsOnDetach) |
void |
setFinishedDate(Date finishedDate)
Sets the finished date.
|
void |
setId(Long id)
Sets the id.
|
void |
setIdSeq(long idSeq) |
void |
setInternalVersionSeq(long internalVersionSeq) |
void |
setMaxAllocatedId(long maxAllocatedId) |
void |
setModelHash(String modelHash)
Sets the model hash.
|
void |
setModelId(long modelId)
Sets the model id.
|
void |
setModelInstanceMigrationId(Long modelInstanceMigrationId)
Sets the model instance migration id.
|
void |
setModelName(String modelName)
Sets the model name.
|
void |
setModelVersion(String modelVersion)
Sets the model version.
|
void |
setParentId(Long parentId) |
void |
setProperties(Map<String,String> map) |
void |
setStartedDate(Date startedDate)
Sets the started date.
|
void |
setState(ModelInstanceState state) |
void |
setTrackingDirty(boolean isTrackingDirty)
Switch on/off checking of dirtiness.
|
void |
setType(ModelInstanceType type) |
void |
setUsingEvaluationLevels(boolean b) |
String |
toString() |
public static final String SCHEMA_NAMESPACE
public SModelInstance()
SModelInstance
.public Long getId()
public void setId(Long id)
id
- public long getModelId()
public void setModelId(long modelId)
modelId
- public Long getModelInstanceMigrationId()
public void setModelInstanceMigrationId(Long modelInstanceMigrationId)
modelInstanceMigrationId
- public String getModelName()
public void setModelName(String modelName)
modelName
- public String getModelVersion()
public void setModelVersion(String modelVersion)
modelVersion
- public String getModelHash()
public void setModelHash(String modelHash)
modelHash
- public boolean isCreateProcessLog()
public void setCreateProcessLog(boolean createProcessLog)
createProcessLog
- the createProcessLog to setpublic ModelInstanceState getState()
public void setState(ModelInstanceState state)
public ModelInstanceType getType()
public void setType(ModelInstanceType type)
public boolean isFinished()
public boolean isDetached()
public Date getStartedDate()
public Date getFinishedDate()
public void setStartedDate(Date startedDate)
startedDate
- public void setFinishedDate(Date finishedDate)
finishedDate
- public Collection<SSignal> getSignals()
public void addSignal(SSignal signal)
public List<SEscalation> getEscalations()
public void addEscalation(SEscalation escalation)
public Long getDetachmentId()
public void setDetachmentId(Long detachmentId)
public Long getDetachingTaskId()
public void setDetachingTaskId(Long detachingTaskId)
public boolean isUsingEvaluationLevels()
public void setUsingEvaluationLevels(boolean b)
public long getMaxAllocatedId()
public void setMaxAllocatedId(long maxAllocatedId)
public long getIdSeq()
public void setIdSeq(long idSeq)
public long getInternalVersionSeq()
public void setInternalVersionSeq(long internalVersionSeq)
public long getCurrentInternalVersion()
public Long getParentId()
public void setParentId(Long parentId)
public Collection<SComplexValue> getValues()
public void addValue(SComplexValue value)
public Collection<SModuleInstance> getModuleInstances()
public void addModuleInstance(SModuleInstance moduleInstance)
public List<SProcessLog> getLogs()
public void addLog(SProcessLog log)
public Set<SContext> getTopNoBaseLevelContexts()
public void addTopNoBaseLevelContext(SContext c)
public Set<String> getEvaluationLevelsOnDetach()
public void setEvaluationLevelsOnDetach(Set<String> evaluationLevelsOnDetach)
public void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
preUnmarshal
in interface UnmarshalCallback
parent
- instance of JAXB mapped class that will eventually reference target.
null when target is root element.public void postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
postUnmarshal
in interface UnmarshalCallback
parent
- instance of JAXB mapped class that will reference target.
null when target is root element.public boolean isDirty()
public void setDirty(boolean isDirty)
isDirty
- public boolean isTrackingDirty()
public void setTrackingDirty(boolean isTrackingDirty)
isTrackingDirty
- public String getDocumentDescription()
null
if no document
description has been set for this model instance.public void setDocumentDescription(String documentDescription)
documentDescription
- the document descriptionpublic void addProxySet(SRecordProxySet proxySet)
public Set<SRecordProxySet> getProxySets()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.