Package | Description |
---|---|
com.whitestein.lsps.engine |
The package contains common classes for LSPS expression interpretation.
|
com.whitestein.lsps.engine.dto.val | |
com.whitestein.lsps.engine.lang | |
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 |
Services for accessing the functionality related to human-oriented processes.
|
com.whitestein.lsps.lang |
This is the main package for the LSPS expression language.
|
com.whitestein.lsps.lang.exec |
All types in the language have their Java implementation class.
|
com.whitestein.lsps.stdlib.function |
Classes that implements functions defined
in the standard library.
|
com.whitestein.lsps.stdlib.type |
This package contains implementations of core reflection types.
|
Modifier and Type | Method and Description |
---|---|
Decimal |
SharedRecordTypeFactory.count(ExecutionContext context,
ClosureHolder closureWithQuery,
String iterator,
Expression whereExpression)
Dynamically creates query and executes it.
|
static String |
HolderHelper.getPathForEnumConstant(ClosureHolder closureWithQuery,
String recordIterator,
EnumerationImpl enumConstant)
Returns path mapped to the enumeration in the query used in the closure.
|
static boolean |
HolderHelper.isClosureWithQuery(ClosureHolder closureHolder)
Returns true if the closure contains a call of a query as the last expression.
|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
ClosureValue
A closure value.
|
Modifier and Type | Method and Description |
---|---|
ClosureHolder |
EvaluationLevelConverter.closureInLevel(String level,
ClosureHolder closureHolder)
Returns closure holder in the required evaluation level.
|
ClosureHolder |
RecordNamespace.createClosure(ClosureType closureType,
ClosureExpression closureExpression,
ClosureOrigin origin) |
ClosureHolder |
NoBaseContextNamespace.createClosure(ClosureType closureType,
ClosureExpression closureExpression,
ClosureOrigin origin) |
ClosureHolder |
ContextNamespace.createClosure(ClosureType closureType,
ClosureExpression closureExpression,
ClosureOrigin origin) |
ClosureHolder |
RecordNamespace.createClosure(ClosureType closureType,
FunctionExpression operationExpression,
ClosureOrigin origin) |
ClosureHolder |
NoBaseContextNamespace.createClosure(ClosureType closureType,
FunctionExpression operationExpression,
ClosureOrigin origin) |
ClosureHolder |
ContextNamespace.createClosure(ClosureType closureType,
FunctionExpression operationExpression,
ClosureOrigin origin) |
ClosureHolder |
RecordNamespace.createClosure(ClosureType closureType,
MethodExpression operationExpression,
ClosureOrigin origin) |
ClosureHolder |
NoBaseContextNamespace.createClosure(ClosureType closureType,
MethodExpression operationExpression,
ClosureOrigin origin) |
ClosureHolder |
ContextNamespace.createClosure(ClosureType closureType,
MethodExpression operationExpression,
ClosureOrigin origin) |
ClosureHolder |
RecordNamespace.createClosureFromExpression(ClosureType closureType,
Expression expression,
ClosureOrigin origin) |
ClosureHolder |
NoBaseContextNamespace.createClosureFromExpression(ClosureType closureType,
Expression expression,
ClosureOrigin origin) |
ClosureHolder |
ContextNamespace.createClosureFromExpression(ClosureType closureType,
Expression expression,
ClosureOrigin origin) |
Modifier and Type | Method and Description |
---|---|
ClosureHolder |
EvaluationLevelConverter.closureInLevel(String level,
ClosureHolder closureHolder)
Returns closure holder in the required evaluation level.
|
Modifier and Type | Class and Description |
---|---|
class |
CompiledClosureHolder
Closure holder implementation used for closures compiled to java.
|
Modifier and Type | Method and Description |
---|---|
protected ClosureHolder |
CompiledNamespace.createOperationHolder(ClosureType closureType,
String expressionString,
ClosureOrigin expressionOrigin) |
protected static ClosureHolder |
CompiledNamespace.createOperationHolder(Namespace namespace,
ClosureType closureType,
String expressionString,
ClosureOrigin expressionOrigin) |
protected static ClosureHolder |
CompiledNamespace.createOperationHolder(Namespace namespace,
RecordHolder recordHolder,
ClosureType closureType,
String expressionString,
ClosureOrigin expressionOrigin) |
protected ClosureHolder |
CompiledNamespace.createOperationHolder(RecordHolder recordHolder,
ClosureType closureType,
String expressionString,
ClosureOrigin expressionOrigin) |
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) |
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.
|
ListHolder |
SharedRecordTypeFactoryImpl.queryList(ExecutionContext context,
ClosureHolder closureWithQuery,
String recordIterator,
Expression whereExpression,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count) |
Modifier and Type | Method and Description |
---|---|
Decimal |
TestFunctionsImpl.dynamicCountQuery(ExecutionContext ctx,
ClosureHolder closureWithQuery,
String iterator,
String where) |
Decimal |
TestFunctions.dynamicCountQuery(ExecutionContext ctx,
ClosureHolder closureWithQuery,
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) |
Object |
TestFunctionsImpl.executeInNewTransaction(ExecutionContext ctx,
ClosureHolder closure,
ListHolder arguments) |
Object |
TestFunctions.executeInNewTransaction(ExecutionContext ctx,
ClosureHolder closure,
ListHolder arguments) |
Modifier and Type | Method and Description |
---|---|
Decimal |
DynamicQueriesBean.queryRecordCount(ExecutionContext ctx,
ClosureHolder query,
String iterator,
String whereExpr) |
ListHolder |
DynamicQueriesBean.queryRecordList(ExecutionContext ctx,
ClosureHolder query,
Decimal startIndex,
Decimal count,
String iterator,
String whereExpr,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractClosureHolder |
class |
ClosureExpressionHolder
ClosureExpression to ClosureHolder adapter. |
class |
ExpressionAsClosureHolder
This is an adapter which creates a
ClosureHolder from an expression. |
class |
OperationExpressionHolder
FunctionExpression to ClosureHolder adapter. |
Modifier and Type | Method and Description |
---|---|
ClosureHolder |
MockHolderFactory.createClosure(ClosureType closureType,
ClosureExpression closureExpression,
ClosureOrigin origin) |
ClosureHolder |
HolderFactory.createClosure(ClosureType closureType,
ClosureExpression closureExpression,
ClosureOrigin origin)
Creates new closure corresponding to given closure expression.
|
ClosureHolder |
AbstractMockNamespace.createClosure(ClosureType closureType,
ClosureExpression closureExpression,
ClosureOrigin origin) |
ClosureHolder |
MockHolderFactory.createClosure(ClosureType closureType,
FunctionExpression operationExpression,
ClosureOrigin origin) |
ClosureHolder |
HolderFactory.createClosure(ClosureType closureType,
FunctionExpression operationExpression,
ClosureOrigin origin)
Creates new closure corresponding to given operation expression.
|
ClosureHolder |
AbstractMockNamespace.createClosure(ClosureType closureType,
FunctionExpression operationExpression,
ClosureOrigin origin) |
ClosureHolder |
MockHolderFactory.createClosure(ClosureType closureType,
MethodExpression operationExpression,
ClosureOrigin origin) |
ClosureHolder |
HolderFactory.createClosure(ClosureType closureType,
MethodExpression operationExpression,
ClosureOrigin origin)
Creates new closure corresponding to given operation expression.
|
ClosureHolder |
AbstractMockNamespace.createClosure(ClosureType closureType,
MethodExpression operationExpression,
ClosureOrigin origin) |
ClosureHolder |
MockHolderFactory.createClosureFromExpression(ClosureType closureType,
Expression expression,
ClosureOrigin origin) |
ClosureHolder |
HolderFactory.createClosureFromExpression(ClosureType closureType,
Expression expression,
ClosureOrigin origin)
Creates new closure from a given expression.
|
ClosureHolder |
AbstractMockNamespace.createClosureFromExpression(ClosureType closureType,
Expression expression,
ClosureOrigin origin) |
Modifier and Type | Interface and Description |
---|---|
interface |
ClosureHolderInternal |
Modifier and Type | Class and Description |
---|---|
class |
MockClosureHolder |
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 |
---|---|
CollectionHolder |
CollectionsFunctions.collect(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder function)
When given a collection
[a_1, a_2, ..., a_n] , this method returns [function(a_1),
function(a_2), ..., function(a_n)] . |
ListHolder |
CollectionsFunctions.collect(ExecutionContext ctx,
ListHolder list,
ClosureHolder function)
When given a list
[a_1, a_2, ..., a_n] , this method returns [function(a_1),
function(a_2), ..., function(a_n)] . |
SetHolder |
CollectionsFunctions.collect(ExecutionContext ctx,
SetHolder set,
ClosureHolder function)
When given a set
[a_1, a_2, ..., a_n] , this method returns [function(a_1),
function(a_2), ..., function(a_n)] . |
ListHolder |
CollectionsFunctions.collectMap(ExecutionContext ctx,
MapHolder map,
ClosureHolder function)
Collects over map entries.
|
CollectionHolder |
CollectionsFunctions.collectWithIndex(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder function)
Returns a set/list/collection of values obtained by applying the function
to each item of the set/list/collection.
|
ListHolder |
CollectionsFunctions.collectWithIndex(ExecutionContext ctx,
ListHolder list,
ClosureHolder function)
Returns a set/list/collection of values obtained by applying the function
to each item of the set/list/collection.
|
SetHolder |
CollectionsFunctions.collectWithIndex(ExecutionContext ctx,
SetHolder set,
ClosureHolder function)
Returns a set/list/collection of values obtained by applying the function
to each item of the set/list/collection.
|
Decimal |
CollectionsFunctions.count(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Counts the number of elements in the collection that fulfill the passed condition.
|
String |
ActionFunctionsImpl.debugLog(ExecutionContext ctx,
ClosureHolder message) |
String |
ActionFunctions.debugLog(ExecutionContext ctx,
ClosureHolder message)
Logs a message to the console at the debug logging level.
|
String |
ActionFunctionsImpl.debugLog(ExecutionContext ctx,
ClosureHolder message,
Decimal level) |
String |
ActionFunctions.debugLog(ExecutionContext ctx,
ClosureHolder message,
Decimal level)
Logs a message to the console at the specified logging level.
|
Object |
ActionFunctionsImpl.evaluateExpression(ExecutionContext ctx,
Boolean isFullExecutionMode,
ClosureHolder expression) |
Object |
ActionFunctions.evaluateExpression(ExecutionContext ctx,
Boolean isFullExecutionMode,
ClosureHolder expression)
This method evaluates an expression defined in the closure using defined evaluationMode.
|
boolean |
CollectionsFunctions.exists(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Test whether any element in collection will fulfill passed condition
|
boolean |
CollectionsFunctions.exists(ExecutionContext ctx,
ListHolder list,
ClosureHolder condition)
Test whether any element in list will fulfill passed condition
|
boolean |
CollectionsFunctions.exists(ExecutionContext ctx,
SetHolder set,
ClosureHolder condition)
Test whether any element in list will fulfill passed condition
|
Decimal |
CollectionsFunctions.findIndex(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Returns the index of the first occurrence of the collection element which
satisfies the specified condition; returns -1 if the condition is false
for all elements of the collection.
|
Decimal |
CollectionsFunctions.findIndex(ExecutionContext ctx,
CollectionHolder collection,
Decimal fromIndex,
ClosureHolder condition)
Returns the index of the first occurrence of the collection element
which satisfies the specified condition, starting at
fromIndex . |
Decimal |
CollectionsFunctions.findIndex(ExecutionContext ctx,
CollectionHolder collection,
Decimal fromIndex,
Decimal toIndex,
ClosureHolder condition)
Returns the index of the first occurrence of the collection element
which satisfies the specified condition, starting at
fromIndex
(inclusive) and finishing at toIndex (exclusive). |
Decimal |
CollectionsFunctions.findLastIndex(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Returns the index of the last occurrence of the collection element which
satisfies the specified condition, searching backwards; returns -1 if the
condition is false for all elements of the collection.
|
Decimal |
CollectionsFunctions.findLastIndex(ExecutionContext ctx,
CollectionHolder collection,
Decimal toIndex,
ClosureHolder condition)
Returns the index of the last occurrence of the collection element which
satisfies the specified condition, searching backwards starting at index
toIndex - 1 ; returns -1 if no such element is found. |
Decimal |
CollectionsFunctions.findLastIndex(ExecutionContext ctx,
CollectionHolder collection,
Decimal fromIndex,
Decimal toIndex,
ClosureHolder condition)
Returns the index of the last occurrence of the collection element which
satisfies the specified condition, searching backwards starting at index
toIndex - 1 up to fromIndex ; returns -1 if no
such element is found. |
SetHolder |
ReflectionFunctionsImpl.findProcessInstances(ExecutionContext context,
ClosureHolder filter) |
SetHolder |
ReflectionFunctions.findProcessInstances(ExecutionContext context,
ClosureHolder filter)
Returns a set of process instances satisfying the specified filtering
criteria.
|
SetHolder |
ReflectionFunctionsImpl.findProcessInstances(ExecutionContext context,
RecordHolder modelInstance,
ClosureHolder filter) |
SetHolder |
ReflectionFunctions.findProcessInstances(ExecutionContext context,
RecordHolder modelInstance,
ClosureHolder filter)
Returns a set of process instances for a model instance satisfying the specified filtering
criteria.
|
Object |
CollectionsFunctions.fold(ExecutionContext ctx,
CollectionHolder collection,
Object initialValue,
ClosureHolder function)
Combines the elements of the collection together using the binary function, starting with the
initialValue.
|
Object |
CollectionsFunctions.fold(ExecutionContext ctx,
ListHolder list,
Object initialValue,
ClosureHolder function)
Combines the elements of the list together using the binary function, starting with the
initialValue.
|
Object |
CollectionsFunctions.fold(ExecutionContext ctx,
SetHolder set,
Object initialValue,
ClosureHolder function)
Combines the elements of the set together using the binary function, starting with the
initialValue.
|
Object |
CollectionsFunctions.foldWithIndex(ExecutionContext ctx,
CollectionHolder collection,
Object initialValue,
ClosureHolder function)
Combines the elements of the collection together using the binary function, starting with the
initialValue.
|
boolean |
CollectionsFunctions.forAll(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Test whether all elements in collection will fulfill passed condition
|
boolean |
CollectionsFunctions.forAll(ExecutionContext ctx,
ListHolder list,
ClosureHolder condition)
Test whether all elements in list will fulfill passed condition
|
boolean |
CollectionsFunctions.forAll(ExecutionContext ctx,
SetHolder set,
ClosureHolder condition)
Test whether all elements in list will fulfill passed condition
|
Object |
CollectionsFunctions.getFirst(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Returns the first element for which the given condition is true.
|
Object |
CollectionsFunctions.getLast(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Returns the last element for which the given condition is true.
|
MapHolder |
CollectionsFunctions.groupBy(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder classifier)
Performs "group by".
|
MapHolder |
CollectionsFunctions.map(ExecutionContext ctx,
CollectionHolder keys,
ClosureHolder valueFunction)
For each key executes a given closure to obtain a map value.
|
MapHolder |
CollectionsFunctions.map(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder keyFunction,
ClosureHolder valueFunction)
For each element execute a keyFunction to obtain a map key and
valueFunction to obtain a map value.
|
CollectionHolder |
CollectionsFunctions.select(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder condition)
Returns a collection all the elements
e from the original collection where condition(e) == true . |
ListHolder |
CollectionsFunctions.select(ExecutionContext ctx,
ListHolder list,
ClosureHolder condition)
Returns a list containing all the elements
e from the original list where condition(e) == true . |
MapHolder |
CollectionsFunctions.select(ExecutionContext ctx,
MapHolder map,
ClosureHolder condition)
Returns a map containing all the map entries
(k,v) from the original map where
condition(k,v) == true . |
SetHolder |
CollectionsFunctions.select(ExecutionContext ctx,
SetHolder set,
ClosureHolder condition)
Returns a set containing all the elements
e from the original set where condition(e) == true . |
CollectionHolder |
CollectionsFunctions.sort(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder comparator)
Returns items of the collection ordered according to the comparator.
|
ListHolder |
CollectionsFunctions.sort(ExecutionContext ctx,
ListHolder list,
ClosureHolder comparator)
Returns items of the list ordered according to the comparator.
|
SetHolder |
CollectionsFunctions.sort(ExecutionContext ctx,
SetHolder set,
ClosureHolder comparator)
Returns items of the set ordered according to the comparator.
|
ListHolder |
CollectionsFunctions.sortByKey(ExecutionContext ctx,
CollectionHolder collection,
ClosureHolder keyExtractor,
Boolean ascending,
Boolean nullsFirst)
Returns a list of elements sorted by keys produced by key extractor.
|
Modifier and Type | Method and Description |
---|---|
ClosureHolder |
AchieveGoalHolder.deactivateCondition()
Returns deactivation condition of the goal.
|
ClosureHolder |
MaintainGoalHolder.maintainCondition()
Returns maintain condition.
|
ClosureHolder |
PlanHolder.preCondition()
Returns condition of the plan.
|
ClosureHolder |
AchieveGoalHolder.preCondition()
Returns precondition of the goal.
|
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.