@PermitAll public class ModelProviderServiceBean extends java.lang.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 |
|---|---|
EvaluationResult |
evaluateExpression(long modelInstanceId,
java.lang.Long contextId,
java.lang.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,
java.lang.Long contextId,
java.lang.String source,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.String source,
java.lang.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,
java.lang.String source,
boolean fullExecutionModel)
Parses the string to the expression and than evaluates it in the empty model context
|
java.util.List<EvaluationResult> |
evaluateExpressions(long modelInstanceId,
java.util.List<java.lang.String> sources,
boolean fullExecutionModel)
Parses the string sources of expressions in the list evaluates them end returns list of
results.
|
java.util.List<EvaluationResult> |
evaluateExpressionsInModel(long modelId,
java.util.List<java.lang.String> sources,
boolean fullExecutionModel)
Parses the string sources of expressions in the list evaluates them end returns list of
results.
|
CompatibilityVersion |
getCompatibilityVersion(long modelId)
Returns compatibility version for the module.
|
ComponentServiceLocal |
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,
java.lang.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,
java.lang.String evaluationLevel)
Returns an execution context for the given model or null if it does not exist.
|
ExternalTypeProvider |
getExternalTypeProvider(java.lang.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(java.lang.String hash)
Returns a model for the given hash.
|
java.util.Collection<Module> |
getModules(java.lang.String name,
java.lang.String version)
Returns a collection of modules for the given name and version.
|
ExecutionContext |
getPersistentExecutionContext(long modelId,
ModelInstanceType type,
java.lang.String evaluationLevel)
Returns an execution context for the given model or null if it does not exist.
|
com.whitestein.lsps.model.ProcessModel |
getProcessModel(java.lang.String moduleHash)
Returns a process model for the given module hash.
|
com.whitestein.lsps.model.ProcessModel |
loadProcessModel(long moduleId)
INTERNAL API: Loads a process model into the cache.
|
com.whitestein.lsps.model.ProcessModel |
loadProcessModel(java.lang.String moduleHash)
INTERNAL API: Loads a process model into the cache.
|
void |
setToReferences(long modelInstanceId,
java.lang.Long contextId,
java.util.List<java.lang.String> referenceExpressions,
java.util.List<java.lang.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 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(java.lang.String moduleHash)
throws ModelUploadException
ModelProviderClientServiceloadProcessModel in interface ModelProviderClientServicemoduleHash - hash of the model to loadModelUploadExceptionpublic java.util.Collection<Module> getModules(java.lang.String name, java.lang.String version)
ModelProviderServicegetModules in interface ModelProviderServicepublic Module getModule(long id)
ModelProviderServicegetModule in interface ModelProviderServicepublic com.whitestein.lsps.model.ProcessModel getProcessModel(java.lang.String moduleHash)
ModelProviderServicegetProcessModel in interface ModelProviderServicepublic Module getModule(java.lang.String hash)
ModelProviderServicegetModule in interface ModelProviderServicepublic EvaluationResult evaluateExpression(long modelInstanceId, java.lang.String source, boolean fullExecutionModel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderServiceevaluateExpression in interface ModelProviderServiceValidationExceptionErrorExceptionpublic EvaluationResult evaluateExpression(long modelInstanceId, java.lang.Long contextId, java.lang.String source, boolean fullExecutionModel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderServiceevaluateExpression in interface ModelProviderServiceValidationExceptionErrorExceptionpublic EvaluationResult evaluateExpression(long modelInstanceId, java.lang.String source, java.lang.String evaluationLevel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderServiceevaluateExpression in interface ModelProviderServiceValidationExceptionErrorExceptionpublic EvaluationResult evaluateExpression(long modelInstanceId, java.lang.Long contextId, java.lang.String source, java.lang.String evaluationLevel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderServiceevaluateExpression in interface ModelProviderServiceValidationExceptionErrorExceptionpublic EvaluationResult evaluateExpression(long modelInstanceId, java.lang.String source, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderServiceevaluateExpression in interface ModelProviderServiceValidationExceptionErrorExceptionpublic ModelInstance getModelInstance(long id)
ModelProviderServicegetModelInstance in interface ModelProviderServicepublic java.util.List<EvaluationResult> evaluateExpressions(long modelInstanceId, java.util.List<java.lang.String> sources, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderServiceevaluateExpressions in interface ModelProviderServiceValidationExceptionErrorExceptionpublic ExecutionContext getExecutionContext(long modelInstanceId)
ModelProviderClientServicegetExecutionContext in interface ModelProviderClientServicepublic ExecutionContext getExecutionContext(long modelInstanceId, long contextId)
ModelProviderClientServicegetExecutionContext in interface ModelProviderClientServicepublic ExecutionContext getExecutionContext(long modelInstanceId, long contextId, java.lang.String evaluationLevel)
ModelProviderClientServicegetExecutionContext in interface ModelProviderClientServicepublic ExecutionContext getExecutionContext(long modelId, ModelInstanceType type, java.lang.String evaluationLevel)
ModelProviderClientServicegetExecutionContext in interface ModelProviderClientServicepublic ExecutionContext getPersistentExecutionContext(long modelId, ModelInstanceType type, java.lang.String evaluationLevel)
ModelProviderClientServicegetPersistentExecutionContext in interface ModelProviderClientServicepublic java.util.List<EvaluationResult> evaluateExpressionsInModel(long modelId, java.util.List<java.lang.String> sources, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderServiceevaluateExpressionsInModel in interface ModelProviderServiceValidationExceptionErrorExceptionpublic EvaluationResult evaluateExpressionInModel(long modelId, java.lang.String source, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderServiceevaluateExpressionInModel in interface ModelProviderServiceValidationExceptionErrorExceptionpublic ComponentServiceLocal getComponentService()
ModelProviderClientServicegetComponentService in interface ModelProviderClientServicepublic void synchronizeCache()
ModelProviderClientServicesynchronizeCache in interface ModelProviderClientServicepublic ExternalTypeProvider getExternalTypeProvider(java.lang.String providerClassName)
ModelProviderServicegetExternalTypeProvider in interface ModelProviderServicepublic void setToReferences(long modelInstanceId,
java.lang.Long contextId,
java.util.List<java.lang.String> referenceExpressions,
java.util.List<java.lang.Object> javaObjects)
ModelProviderServicesetToReferences in interface ModelProviderServicepublic CompatibilityVersion getCompatibilityVersion(long modelId)
ModelProviderClientServicegetCompatibilityVersion in interface ModelProviderClientServiceCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.