public interface ModelProviderClientService
Modifier and Type | Method and Description |
---|---|
AllocatedModelInstanceResources |
allocateDetachmentAndValueIds(long modelInstanceId,
long allocatedSize)
Allocates new range of value ids and detachment id.
|
AllocatedModelInstanceResources |
allocateValueIds(long modelInstanceId,
long allocatedSize)
Allocates new range of value ids.
|
EvaluationResult |
evaluateExpression(long modelInstanceId,
Long contextId,
String source,
boolean fullExecutionModel,
boolean mergeEvaluation)
Parses the string to the expression and than evaluates it in the top context of the model
instance.
|
EvaluationResult |
evaluateExpression(long modelInstanceId,
Long contextId,
String source,
String evaluationLevel,
boolean mergeEvaluation)
Parses the string to the expression and than evaluates it in the top context of the model
instance.
|
EvaluationResult |
evaluateExpression(long modelInstanceId,
String source,
boolean fullExecutionModel)
Parses the string to the expression and than evaluates it in the top context of the model
instance.
|
EvaluationResult |
evaluateExpression(long modelInstanceId,
String source,
boolean fullExecutionModel,
boolean mergeEvaluation)
Parses the string to the expression and than evaluates it in the top context of the model
instance.
|
EvaluationResult |
evaluateExpression(long modelInstanceId,
String source,
String evaluationLevel,
boolean mergeEvaluation)
Parses the string to the expression and than evaluates it in the top context of the model
instance.
|
EvaluationResult |
evaluateExpressionInModel(long modelId,
String source,
boolean fullExecutionModel)
Parses the string to the expression and than evaluates it in the empty model context
|
List<EvaluationResult> |
evaluateExpressions(long modelInstanceId,
List<String> sources,
boolean fullExecutionModel)
Parses the string sources of expressions in the list evaluates them end returns list of
results.
|
List<EvaluationResult> |
evaluateExpressionsInModel(long modelId,
List<String> sources,
boolean fullExecutionModel)
Parses the string sources of expressions in the list evaluates them end returns list of
results.
|
void |
flushAll()
Deprecated.
|
void |
flushModelSessions(long moduleId)
Flush of sessions for all model shared records.
|
CompatibilityVersion |
getCompatibilityVersion(long modelId)
Returns compatibility version for the module.
|
ComponentService |
getComponentService()
Answer component service instance
|
ExecutionContext |
getExecutionContext(long modelInstanceId)
Returns an execution context for the given model instance id or null if it does not exist.
|
ExecutionContext |
getExecutionContext(long modelInstanceId,
long contextId)
Returns an execution context for the given context in the model instance or null if it does not exist.
|
ExecutionContext |
getExecutionContext(long modelInstanceId,
long contextId,
String level)
Returns an execution context for the given context in the model instance or null if it does not exist.
|
ExecutionContext |
getExecutionContext(long modelId,
ModelInstanceType modelInstanceType,
String level)
Returns an execution context for the given model or null if it does not exist.
|
ExecutionContext |
getPersistentExecutionContext(long modelId,
ModelInstanceType type,
String evaluationLevel)
Returns an execution context for the given model or null if it does not exist.
|
RecordType |
getRecordTypeForEntity(Object object,
long modelId)
Returns record type for entity.
|
TransactionSynchronizationRegistry |
getTransactionSynchronizationRegistry()
Returns transaction synchronization registry.
|
com.whitestein.lsps.model.ProcessModel |
loadProcessModel(long moduleId)
INTERNAL API: Loads a process model into the cache.
|
com.whitestein.lsps.model.ProcessModel |
loadProcessModel(String modelHash)
INTERNAL API: Loads a process model into the cache.
|
EnumerationType |
resolveEnumerationType(long moduleId,
String qualifiedName)
Resolves enumeration type by its qualified name in given model.
|
RecordType |
resolveRecordType(long moduleId,
String qualifiedName)
Resolves record by its qualified name in given model.
|
Type |
resolveType(long moduleId,
String qualifiedName)
Resolves type by its qualified name in given model.
|
void |
synchronizeCache()
Synchronize cache.
|
TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
com.whitestein.lsps.model.ProcessModel loadProcessModel(long moduleId) throws ModelUploadException
moduleId
- id of model to loadModelUploadException
com.whitestein.lsps.model.ProcessModel loadProcessModel(String modelHash) throws ModelUploadException
modelHash
- hash of the model to loadModelUploadException
void synchronizeCache()
void flushModelSessions(long moduleId)
moduleId
- @Deprecated void flushAll()
Type resolveType(long moduleId, String qualifiedName) throws ValidationException
moduleId
- qualifiedName
- ValidationException
RecordType resolveRecordType(long moduleId, String qualifiedName) throws ValidationException
moduleId
- qualifiedName
- IllegalArgumentException
- if model with given id does not existValidationException
EnumerationType resolveEnumerationType(long moduleId, String qualifiedName) throws ValidationException
moduleId
- qualifiedName
- NullPointerException
IllegalArgumentException
- if model with given id does not existValidationException
EvaluationResult evaluateExpression(long modelInstanceId, String source, boolean fullExecutionModel, boolean mergeEvaluation) throws ValidationException, ErrorException
modelInstanceId
- source
- fullExecutionModel
- mergeEvaluation
- ValidationException
ErrorException
LspsRuntimeException
- if the model instance is not foundEvaluationResult evaluateExpression(long modelInstanceId, Long contextId, String source, boolean fullExecutionModel, boolean mergeEvaluation) throws ValidationException, ErrorException
modelInstanceId
- contextId
- source
- fullExecutionModel
- mergeEvaluation
- ValidationException
ErrorException
LspsRuntimeException
- if the model instance is not foundEvaluationResult evaluateExpression(long modelInstanceId, String source, String evaluationLevel, boolean mergeEvaluation) throws ValidationException, ErrorException
modelInstanceId
- source
- evaluationLevel
- mergeEvaluation
- ValidationException
ErrorException
LspsRuntimeException
- if the model instance is not foundEvaluationResult evaluateExpression(long modelInstanceId, Long contextId, String source, String evaluationLevel, boolean mergeEvaluation) throws ValidationException, ErrorException
modelInstanceId
- contextId
- source
- evaluationLevel
- mergeEvaluation
- ValidationException
ErrorException
LspsRuntimeException
- if the model instance is not foundEvaluationResult evaluateExpression(long modelInstanceId, String source, boolean fullExecutionModel) throws ValidationException, ErrorException
modelInstanceId
- source
- fullExecutionModel
- ValidationException
ErrorException
LspsRuntimeException
- if the model instance is not foundList<EvaluationResult> evaluateExpressionsInModel(long modelId, List<String> sources, boolean fullExecutionModel) throws ValidationException, ErrorException
modelId
- sources
- fullExecutionModel
- ValidationException
ErrorException
LspsRuntimeException
- if the model instance is not foundEvaluationResult evaluateExpressionInModel(long modelId, String source, boolean fullExecutionModel) throws ValidationException, ErrorException
modelId
- source
- fullExecutionModel
- ValidationException
ErrorException
LspsRuntimeException
- if the model instance is not foundList<EvaluationResult> evaluateExpressions(long modelInstanceId, List<String> sources, boolean fullExecutionModel) throws ValidationException, ErrorException
modelInstanceId
- sources
- fullExecutionModel
- ValidationException
ErrorException
LspsRuntimeException
- if the model instance is not foundExecutionContext getExecutionContext(long modelInstanceId)
modelInstanceId
- LspsRuntimeException
- if the model instance is not foundExecutionContext getExecutionContext(long modelInstanceId, long contextId)
modelInstanceId
- contextId
- LspsRuntimeException
- if the model instance is not foundExecutionContext getExecutionContext(long modelInstanceId, long contextId, String level)
modelInstanceId
- contextId
- level
- LspsRuntimeException
- if the model instance is not foundExecutionContext getExecutionContext(long modelId, ModelInstanceType modelInstanceType, String level)
modelId
- modelInstanceType
- level
- LspsRuntimeException
- if the model instance is not foundExecutionContext getPersistentExecutionContext(long modelId, ModelInstanceType type, String evaluationLevel)
modelId
- type
- evaluationLevel
- AllocatedModelInstanceResources allocateValueIds(long modelInstanceId, long allocatedSize)
modelInstanceId
- allocatedSize
- AllocatedModelInstanceResources allocateDetachmentAndValueIds(long modelInstanceId, long allocatedSize)
modelInstanceId
- allocatedSize
- RecordType getRecordTypeForEntity(Object object, long modelId)
object
- modelId
- CompatibilityVersion getCompatibilityVersion(long modelId)
modelId
- ComponentService getComponentService()
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.