@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 |
---|---|
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.
|
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,
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.
|
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.
|
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 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 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
ModelProviderService
evaluateExpression
in interface ModelProviderService
ValidationException
ErrorException
public EvaluationResult evaluateExpression(long modelInstanceId, Long contextId, String source, boolean fullExecutionModel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderService
evaluateExpression
in interface ModelProviderService
ValidationException
ErrorException
public EvaluationResult evaluateExpression(long modelInstanceId, String source, String evaluationLevel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderService
evaluateExpression
in interface ModelProviderService
ValidationException
ErrorException
public EvaluationResult evaluateExpression(long modelInstanceId, Long contextId, String source, String evaluationLevel, boolean mergeEvaluation) throws ValidationException, ErrorException
ModelProviderService
evaluateExpression
in interface ModelProviderService
ValidationException
ErrorException
public EvaluationResult evaluateExpression(long modelInstanceId, String source, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderService
evaluateExpression
in interface ModelProviderService
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
ModelProviderService
evaluateExpressions
in interface ModelProviderService
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
ModelProviderService
evaluateExpressionsInModel
in interface ModelProviderService
ValidationException
ErrorException
public EvaluationResult evaluateExpressionInModel(long modelId, String source, boolean fullExecutionModel) throws ValidationException, ErrorException
ModelProviderService
evaluateExpressionInModel
in interface ModelProviderService
ValidationException
ErrorException
public ComponentServiceLocal getComponentService()
ModelProviderClientService
getComponentService
in interface ModelProviderClientService
public void synchronizeCache()
ModelProviderClientService
synchronizeCache
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-2020 Whitestein Technologies. All Rights Reserved.