public class ModelInstance extends Object implements XmlEntity, Collectible, ModelInstanceAware
Modifier and Type | Field and Description |
---|---|
static String |
SCHEMA_NAMESPACE
ModelInstance schema namespace.
|
Modifier | Constructor and Description |
---|---|
protected |
ModelInstance()
Creates new empty instance of
ModelInstance . |
|
ModelInstance(long id,
long modelId,
Long modelInstanceMigrationId,
String modelName,
String modelVersion,
String modelHash,
CompatibilityVersion compatibilityVersion,
boolean createProcessLog,
Map<String,String> properties,
Long parentId,
ModelInstanceState state,
ModelInstanceType type,
Date startedDate,
Date finishedDate,
ModelInstanceResourceAllocator idAllocator,
long maxAllocatedId,
long currentId,
long curentInternalVersion,
Set<Context> topNoBaseLevelContexts,
Long detachmentId,
Long detachingTaskId,
Set<String> evaluationLevelsOnDetach,
Boolean isUsingEvaluationLevels)
Creates new instance of
ModelInstance . |
|
ModelInstance(long id,
long modelId,
String modelName,
String modelVersion,
String modelHash,
CompatibilityVersion compatibilityVersion,
ModelInstanceType type,
boolean createProcessLog,
Long parentId,
Map<String,String> properties,
ModelInstanceResourceAllocator idAllocator)
Creates new instance of
ModelInstance . |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener listener)
Adds change listener.
|
void |
addChangeListeners(Collection<? extends ChangeListener> listeners)
Adds change listeners.
|
void |
addEntityHolder(Object entity,
ExternalRecordHolder holder)
Adds entity - holder pair
|
void |
addEscalation(Escalation escalation)
Adds an escalation to this model instance.
|
void |
addExternalRecordListener(ExternalRecordListener listener)
Adds an external record listener.
|
void |
addLastPersisted(ExternalValue value)
Add to last persisted objects.
|
ModuleInstance |
addModuleInstance(ModuleInstance moduleInstance)
Adds a module to this model instance.
|
ModuleInstance |
addNewModuleInstance(Context context)
Adds new module instance.
|
ModuleInstance |
addNewModuleInstance(com.whitestein.lsps.model.ProcessModel processModel)
Adds new module instance.
|
void |
addProcessLog(ProcessLog log)
Adds a process log.
|
void |
addProperty(String name,
String value)
Adds a property.
|
void |
addSignal(Signal signal)
Adds a signal.
|
Signal |
addSignal(Value val)
Adds a new signal.
|
Signal |
addSignal(Value val,
String sourceDescritpion)
Adds a new signal.
|
void |
addTopNoBaseLevelContext(Context context)
adds top no-base level context
|
void |
addValue(ModelInstanceAware val)
Adds value.
|
void |
clearLoadedEntities()
Removes shared runtime values registered via
registerRuntimeValue(ComplexValue, Object) method. |
void |
clearRuntimeValues()
Clears all cached values inside runtime value objects.
|
void |
collect()
Removes itself from the process.
|
void |
collectGarbage()
Collects all
Collectible s which are not persistent and are not
directly or indirectly referenced from a persistent collectible. |
void |
collectGarbageExclude(Collection<? extends Collectible> toRetain)
Collects all
Collectible s which are not persistent and are not
directly or indirectly referenced from a persistent collectible and are not
in the toRetain collection. |
void |
detach(long detachingTaskId,
boolean isUsingEvaluationLevels)
Detach this model instance.
|
ExternalValue |
findCreateExternalValue(String typeString,
String primaryKeyString,
Long processInstanceId)
Finds an existing external value for the type and primary key.
|
ExternalValue |
findCreateExternalValue(String typeString,
String primaryKeyString,
Long processInstanceId,
Long revisionId)
Finds an existing external value for the type and primary key.
|
void |
fireChange(Change change)
Fires a change.
|
void |
fireExternalRecordPropertyAccess(ExternalRecordPropertyAccessEvent event)
Fires an event that external record property was accessed.
|
Collection<? extends EvaluationLevelAware> |
getAllEntitiesInLevel(String level)
Returns all entities in a level.
|
<T extends EvaluationLevelAware> |
getAllEntitiesInLevel(String level,
Class<T> entityClass)
Returns all entities of a given class in a given level.
|
Collection<? extends EvaluationLevelAware> |
getAllEntitiesInLevels(Collection<String> levels)
Returns all entities in given levels.
|
Collection<EvaluationLevelAware> |
getAllEvaluationLevelAwareEntities()
Returns all evaluation aware entities from this model instance.
|
List<EvaluationLevelAware> |
getAllLevelEntities(long baseLevelId)
Returns all entities that have same base evaluation level entity id.
|
Collection<RecordValue> |
getAllNotPersistedRecords(RecordType recordType,
String level,
boolean includeLowerLevels)
Returns all records of the type that exists in the evaluation level that are not persisted to the database.
|
Object |
getApplicationData(String key)
Returns application data.
|
Long |
getBaseLevelEntityIdforEntity(long entityId)
Returns id of the base level entity corresponding to the entity with the specified id.
|
CompatibilityVersion |
getCompatibilityVersion(ModelProviderClientService modelProviderService)
Returns compatibility version.
|
CompiledContext |
getCompiledContext(ModelProviderClientService modelProviderService,
String moduleName,
String evaluationLevel) |
ComplexValue |
getComplexValue(long id)
Returns complex value for given id.
|
ComplexValue |
getComplexValue(String level,
long baseId)
Returns complex value for given level and baseValueId.
|
Context |
getContext(long id)
Returns context from this model instance for the given id.
|
Context |
getContext(String level,
long baseId)
Returns context from this model instance for the given level and baseContextId.
|
RuntimeToPersistentConverter |
getConverter(ModelProviderClientService modelProviderService)
Lazily creates a runtime converter.
|
long |
getCurrentId()
Returns the current id.
|
long |
getCurrentInternalVersion()
Returns current internal version,
|
Long |
getCurrentInvocationTimestamp()
Returns current invocation timestamp
|
ProcessInstance |
getCurrentProcessInstance()
Gets current process instance.
|
Token |
getCurrentToken()
Gets currently handled token.
|
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. |
<T extends EntityWithId> |
getEntities(Class<T> entityClass)
Returns a collection of all registered entities for the specified type.
|
EntityWithId |
getEntity(long id)
Returns an entity for the specified id.
|
<T extends EntityWithId> |
getEntity(long id,
Class<T> entityClass)
Returns an entity for the specified id and entity class.
|
List<Escalation> |
getEscalations()
Returns a new list which holds all escalations in the model instance.
|
Set<String> |
getEvaluationLevels()
Returns all current evaluation levels.
|
Set<String> |
getEvaluationLevelsOnDetach()
Set of used evaluation levels at the moment of detachment.
|
List<ExternalRecordListener> |
getExternalRecordListeners()
Returns an unmodifiable list of external record listeners.
|
Map<String,ExternalValue> |
getExternalValues()
Returns map of entity identification -> external value
|
Date |
getFinishedDate()
Returns the finished date.
|
ExternalRecordHolder |
getHolderForEntity(Object entity)
Returns holder for an entity.
|
Long |
getId()
Returns the id.
|
ModelInstanceResourceAllocator |
getIdAllocator()
Returns value id allocator.
|
long |
getInitialInternalVersionFor(String level)
Returns initial internal version to be used.
|
List<ExternalValue> |
getLastPersisted()
Returns records persisted during last evaluation level merge.
|
List<ProcessLog> |
getLogs()
Returns list of process logs.
|
ModuleInstance |
getMainModuleInstance()
Returns the main module (the first module).
|
long |
getMaxAllocatedId()
Returns maximal allocated id.
|
String |
getModelHash()
Returns the model hash.
|
long |
getModelId()
Returns the model id.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
Long |
getModelInstanceMigrationId()
Returns the model instance migration id.
|
String |
getModelName()
Returns the model name.
|
String |
getModelVersion()
Returns the model version.
|
ModuleInstance |
getModuleInstance(String name)
Returns module from this model instance for the given name.
|
Collection<ModuleInstance> |
getModuleInstances()
Returns all modules in this model instance.
|
Long |
getParentId()
Returns the parent id.
|
ProcessInstance |
getProcessInstance(long id)
Returns process instance from this model instance for the given id.
|
Collection<ProcessInstance> |
getProcessInstances()
Returns a collection of all registered process instances.
|
Map<String,String> |
getProperties()
Returns the properties
|
String |
getProperty(String name)
Returns value of the property.
|
Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
Object |
getRuntimeValue(Value value) |
Map<ComplexValue,Object> |
getRuntimeValues()
Returns map of runtime values.
|
Signal |
getSignal(long id)
Returns signal from this model instance for the given id.
|
Collection<Signal> |
getSignals()
Returns the signals as an unmodifiable view.
|
Date |
getStartedDate()
Returns the started date.
|
ModelInstanceState |
getState()
Returns life-cycle state.
|
Task |
getTask(long id)
Returns task from this model instance for the given id.
|
Collection<Task> |
getTasks()
Returns a collection of all model instance tasks.
|
List<ExternalRecordHolder> |
getToBeRemoved()
Auxiliary collections used for deleting records.
|
Set<Context> |
getTopNoBaseLevelContexts()
Returns top contexts from evaluation levels higher that base level.
|
ModelInstanceType |
getType()
Returns model instance type.
|
Collection<ComplexValue> |
getValues()
Returns the model instance complex values.
|
boolean |
isCanClearRuntimeValues()
Returns true if cleaning of runtime values is on.
|
boolean |
isCreateProcessLog() |
boolean |
isDetached()
Returns true if the model instance is detached.
|
boolean |
isDirty()
Returns true if the model instance is dirty.
|
boolean |
isDocument()
Returns true if the model instance stores state of document.
|
boolean |
isEvaluation()
Returns true if the model instance is used for expression evaluation.
|
boolean |
isFinished()
Returns true if the model instance is finished.
|
boolean |
isFormPreview()
Returns true if the model instance stores state of form preview.
|
boolean |
isMonitoringChanged() |
boolean |
isPersistent()
Returns true if this object cannot be collected.
|
boolean |
isProcess()
Returns true if the model instance stores state of execution of processes.
|
boolean |
isTrackingDirty()
Returns true if tracking of dirtiness is switched on.
|
boolean |
isTrackingVersions()
Returns true if versions of shared entities are tracked so what optimistic locking can be chacked.
|
boolean |
isUsingEvaluationLevels()
Returns true is a detached model instance is using evaluation levels.
|
ModelInstance |
makeCopy()
Returns deep copy of the model instance.
|
long |
nextId()
Returns next id and increments the id counter.
|
long |
nextInternalVersion()
Returns next internal version value.
|
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 |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
void |
registerRuntimeValue(ComplexValue value,
Object runtimeValue)
Creates mapping between given value (xml representation of
object in process context) and actual runtime value, so that
the runtime value doesn't need to be created again.
|
boolean |
removeChangeListener(ChangeListener listener)
Removes change listener.
|
void |
removeChangeListeners()
Removes all change listeners.
|
<T extends ChangeListener> |
removeChangeListeners(Class<T> listenerClass)
Remove all listeners of specified class.
|
void |
removeEntityHolder(Object entity)
Removes entity -holder pair
|
void |
removeEscalation(Escalation escalation)
Removes the escalation from this model instance.
|
void |
removeExternalRecordListener(ExternalRecordListener listener)
Removes an external record listener.
|
ModuleInstance |
removeModuleInstance(String name)
Removes a module instance.
|
void |
removeRuntimeValues()
Removes all runtime values registered via
registerRuntimeValue(ComplexValue, Object) method. |
void |
removeSignal(Signal item)
Removes the given signal item.
|
void |
removeValue(ModelInstanceAware val)
Removes value.
|
void |
resetLastPersisted()
Resets last persisted.
|
void |
setApplicationData(String key,
Object value)
Sets application data.
|
void |
setCanClearRuntimeValues(boolean canClearRuntimeValues)
Sets on/off cleaning of runtime values.
|
void |
setCreateProcessLog(boolean createProcessLog) |
void |
setCurrentInternalVersion(long internalVersion)
Sets current internal value.
|
void |
setCurrentProcessInstance(ProcessInstance currentProcessInstance)
Sets current process instance.
|
void |
setCurrentToken(Token currentToken)
Sets currently handled token.
|
void |
setDirty(boolean isDirty)
Sets isDirty.
|
void |
setDocumentDescription(String documentDescription)
Sets the description of a document for this model instance.
|
void |
setFinishedDate(Date finishedDate)
Sets the finished date.
|
void |
setId(Long id)
Sets the id.
|
void |
setIdAllocator(ModelInstanceResourceAllocator idAllocator)
Sets allocator.
|
void |
setIsMonitoringChange(boolean value) |
void |
setIsTrackingVersions(boolean isTracking)
Sets tracking of the shared entities version to the provided value,
and cleans version string of all shared values and sets renewVersion of all
shared values to the provided value.
|
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 |
setStartedDate(Date startedDate)
Sets the started date.
|
void |
setState(ModelInstanceState state)
Sets life-cycle state.
|
void |
setTrackingDirty(boolean isTrackingDirty)
Switch on/off checking of dirtiness.
|
void |
synchronizeIdSeq(ModelInstance modelInstance)
Synchronize value id counter and max allocated value id.
|
String |
toString() |
public static final String SCHEMA_NAMESPACE
protected ModelInstance()
ModelInstance
.public ModelInstance(long id, long modelId, String modelName, String modelVersion, String modelHash, CompatibilityVersion compatibilityVersion, ModelInstanceType type, boolean createProcessLog, Long parentId, Map<String,String> properties, ModelInstanceResourceAllocator idAllocator)
ModelInstance
.id
- modelId
- modelName
- modelVersion
- modelHash
- compatibilityVersion
- type
- createProcessLog
- parentId
- properties
- idAllocator
- NullPointerException
- if agentName
is nullpublic ModelInstance(long id, long modelId, Long modelInstanceMigrationId, String modelName, String modelVersion, String modelHash, CompatibilityVersion compatibilityVersion, boolean createProcessLog, Map<String,String> properties, Long parentId, ModelInstanceState state, ModelInstanceType type, Date startedDate, Date finishedDate, ModelInstanceResourceAllocator idAllocator, long maxAllocatedId, long currentId, long curentInternalVersion, Set<Context> topNoBaseLevelContexts, Long detachmentId, Long detachingTaskId, Set<String> evaluationLevelsOnDetach, Boolean isUsingEvaluationLevels)
ModelInstance
.id
- modelId
- modelInstanceMigrationId
- modelName
- modelVersion
- modelHash
- compatibilityVersion
- createProcessLog
- properties
- parentId
- state
- type
- startedDate
- finishedDate
- idAllocator
- maxAllocatedId
- currentId
- curentInternalVersion
- topNoBaseLevelContexts
- detachmentId
- detachingTaskId
- the identifier of a task for which the model instance was detachedisUsingEvaluationLevels
- evaluationLevelsOnDetach
- NullPointerException
- if agentName
is nullpublic 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 String getProperty(String name)
name
- public ModelInstanceState getState()
public void setState(ModelInstanceState state)
state
- public ModelInstanceType getType()
public boolean isProcess()
public boolean isDocument()
public boolean isFormPreview()
public boolean isEvaluation()
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<Signal> getSignals()
public Signal addSignal(Value val)
val
- NullPointerException
- if val
is nullpublic Signal addSignal(Value val, String sourceDescritpion)
val
- sourceDescritpion
- the description of the source of the signalNullPointerException
- if val
is nullpublic void addSignal(Signal signal)
signal
- public void removeSignal(Signal item)
item
- public void addEscalation(Escalation escalation)
escalation
- the escalation to be addedpublic void removeEscalation(Escalation escalation)
escalation
- the escalation to be removedpublic List<Escalation> getEscalations()
public ModelInstanceResourceAllocator getIdAllocator()
public void setIdAllocator(ModelInstanceResourceAllocator idAllocator)
idAllocator
- public Long getDetachmentId()
public Long getDetachingTaskId()
public boolean isUsingEvaluationLevels()
public long getMaxAllocatedId()
public void synchronizeIdSeq(ModelInstance modelInstance)
modelInstance
- public long getCurrentId()
public long nextId()
public long getCurrentInternalVersion()
public void setCurrentInternalVersion(long internalVersion)
internalVersion
- public long nextInternalVersion()
public long getInitialInternalVersionFor(String level)
level
- public Long getParentId()
public ComplexValue getComplexValue(long id)
id
- public ComplexValue getComplexValue(String level, long baseId)
level
- baseId
- public void addChangeListener(ChangeListener listener)
listener
- public void addChangeListeners(Collection<? extends ChangeListener> listeners)
listeners
- public boolean removeChangeListener(ChangeListener listener)
listener
- public <T extends ChangeListener> Set<T> removeChangeListeners(Class<T> listenerClass)
T
- listenerClass
- public void removeChangeListeners()
public void fireChange(Change change)
change
- public void addExternalRecordListener(ExternalRecordListener listener)
listener
- public void removeExternalRecordListener(ExternalRecordListener listener)
listener
- public void fireExternalRecordPropertyAccess(ExternalRecordPropertyAccessEvent event)
event
- public List<ExternalRecordListener> getExternalRecordListeners()
public ModelInstance getModelInstance()
ModelInstanceAware
getModelInstance
in interface ModelInstanceAware
public void rebind(ModelInstance modelInstance)
ModelInstanceAware
rebind
in interface ModelInstanceAware
public Context getContext(long id)
id
- public Context getContext(String level, long baseId)
level
- baseId
- public List<EvaluationLevelAware> getAllLevelEntities(long baseLevelId)
baseLevelId
- public ProcessInstance getProcessInstance(long id)
id
- public <T extends EntityWithId> T getEntity(long id, Class<T> entityClass)
T
- id
- entityClass
- public EntityWithId getEntity(long id)
id
- public Collection<ProcessInstance> getProcessInstances()
public <T extends EntityWithId> Collection<T> getEntities(Class<T> entityClass)
T
- entityClass
- public Signal getSignal(long id)
id
- public Task getTask(long id)
id
- public Collection<Task> getTasks()
public Collection<? extends EvaluationLevelAware> getAllEntitiesInLevel(String level)
Returned collection is a copy and is no more modified by calls to
register(ModelInstanceAware)
or
unregister(ModelInstanceAware)
.
level
- public <T extends EvaluationLevelAware> Collection<T> getAllEntitiesInLevel(String level, Class<T> entityClass)
Returned collection is a copy and is no more modified by calls to
register(ModelInstanceAware)
or
unregister(ModelInstanceAware)
.
T
- a class typelevel
- entityClass
- public Collection<? extends EvaluationLevelAware> getAllEntitiesInLevels(Collection<String> levels)
Returned collection is a copy and is no more modified by calls to
register(ModelInstanceAware)
or
unregister(ModelInstanceAware)
.
levels
- public Collection<EvaluationLevelAware> getAllEvaluationLevelAwareEntities()
public void addValue(ModelInstanceAware val)
val
- public void removeValue(ModelInstanceAware val)
val
- public Collection<ComplexValue> getValues()
public ModuleInstance getModuleInstance(String name)
name
- public Collection<ModuleInstance> getModuleInstances()
public ModuleInstance getMainModuleInstance()
public ModuleInstance removeModuleInstance(String name)
name
- public ModuleInstance addModuleInstance(ModuleInstance moduleInstance)
moduleInstance
- public ModuleInstance addNewModuleInstance(com.whitestein.lsps.model.ProcessModel processModel)
processModel
- NullPointerException
- if processModel
is nullpublic ModuleInstance addNewModuleInstance(Context context)
context
- NullPointerException
- if context
is nullpublic void addProcessLog(ProcessLog log)
log
- public List<ProcessLog> getLogs()
public Set<Context> getTopNoBaseLevelContexts()
public void addTopNoBaseLevelContext(Context context)
context
- public Set<String> getEvaluationLevelsOnDetach()
public Set<String> getEvaluationLevels()
public void detach(long detachingTaskId, boolean isUsingEvaluationLevels)
detachingTaskId
- the id of a task for which the model instance id detachedisUsingEvaluationLevels
- 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 void collectGarbage()
Collectible
s which are not persistent and are not
directly or indirectly referenced from a persistent collectible.
If the context is going to be committed, versions of external values
are updated so that the references are up to date.public void collectGarbageExclude(Collection<? extends Collectible> toRetain)
Collectible
s which are not persistent and are not
directly or indirectly referenced from a persistent collectible and are not
in the toRetain collection.
If the context is going to be committed, versions of external values
are updated so that the references are up to date.toRetain
- public boolean isPersistent()
Collectible
isPersistent
in interface Collectible
public Collection<Collectible> getReferences()
Collectible
getReferences
in interface Collectible
public void collect()
Collectible
collect
in interface Collectible
public void addProperty(String name, String value)
name
- value
- public void registerRuntimeValue(ComplexValue value, Object runtimeValue)
value
- runtimeValue
- public Map<ComplexValue,Object> getRuntimeValues()
public void clearRuntimeValues()
public void removeRuntimeValues()
registerRuntimeValue(ComplexValue, Object)
method.public void setCanClearRuntimeValues(boolean canClearRuntimeValues)
canClearRuntimeValues
- public boolean isCanClearRuntimeValues()
public void clearLoadedEntities()
registerRuntimeValue(ComplexValue, Object)
method.public Object getRuntimeValue(Value value)
value
- registerRuntimeValue(ComplexValue, Object)
before,
null otherwise.public Map<String,ExternalValue> getExternalValues()
public ExternalValue findCreateExternalValue(String typeString, String primaryKeyString, Long processInstanceId)
typeString
- primaryKeyString
- processInstanceId
- public ExternalValue findCreateExternalValue(String typeString, String primaryKeyString, Long processInstanceId, Long revisionId)
typeString
- primaryKeyString
- processInstanceId
- revisionId
- public Long getBaseLevelEntityIdforEntity(long entityId)
entityId
- public Object getApplicationData(String key)
key
- public void setApplicationData(String key, Object value)
key
- value
- public boolean isTrackingVersions()
public void setIsTrackingVersions(boolean isTracking)
isTracking
- 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 ModelInstance makeCopy()
public RuntimeToPersistentConverter getConverter(ModelProviderClientService modelProviderService)
modelProviderService
- public List<ExternalRecordHolder> getToBeRemoved()
public Collection<RecordValue> getAllNotPersistedRecords(RecordType recordType, String level, boolean includeLowerLevels)
recordType
- level
- includeLowerLevels
- public void addLastPersisted(ExternalValue value)
value
- public List<ExternalValue> getLastPersisted()
public void resetLastPersisted()
public void addEntityHolder(Object entity, ExternalRecordHolder holder)
entity
- holder
- public void removeEntityHolder(Object entity)
entity
- public ExternalRecordHolder getHolderForEntity(Object entity)
entity
- public Long getCurrentInvocationTimestamp()
public CompatibilityVersion getCompatibilityVersion(ModelProviderClientService modelProviderService)
modelProviderService
- public void setCurrentToken(Token currentToken)
currentToken
- public Token getCurrentToken()
public void setCurrentProcessInstance(ProcessInstance currentProcessInstance)
currentProcessInstance
- public ProcessInstance getCurrentProcessInstance()
public CompiledContext getCompiledContext(ModelProviderClientService modelProviderService, String moduleName, String evaluationLevel)
public boolean isMonitoringChanged()
public void setIsMonitoringChange(boolean value)
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.