@PermitAll public class ModelProviderServiceBean extends Object implements ModelProviderService, ModelProviderClientService
| Constructor and Description |
|---|
ModelProviderServiceBean()
Creates new instance.
|
ModelProviderServiceBean(ModelManagementDao modelManagementDao,
ComponentServiceLocal componentService,
ModelInstanceDao modelInstanceDao)
Creates new instance.
|
| 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 evaluationLevel)
Returns an execution context for the given context in the model instance or null if it does not exist.
|
ExecutionContext |
getExecutionContext(long modelId,
ModelInstanceType type,
String evaluationLevel)
Returns an execution context for the given model or null if it does not exist.
|
ExternalTypeProvider |
getExternalTypeProvider(String providerClassName)
Returns external type provider for provider class name.
|
ModelInstance |
getModelInstance(long id)
Returns locked model instance.
|
Module |
getModule(long id)
Returns a module for the given module id.
|
Module |
getModule(String hash)
Returns a model for the given hash.
|
Collection<Module> |
getModules(String name,
String version)
Returns a collection of modules for the given name and version.
|
ExecutionContext |
getPersistentExecutionContext(long modelId,
ModelInstanceType type,
String evaluationLevel)
Returns an execution context for the given model or null if it does not exist.
|
com.whitestein.lsps.model.ProcessModel |
getProcessModel(String moduleHash)
Returns a process model for the given module hash.
|
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 moduleHash)
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 type)
Resolves type by its qualified name in given model.
|
void |
setToReferences(long modelInstanceId,
Long contextId,
List<String> referenceExpressions,
List<Object> javaObjects)
Sets values to referenced value holders in the model instance.
|
void |
synchronizeCache()
Synchronize cache.
|
public ModelProviderServiceBean()
public ModelProviderServiceBean(ModelManagementDao modelManagementDao, ComponentServiceLocal componentService, ModelInstanceDao modelInstanceDao)
modelManagementDao - componentService - modelInstanceDao - public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
getTransactionSynchronizationRegistry in interface ModelProviderClientServicepublic com.whitestein.lsps.model.ProcessModel loadProcessModel(long moduleId)
throws ModelUploadException
ModelProviderClientServiceloadProcessModel in interface ModelProviderClientServicemoduleId - id of model to loadModelUploadExceptionpublic com.whitestein.lsps.model.ProcessModel loadProcessModel(String moduleHash) throws ModelUploadException
ModelProviderClientServiceloadProcessModel in interface ModelProviderClientServicemoduleHash - hash of the model to loadModelUploadExceptionpublic Collection<Module> getModules(String name, String version)
ModelProviderServicegetModules in interface ModelProviderServicepublic RecordType resolveRecordType(long moduleId, String qualifiedName) throws ValidationException
ModelProviderClientServiceresolveRecordType in interface ModelProviderClientServiceValidationExceptionpublic EnumerationType resolveEnumerationType(long moduleId, String qualifiedName) throws ValidationException
ModelProviderClientServiceresolveEnumerationType in interface ModelProviderClientServiceNullPointerExceptionValidationExceptionpublic Type resolveType(long moduleId, String type) throws ValidationException
ModelProviderClientServiceresolveType in interface ModelProviderClientServiceValidationExceptionpublic Module getModule(long id)
ModelProviderServicegetModule in interface ModelProviderServicepublic com.whitestein.lsps.model.ProcessModel getProcessModel(String moduleHash)
ModelProviderServicegetProcessModel in interface ModelProviderServicepublic Module getModule(String hash)
ModelProviderServicegetModule in interface ModelProviderServicepublic EvaluationResult evaluateExpression(long modelInstanceId, String source, boolean fullExecutionModel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderClientServiceevaluateExpression in interface ModelProviderClientServiceValidationExceptionErrorExceptionpublic EvaluationResult evaluateExpression(long modelInstanceId, Long contextId, String source, boolean fullExecutionModel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderClientServiceevaluateExpression in interface ModelProviderClientServiceValidationExceptionErrorExceptionpublic EvaluationResult evaluateExpression(long modelInstanceId, String source, String evaluationLevel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderClientServiceevaluateExpression in interface ModelProviderClientServiceValidationExceptionErrorExceptionpublic EvaluationResult evaluateExpression(long modelInstanceId, Long contextId, String source, String evaluationLevel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderClientServiceevaluateExpression in interface ModelProviderClientServiceValidationExceptionErrorExceptionpublic EvaluationResult evaluateExpression(long modelInstanceId, String source, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderClientServiceevaluateExpression in interface ModelProviderClientServiceValidationExceptionErrorExceptionpublic ModelInstance getModelInstance(long id)
ModelProviderServicegetModelInstance in interface ModelProviderServicepublic List<EvaluationResult> evaluateExpressions(long modelInstanceId, List<String> sources, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderClientServiceevaluateExpressions in interface ModelProviderClientServiceValidationExceptionErrorExceptionpublic ExecutionContext getExecutionContext(long modelInstanceId)
ModelProviderClientServicegetExecutionContext in interface ModelProviderClientServicepublic ExecutionContext getExecutionContext(long modelInstanceId, long contextId)
ModelProviderClientServicegetExecutionContext in interface ModelProviderClientServicepublic ExecutionContext getExecutionContext(long modelInstanceId, long contextId, String evaluationLevel)
ModelProviderClientServicegetExecutionContext in interface ModelProviderClientServicepublic ExecutionContext getExecutionContext(long modelId, ModelInstanceType type, String evaluationLevel)
ModelProviderClientServicegetExecutionContext in interface ModelProviderClientServicepublic ExecutionContext getPersistentExecutionContext(long modelId, ModelInstanceType type, String evaluationLevel)
ModelProviderClientServicegetPersistentExecutionContext in interface ModelProviderClientServicepublic List<EvaluationResult> evaluateExpressionsInModel(long modelId, List<String> sources, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderClientServiceevaluateExpressionsInModel in interface ModelProviderClientServiceValidationExceptionErrorExceptionpublic EvaluationResult evaluateExpressionInModel(long modelId, String source, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderClientServiceevaluateExpressionInModel in interface ModelProviderClientServiceValidationExceptionErrorExceptionpublic ComponentService getComponentService()
ModelProviderClientServicegetComponentService in interface ModelProviderClientServicepublic AllocatedModelInstanceResources allocateValueIds(long modelInstanceId, long allocatedSize)
ModelProviderClientServiceallocateValueIds in interface ModelProviderClientServicepublic AllocatedModelInstanceResources allocateDetachmentAndValueIds(long modelInstanceId, long allocatedSize)
ModelProviderClientServiceallocateDetachmentAndValueIds in interface ModelProviderClientServicepublic void synchronizeCache()
ModelProviderClientServicesynchronizeCache in interface ModelProviderClientServicepublic void flushModelSessions(long moduleId)
ModelProviderClientServiceflushModelSessions in interface ModelProviderClientService@Deprecated public void flushAll()
flushAll in interface ModelProviderClientServicepublic RecordType getRecordTypeForEntity(Object object, long modelId)
ModelProviderClientServicegetRecordTypeForEntity in interface ModelProviderClientServicepublic ExternalTypeProvider getExternalTypeProvider(String providerClassName)
ModelProviderServicegetExternalTypeProvider in interface ModelProviderServicepublic void setToReferences(long modelInstanceId,
Long contextId,
List<String> referenceExpressions,
List<Object> javaObjects)
ModelProviderServicesetToReferences in interface ModelProviderServicepublic CompatibilityVersion getCompatibilityVersion(long modelId)
ModelProviderClientServicegetCompatibilityVersion in interface ModelProviderClientServiceCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.