Package | Description |
---|---|
com.whitestein.lsps.engine |
The package contains common classes for LSPS expression interpretation.
|
com.whitestein.lsps.engine.hql | |
com.whitestein.lsps.engine.lang.compiled | |
com.whitestein.lsps.engine.sharedrecord | |
com.whitestein.lsps.engine.tester |
Testing support for testing engine tasks.
|
com.whitestein.lsps.human.model | |
com.whitestein.lsps.lang.antlr | |
com.whitestein.lsps.lang.parser |
This package contains ANTLR-based LSPS language parser (
Parser ). |
com.whitestein.lsps.lang.type |
Provides classes for type reflection.
|
com.whitestein.lsps.modulemanager | |
com.whitestein.lsps.stdlib.dmn | |
com.whitestein.lsps.stdlib.function |
Classes that implements functions defined
in the standard library.
|
com.whitestein.lsps.test | |
com.whitestein.lsps.tools |
Modifier and Type | Method and Description |
---|---|
Decimal |
SharedRecordTypeFactory.count(ExecutionContext context,
ClosureHolder closureWithQuery,
String iterator,
Expression whereExpression)
Dynamically creates query and executes it.
|
Decimal |
SharedRecordTypeFactory.count(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType,
String iterator,
Expression whereExpression)
Dynamically creates query and executes it.
|
EvaluationResult |
ModelProviderService.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 |
ModelProviderService.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.
|
EvaluationResultValue |
ExpressionEvaluationService.evaluateExpression(long modelInstanceId,
String expression,
boolean fullExecutionMode)
Parses the string to the expression and than evaluates it in the top context of the model
instance.
|
EvaluationResult |
ModelProviderService.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.
|
EvaluationResultValue |
ExpressionEvaluationServiceBean.evaluateExpression(long modelInstanceId,
String source,
boolean fullExecutionMode) |
EvaluationResult |
ModelProviderService.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 |
ModelProviderService.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.
|
String |
ExpressionEvaluationService.evaluateExpressionAsString(long modelInstanceId,
String expression,
boolean fullExecutionMode)
Evaluates an expression and returns its string representation
|
String |
ExpressionEvaluationServiceBean.evaluateExpressionAsString(long modelInstanceId,
String source,
boolean fullExecutionMode) |
String |
ExpressionEvaluationService.evaluateExpressionInContextAsString(long modelInstanceId,
Long contextId,
String expression,
boolean fullExecutionMode)
Evaluates an expression in a specific context and returns its string representation
|
String |
ExpressionEvaluationServiceBean.evaluateExpressionInContextAsString(long modelInstanceId,
Long contextId,
String source,
boolean fullExecutionMode) |
EvaluationResultValue |
ExpressionEvaluationService.evaluateExpressionInModel(long modelId,
String expression,
boolean fullExecutionMode)
Parses the string to the expression and than evaluates it in the empty model context.
|
EvaluationResult |
ModelProviderService.evaluateExpressionInModel(long modelId,
String source,
boolean fullExecutionModel)
Parses the string to the expression and than evaluates it in the empty model context
|
EvaluationResultValue |
ExpressionEvaluationServiceBean.evaluateExpressionInModel(long modelId,
String expression,
boolean fullExecutionMode) |
List<EvaluationResultValue> |
ExpressionEvaluationService.evaluateExpressions(long modelInstanceId,
List<String> expressions,
boolean fullExecutionMode)
Parses the string sources of expressions in the list evaluates them end returns list of
results.
|
List<EvaluationResult> |
ModelProviderService.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<EvaluationResultValue> |
ExpressionEvaluationServiceBean.evaluateExpressions(long modelInstanceId,
List<String> sources,
boolean fullExecutionMode) |
List<String> |
ExpressionEvaluationService.evaluateExpressionsAsString(long modelInstanceId,
List<String> expressions,
boolean fullExecutionMode)
Evaluates list of expressions and returns the string representations.
|
List<String> |
ExpressionEvaluationServiceBean.evaluateExpressionsAsString(long modelInstanceId,
List<String> sources,
boolean fullExecutionMode) |
List<EvaluationResultValue> |
ExpressionEvaluationService.evaluateExpressionsInModel(long modelId,
List<String> expressions,
boolean fullExecutionMode)
Parses the string sources of expressions in the list evaluates them end returns list of
results.
|
List<EvaluationResult> |
ModelProviderService.evaluateExpressionsInModel(long modelId,
List<String> sources,
boolean fullExecutionModel)
Parses the string sources of expressions in the list evaluates them end returns list of
results.
|
List<EvaluationResultValue> |
ExpressionEvaluationServiceBean.evaluateExpressionsInModel(long modelId,
List<String> expressions,
boolean fullExecutionMode) |
ListHolder |
SharedRecordTypeFactory.queryAuditList(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType,
String iterator,
Expression whereExpression,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count,
Long revision,
List<AuditCriteria> auditCriteria)
Dynamically creates query and executes it.
|
ListHolder |
SharedRecordTypeFactory.queryList(ExecutionContext context,
ClosureHolder closureWithQuery,
String iterator,
Expression whereExpression,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count)
Dynamically creates query and executes it.
|
ListHolder |
SharedRecordTypeFactory.queryList(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType,
String iterator,
Expression whereExpression,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count)
Dynamically creates query and executes it.
|
RecordType |
ModelProviderImpl.resolveRecordType(long moduleId,
String qualifiedName) |
RecordType |
ModelProvider.resolveRecordType(long moduleId,
String qualifiedName)
Resolves record by its qualified name in given model.
|
Type |
ModelProviderImpl.resolveType(long moduleId,
String qualifiedName) |
Type |
ModelProvider.resolveType(long modelId,
String qualifiedName)
Resolves type by its qualified name in given model.
|
Type |
ModelCache.resolveType(String type,
ExecutionContext ctx)
Parses given type string representation using resolver for current process.
|
Type |
ModelCache.resolveType(String type,
long modelId,
ModelProviderClientService modelProviderService)
Parses given type string representation using resolver for current process.
|
Modifier and Type | Method and Description |
---|---|
String |
HqlTransformer.transform(boolean removeOrderBy)
Transform the source, replacing entity names and property names.
|
String |
HqlTransformer.transformToCount()
Transform the source to count query, replacing entity names and property names.
|
Modifier and Type | Method and Description |
---|---|
protected static RecordHolder |
CompiledNamespace.createRecordByConstructor(Namespace namespace,
String recordTypeString,
Class<?>[] parameterTypes,
Object[] values) |
protected RecordHolder |
CompiledNamespace.createRecordByConstructor(String recordTypeString,
Class<?>[] parameterTypes,
Object[] values) |
Modifier and Type | Method and Description |
---|---|
Decimal |
QueryExecutor.count(ClosureHolder closureWithQuery,
String recordIterator,
Expression additionalWhereExp)
Dynamically creates query and executes it.
|
Decimal |
SharedRecordTypeFactoryImpl.count(ExecutionContext context,
ClosureHolder closureWithQuery,
String iterator,
Expression whereExpression) |
Decimal |
SharedRecordTypeFactoryImpl.count(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType,
String iterator,
Expression whereExpression) |
protected Decimal |
QueryExecutor.count(List<com.whitestein.lsps.engine.sharedrecord.QueryExecutor.WhereExpression> whereExpressions)
Dynamically creates query and executes it.
|
Decimal |
QueryExecutor.count(com.whitestein.lsps.model.sharedrecord.SharedRecordType type,
String recordIterator,
Expression whereExp)
Dynamically creates query and executes it.
|
protected List<Object> |
QueryExecutor.getAuditResultList(List<com.whitestein.lsps.engine.sharedrecord.QueryExecutor.WhereExpression> whereExpressions,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count,
Long revision,
List<AuditCriteria> auditCriteria)
Dynamically creates query and executes it.
|
List<Object> |
QueryExecutor.getAuditResultList(com.whitestein.lsps.model.sharedrecord.SharedRecordType type,
String recordIterator,
Expression whereExp,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count,
Long revision,
List<AuditCriteria> auditCriteria)
Dynamically creates query and executes it.
|
protected List<Object> |
QueryExecutor.getAuditResultListInternal(List<com.whitestein.lsps.engine.sharedrecord.QueryExecutor.WhereExpression> whereExpressions,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count,
Long revision,
List<AuditCriteria> auditCriteria) |
List<Object> |
QueryExecutor.getResultList(ClosureHolder closureWithQuery,
String recordIterator,
Expression additionalWhereExp,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count)
Dynamically creates query and executes it.
|
protected List<Object> |
QueryExecutor.getResultList(List<com.whitestein.lsps.engine.sharedrecord.QueryExecutor.WhereExpression> whereExpressions,
com.whitestein.lsps.engine.sharedrecord.QueryExecutor.Orderings orderings,
Integer index,
Integer count)
Dynamically creates query and executes it.
|
List<Object> |
QueryExecutor.getResultList(com.whitestein.lsps.model.sharedrecord.SharedRecordType type,
String recordIterator,
Expression whereExp,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count)
Dynamically creates query and executes it.
|
ListHolder |
SharedRecordTypeFactoryImpl.queryAuditList(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType,
String recordIterator,
Expression whereExpression,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count,
Long revision,
List<AuditCriteria> auditCriteria) |
ListHolder |
SharedRecordTypeFactoryImpl.queryList(ExecutionContext context,
ClosureHolder closureWithQuery,
String recordIterator,
Expression whereExpression,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count) |
ListHolder |
SharedRecordTypeFactoryImpl.queryList(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType,
String recordIterator,
Expression whereExpression,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count) |
Modifier and Type | Method and Description |
---|---|
ListHolder |
TestFunctionsImpl.dynamicAuditQuery(ExecutionContext ctx,
Type recordType,
String iterator,
String where,
ListHolder ordering,
Decimal index,
Decimal count,
Decimal revision,
ListHolder auditCriteria) |
ListHolder |
TestFunctions.dynamicAuditQuery(ExecutionContext ctx,
Type recordType,
String iterator,
String where,
ListHolder ordering,
Decimal index,
Decimal count,
Decimal revision,
ListHolder auditCriteria) |
Decimal |
TestFunctionsImpl.dynamicCountQuery(ExecutionContext ctx,
ClosureHolder closureWithQuery,
String iterator,
String where) |
Decimal |
TestFunctions.dynamicCountQuery(ExecutionContext ctx,
ClosureHolder closureWithQuery,
String iterator,
String where) |
Decimal |
TestFunctionsImpl.dynamicCountQuery(ExecutionContext ctx,
Type recordType,
String iterator,
String where) |
Decimal |
TestFunctions.dynamicCountQuery(ExecutionContext ctx,
Type recordType,
String iterator,
String where) |
ListHolder |
TestFunctionsImpl.dynamicQuery(ExecutionContext ctx,
ClosureHolder closureWithQuery,
String iterator,
String where,
ListHolder ordering,
Decimal index,
Decimal count) |
ListHolder |
TestFunctions.dynamicQuery(ExecutionContext ctx,
ClosureHolder closureWithQuery,
String iterator,
String where,
ListHolder ordering,
Decimal index,
Decimal count) |
ListHolder |
TestFunctionsImpl.dynamicQuery(ExecutionContext ctx,
Type recordType,
String iterator,
String where,
ListHolder ordering,
Decimal index,
Decimal count) |
ListHolder |
TestFunctions.dynamicQuery(ExecutionContext ctx,
Type recordType,
String iterator,
String where,
ListHolder ordering,
Decimal index,
Decimal count) |
Modifier and Type | Method and Description |
---|---|
void |
HintModule.add(com.whitestein.lsps.modeler.hints.Hint hint) |
Modifier and Type | Method and Description |
---|---|
AntlrType |
AntlrTypeParser.parseType(String string)
Parses a type from a string.
|
List<AntlrType> |
AntlrTypeParser.parseTypeList(String string)
Parses a type list from a string.
|
AntlrTypeParameters |
AntlrTypeParser.parseTypeParameters(String string)
Parses a type parameter declaration (e.g.
|
Modifier and Type | Method and Description |
---|---|
protected ValidationException |
TypeParser.createValidationException(String errorMessage,
org.antlr.runtime.tree.Tree tree)
Creates a validation exception with a given message.
|
protected ValidationException |
Parser.error(String message,
org.antlr.runtime.tree.Tree tree) |
Modifier and Type | Method and Description |
---|---|
Iterator<ValidationException> |
Errors.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
Errors.add(ValidationException error) |
Modifier and Type | Method and Description |
---|---|
void |
Errors.addAll(Collection<ValidationException> errors) |
Modifier and Type | Method and Description |
---|---|
protected Type |
TypeParser.findNamedType(QID qid)
Finds a type by a given name.
|
T |
Parsed.getValid() |
Expression |
Parser.parse(AntlrExpressionTree expressionTree,
Type expectedType)
Parses an expression from a pre-parsed antlr tree for the given expected type.
|
ValidationTargetAst |
ValidationTargetParser.parse(String string)
Parses a validation target.
|
ValidationTagExpression |
ValidationTagParser.parse(String string) |
SignatureAst |
NameAndArgumentsParser.parse(String source) |
Object |
DataParser.parse(String string)
Parses the given string and returns the evaluated data.
|
Expression |
Parser.parse(String source,
Type expectedType)
Parses an expression from a string source for the given expected type.
|
FunctionBody |
SignatureParser.parseBody(FunctionAst function) |
ConstraintAst |
ConstraintParser.parseConstraint(String string,
Type targetType)
Parses a constraint.
|
Parsed<ConstraintAst> |
ConstraintParser.parseConstraintLax(String string,
Type targetType)
Parses a constraint.
|
static Date |
Parser.parseDateLiteral(String text)
Parses a given date literal.
|
FunctionAst |
FunctionParser.parseFunction(AntlrFunction fnc) |
AntlrFunctions |
FunctionParser.parseFunctions(String source) |
static List<String> |
ParserUtil.parseIdentifierList(String string)
Parses an identifier list from a string.
|
static List<IdentifierAst> |
ParserUtil.parseIdentifierListAst(String string)
Parses an identifier list from a string.
|
static List<String> |
ParserUtil.parseIdentifierPath(String string)
Parses an identifier path from a given string.
|
static java.time.LocalDate |
ParserUtil.parseLocalDateLiteral(String text)
Parses a given local date literal.
|
FunctionAst |
MethodParser.parseMember(AntlrFunction fnc) |
AntlrMethods |
MethodParser.parseMethods(String source) |
static List<QID> |
ParserUtil.parseQualifiedIdentifierList(String string)
Parses a qualified identifier list from a string.
|
static List<QIDAst> |
ParserUtil.parseQualifiedIdentifierListAst(String string)
Parses a qualified identifier list from a string.
|
static String |
ParserUtil.parseStringLiteral(String text)
Parses a string literal.
|
TaskParametersAst |
TaskParametersParser.parseTaskParameters(String source,
Map<String,Type> parameterTypes)
Parses task parameters.
|
Type |
TypeParser.parseType(AntlrType antlrType)
Parses a type from an AntlrType object.
|
Type |
TypeParser.parseType(String string)
Parses a type from a string.
|
AstType |
AstTypeParser.parseType(String string)
Parses a type from a string.
|
Type |
TypeParser.parseType(org.antlr.runtime.tree.Tree tree)
Parses a type from an ANTLR tree.
|
protected Type |
Parser.parseType(org.antlr.runtime.tree.Tree tree) |
List<Type> |
TypeParser.parseTypeList(String string)
Parses a type list from a string.
|
List<AstType> |
AstTypeParser.parseTypeList(String string)
Parses a type list from a string.
|
Map<String,Type> |
TypeParser.parseTypeParameters(AntlrTypeParameters typeParameters)
Parses a free type list from an AntlrTypeParameters object.
|
protected TypeParametersAst |
SignatureParser.parseTypeParameters(AntlrTypeParameters typeParameters,
Errors errors) |
Map<String,Type> |
TypeParser.parseTypeParameters(String string)
Parses a type parameter declaration from a string.
|
TypeParametersAst |
TypeParser.parseTypeParametersAst(String fullText,
AntlrTypeParameters typeParameters)
Parses a free type list from an AntlrTypeParameters object.
|
void |
Parsed.validate() |
void |
Errors.validate() |
Object |
SimpleDataInstantiator.visit(FunctionCallExpression closureCall) |
protected Object |
SimpleDataInstantiator.visitExpression(Expression expression) |
Constructor and Description |
---|
Errors(ValidationException error) |
Parsed(T result,
ValidationException error) |
ParsedExpression(Expression expression,
ValidationException error) |
Constructor and Description |
---|
Errors(Collection<ValidationException> errors) |
Modifier and Type | Method and Description |
---|---|
static QID |
QID.parse(String source)
Parses a qualified identifier from a string.
|
Modifier and Type | Method and Description |
---|---|
EvaluationResult |
ModelProviderServiceBean.evaluateExpression(long modelInstanceId,
Long contextId,
String source,
boolean fullExecutionModel,
boolean mergeEvaluation) |
EvaluationResult |
ModelProviderServiceBean.evaluateExpression(long modelInstanceId,
Long contextId,
String source,
String evaluationLevel,
boolean mergeEvaluation) |
EvaluationResult |
ModelProviderServiceBean.evaluateExpression(long modelInstanceId,
String source,
boolean fullExecutionModel) |
EvaluationResult |
ModelProviderServiceBean.evaluateExpression(long modelInstanceId,
String source,
boolean fullExecutionModel,
boolean mergeEvaluation) |
EvaluationResult |
ModelProviderServiceBean.evaluateExpression(long modelInstanceId,
String source,
String evaluationLevel,
boolean mergeEvaluation) |
EvaluationResult |
ModelProviderServiceBean.evaluateExpressionInModel(long modelId,
String source,
boolean fullExecutionModel) |
List<EvaluationResult> |
ModelProviderServiceBean.evaluateExpressions(long modelInstanceId,
List<String> sources,
boolean fullExecutionModel) |
List<EvaluationResult> |
ModelProviderServiceBean.evaluateExpressionsInModel(long modelId,
List<String> sources,
boolean fullExecutionModel) |
Modifier and Type | Method and Description |
---|---|
static DmnEvaluator |
DmnEvaluator.create(ExecutionContext ctx,
HitPolicy hitPolicy,
com.whitestein.lsps.stdlib.dmn.DmnExpressionEvaluator expressionEvaluator,
String module,
List<Parameter> inputs,
List<Parameter> outputs,
List<Rule> rules)
Creates an evaluator instance.
|
ListHolder |
DmnEvaluator.evaluateList(ListHolder inputValues)
Evaluates the decision table.
|
ListHolder |
DmnEvaluator.evaluateMap(MapHolder inputValues)
Evaluates the decision table.
|
com.whitestein.lsps.stdlib.dmn.DmnTableCache |
DmnCache.getTableCache(com.whitestein.lsps.stdlib.dmn.DmnCacheKey key,
ModelProvider modelProvider)
Returns the table cache for the given cache key.
|
Modifier and Type | Method and Description |
---|---|
ClosureHolder |
ActionFunctionsImpl.compileClosure(ExecutionContext ctx,
String closureString) |
ClosureHolder |
ActionFunctions.compileClosure(ExecutionContext ctx,
String closureString) |
Modifier and Type | Method and Description |
---|---|
EvaluationResultValue |
ModelInstance.evaluateExpressionInEvaluationLevel(Long contextId,
String expression,
String evaluationLevel,
boolean mergeEvaluation)
Evaluates expression in the given context and the specified evaluation level.
|
EvaluationResultValue |
ModelInstance.evaluateExpressionInEvaluationLevel(String expression,
String evaluationLevel,
boolean mergeEvaluation)
Evaluates expression in the specified evaluation level.
|
EvaluationResultValue |
ModelInstance.execute(String expression)
Evaluates expression in base context.
|
Object |
Todo.execute(String expression)
Evaluates expression in base evaluation level in the context of this To-do.
|
EvaluationResultValue |
ModelInstance.execute(String expression,
Long contextId)
Evaluates expression in base evaluation level in the specified context.
|
Modifier and Type | Method and Description |
---|---|
EvaluationResultValue |
TestSupportServiceBean.evaluateExpression(long modelInstanceId,
Long contextId,
String source,
boolean fullExecutionMode,
boolean mergeEval) |
EvaluationResultValue |
TestSupportService.evaluateExpression(long modelInstanceId,
Long contextId,
String expression,
boolean fullExecutionMode,
boolean mergeEvaluation)
Parses the string source of expression and evaluates them.
|
EvaluationResultValue |
TestSupportServiceBean.evaluateExpressionInEvaluationLevel(long modelInstanceId,
Long contextId,
String source,
String evaluationLevel,
boolean mergeEvaluation) |
EvaluationResultValue |
TestSupportService.evaluateExpressionInEvaluationLevel(long modelInstanceId,
Long contextId,
String expression,
String evaluationLevel,
boolean mergeEvaluation)
Parses the string source of expression and evaluates them.
|
EvaluationResultValue |
TestSupportServiceBean.evaluateExpressionInEvaluationLevelDetached(byte[] serializedModelInstance,
Long contextId,
String source,
String evaluationLevel,
boolean mergeEvaluation) |
EvaluationResultValue |
TestSupportService.evaluateExpressionInEvaluationLevelDetached(byte[] serializedModelInstance,
Long contextId,
String source,
String evaluationLevel,
boolean mergeEvaluation)
Evaluates expression in the detached model instance.
|
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.