@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 ModelProviderClientService
public com.whitestein.lsps.model.ProcessModel loadProcessModel(long moduleId) throws ModelUploadException
ModelProviderClientService
loadProcessModel
in interface ModelProviderClientService
moduleId
- id of model to loadModelUploadException
public com.whitestein.lsps.model.ProcessModel loadProcessModel(String moduleHash) throws ModelUploadException
ModelProviderClientService
loadProcessModel
in interface ModelProviderClientService
moduleHash
- hash of the model to loadModelUploadException
public Collection<Module> getModules(String name, String version)
ModelProviderService
getModules
in interface ModelProviderService
public RecordType resolveRecordType(long moduleId, String qualifiedName) throws ValidationException
ModelProviderClientService
resolveRecordType
in interface ModelProviderClientService
ValidationException
public EnumerationType resolveEnumerationType(long moduleId, String qualifiedName) throws ValidationException
ModelProviderClientService
resolveEnumerationType
in interface ModelProviderClientService
NullPointerException
ValidationException
public Type resolveType(long moduleId, String type) throws ValidationException
ModelProviderClientService
resolveType
in interface ModelProviderClientService
ValidationException
public Module getModule(long id)
ModelProviderService
getModule
in interface ModelProviderService
public com.whitestein.lsps.model.ProcessModel getProcessModel(String moduleHash)
ModelProviderService
getProcessModel
in interface ModelProviderService
public Module getModule(String hash)
ModelProviderService
getModule
in interface ModelProviderService
public EvaluationResult evaluateExpression(long modelInstanceId, String source, boolean fullExecutionModel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderClientService
evaluateExpression
in interface ModelProviderClientService
ValidationException
ErrorException
public EvaluationResult evaluateExpression(long modelInstanceId, Long contextId, String source, boolean fullExecutionModel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderClientService
evaluateExpression
in interface ModelProviderClientService
ValidationException
ErrorException
public EvaluationResult evaluateExpression(long modelInstanceId, String source, String evaluationLevel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderClientService
evaluateExpression
in interface ModelProviderClientService
ValidationException
ErrorException
public EvaluationResult evaluateExpression(long modelInstanceId, Long contextId, String source, String evaluationLevel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderClientService
evaluateExpression
in interface ModelProviderClientService
ValidationException
ErrorException
public EvaluationResult evaluateExpression(long modelInstanceId, String source, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderClientService
evaluateExpression
in interface ModelProviderClientService
ValidationException
ErrorException
public ModelInstance getModelInstance(long id)
ModelProviderService
getModelInstance
in interface ModelProviderService
public List<EvaluationResult> evaluateExpressions(long modelInstanceId, List<String> sources, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderClientService
evaluateExpressions
in interface ModelProviderClientService
ValidationException
ErrorException
public ExecutionContext getExecutionContext(long modelInstanceId)
ModelProviderClientService
getExecutionContext
in interface ModelProviderClientService
public ExecutionContext getExecutionContext(long modelInstanceId, long contextId)
ModelProviderClientService
getExecutionContext
in interface ModelProviderClientService
public ExecutionContext getExecutionContext(long modelInstanceId, long contextId, String evaluationLevel)
ModelProviderClientService
getExecutionContext
in interface ModelProviderClientService
public ExecutionContext getExecutionContext(long modelId, ModelInstanceType type, String evaluationLevel)
ModelProviderClientService
getExecutionContext
in interface ModelProviderClientService
public ExecutionContext getPersistentExecutionContext(long modelId, ModelInstanceType type, String evaluationLevel)
ModelProviderClientService
getPersistentExecutionContext
in interface ModelProviderClientService
public List<EvaluationResult> evaluateExpressionsInModel(long modelId, List<String> sources, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderClientService
evaluateExpressionsInModel
in interface ModelProviderClientService
ValidationException
ErrorException
public EvaluationResult evaluateExpressionInModel(long modelId, String source, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderClientService
evaluateExpressionInModel
in interface ModelProviderClientService
ValidationException
ErrorException
public ComponentService getComponentService()
ModelProviderClientService
getComponentService
in interface ModelProviderClientService
public AllocatedModelInstanceResources allocateValueIds(long modelInstanceId, long allocatedSize)
ModelProviderClientService
allocateValueIds
in interface ModelProviderClientService
public AllocatedModelInstanceResources allocateDetachmentAndValueIds(long modelInstanceId, long allocatedSize)
ModelProviderClientService
allocateDetachmentAndValueIds
in interface ModelProviderClientService
public void synchronizeCache()
ModelProviderClientService
synchronizeCache
in interface ModelProviderClientService
public void flushModelSessions(long moduleId)
ModelProviderClientService
flushModelSessions
in interface ModelProviderClientService
@Deprecated public void flushAll()
flushAll
in interface ModelProviderClientService
public RecordType getRecordTypeForEntity(Object object, long modelId)
ModelProviderClientService
getRecordTypeForEntity
in interface ModelProviderClientService
public ExternalTypeProvider getExternalTypeProvider(String providerClassName)
ModelProviderService
getExternalTypeProvider
in interface ModelProviderService
public void setToReferences(long modelInstanceId, Long contextId, List<String> referenceExpressions, List<Object> javaObjects)
ModelProviderService
setToReferences
in interface ModelProviderService
public CompatibilityVersion getCompatibilityVersion(long modelId)
ModelProviderClientService
getCompatibilityVersion
in interface ModelProviderClientService
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.