@PermitAll public class ActionFunctionsImpl extends java.lang.Object implements ActionFunctions
ActionFunctions.| Constructor and Description |
|---|
ActionFunctionsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanEvaluation(ExecutionContext ctx)
Cleans auxiliary contexts and values used by the evaluation in the 'isFullExecutionMode = false' mode.
|
ClosureHolder |
compileClosure(ExecutionContext ctx,
java.lang.String closureString) |
RecordHolder |
createInstance(ExecutionContext ctx,
Type type,
MapHolder values)
Creates new instance of record type T.
|
RecordHolder |
createModelInstance(ExecutionContext ctx,
java.lang.Boolean synchronous,
RecordHolder model,
MapHolder properties)
Creates a model instance.
|
RecordHolder |
createModelInstance(ExecutionContext ctx,
java.lang.Boolean synchronous,
RecordHolder model,
RecordHolder processEntity,
MapHolder properties)
Creates a model instance with a specified process entity record.
|
void |
createProxyOfProperties(ExecutionContext ctx,
RecordHolder record,
Property... properties)
Creates change proxy for all object referenced by the property and sets the proxy values to the property.
|
RecordProxySetHolder |
createProxySet(ExecutionContext ctx,
RecordHolder parentProxySet)
Creates new record proxy set.
|
void |
createWithProxySetStart(RecordHolder proxySet) |
void |
createWithProxySetStop(RecordHolder proxySet) |
java.lang.String |
debugLog(ExecutionContext ctx,
ClosureHolder message)
Logs a message to the console at the debug logging level.
|
java.lang.String |
debugLog(ExecutionContext ctx,
ClosureHolder message,
Decimal level)
Logs a message to the console at the specified logging level.
|
void |
deleteAllRecords(ExecutionContext ctx,
CollectionHolder records)
Deletes the specified records and all related data links navigable from the deleted records.
|
void |
deleteRecords(ExecutionContext ctx,
RecordHolder... records)
Deletes the specified records and all related data links navigable from the deleted records.
|
java.lang.Object |
evaluateExpression(ExecutionContext ctx,
java.lang.Boolean isFullExecutionMode,
ClosureHolder expression)
This method evaluates an expression defined in the closure using defined evaluationMode.
|
void |
flushAndRefresh(ExecutionContext ctx,
RecordHolder... record)
Executes flush on all relevant sessions and performs refresh (re-read from database) on the specified records.
|
RecordHolder |
getCommonProxySet() |
RecordHolder |
getProxiedRecord(java.lang.Object proxy)
Returns proxied record of the proxy.
|
Decimal |
getProxyLevel(RecordHolder record)
Returns proxy level of the record.
|
RecordProxySetHolder |
getProxySet(RecordHolder record)
Returns
RecordProxySetHolder for the record. |
void |
log(ExecutionContext ctx,
java.lang.String message,
Decimal level)
Logs a message to the application log on specified level.
|
ListHolder |
mergeAllProxies(ExecutionContext ctx,
java.lang.Boolean checkConflicts,
CollectionHolder records)
Merges changes from the proxies to the proxied records.
|
void |
mergeEvaluation(ExecutionContext ctx)
Merges auxiliary contexts and values to the original execution contexts and values.
|
ListHolder |
mergeProxies(ExecutionContext ctx,
java.lang.Boolean checkConflicts,
java.lang.Object... records)
Merges changes from the proxies to the proxied records.
|
void |
notifyModelInstance(ExecutionContext ctx,
Decimal modelInstanceId,
java.lang.String reason,
java.lang.Boolean synchronously)
Notify provided model instance.
|
void |
removeFromProxySet(RecordHolder record)
Remove the record from the proxySet the record is included in.
|
void |
sendSignal(ExecutionContext ctx,
java.lang.Boolean synchronous,
SetHolder receivers,
java.lang.Object signal)
Sends a sync or async signal to receivers.
|
void |
setCommonProxySet(RecordHolder proxySet) |
void |
throwEscalation(ExecutionContext ctx,
java.lang.String escalationCode,
java.lang.Object payload)
Throws an escalation event with the escalation code and optional payload.
|
public void sendSignal(ExecutionContext ctx, java.lang.Boolean synchronous, SetHolder receivers, java.lang.Object signal) throws ErrorException
ActionFunctionssendSignal in interface ActionFunctionsErrorExceptionpublic RecordHolder createModelInstance(ExecutionContext ctx, java.lang.Boolean synchronous, RecordHolder model, MapHolder properties) throws ErrorException
ActionFunctionscreateModelInstance in interface ActionFunctionsErrorExceptionpublic RecordHolder createModelInstance(ExecutionContext ctx, java.lang.Boolean synchronous, RecordHolder model, RecordHolder processEntity, MapHolder properties) throws ErrorException
ActionFunctionscreateModelInstance in interface ActionFunctionsErrorExceptionpublic void notifyModelInstance(ExecutionContext ctx, Decimal modelInstanceId, java.lang.String reason, java.lang.Boolean synchronously) throws ErrorException
ActionFunctionsnotifyModelInstance in interface ActionFunctionsreason - string used for loggingErrorExceptionpublic void log(ExecutionContext ctx, java.lang.String message, Decimal level) throws ErrorException
ActionFunctionslog in interface ActionFunctionsErrorExceptionpublic java.lang.String debugLog(ExecutionContext ctx, ClosureHolder message) throws ErrorException
ActionFunctionsdebugLog in interface ActionFunctionsErrorExceptionpublic java.lang.String debugLog(ExecutionContext ctx, ClosureHolder message, Decimal level) throws ErrorException
ActionFunctionsdebugLog in interface ActionFunctionsErrorExceptionpublic java.lang.Object evaluateExpression(ExecutionContext ctx, java.lang.Boolean isFullExecutionMode, ClosureHolder expression) throws ErrorException
ActionFunctionsevaluateExpression in interface ActionFunctionsErrorExceptionpublic void cleanEvaluation(ExecutionContext ctx)
ActionFunctionscleanEvaluation in interface ActionFunctionspublic void mergeEvaluation(ExecutionContext ctx) throws ErrorException
ActionFunctionsmergeEvaluation in interface ActionFunctionsErrorExceptionpublic void deleteAllRecords(ExecutionContext ctx, CollectionHolder records) throws ErrorException
ActionFunctionsdeleteAllRecords in interface ActionFunctionsErrorExceptionpublic void deleteRecords(ExecutionContext ctx, RecordHolder... records) throws ErrorException
ActionFunctionsdeleteRecords in interface ActionFunctionsErrorExceptionpublic void throwEscalation(ExecutionContext ctx, java.lang.String escalationCode, java.lang.Object payload) throws ErrorException
ActionFunctionsthrowEscalation in interface ActionFunctionsescalationCode - the code of the escalationpayload - the escalation payload (optional)ErrorExceptionpublic RecordHolder createInstance(ExecutionContext ctx, Type type, MapHolder values) throws ErrorException
ActionFunctionscreateInstance in interface ActionFunctionsErrorExceptionpublic RecordProxySetHolder createProxySet(ExecutionContext ctx, RecordHolder parentProxySet)
ActionFunctionscreateProxySet in interface ActionFunctionspublic void createProxyOfProperties(ExecutionContext ctx, RecordHolder record, Property... properties) throws ErrorException
ActionFunctionscreateProxyOfProperties in interface ActionFunctionsErrorExceptionpublic RecordHolder getProxiedRecord(java.lang.Object proxy)
ActionFunctionsgetProxiedRecord in interface ActionFunctionspublic RecordProxySetHolder getProxySet(RecordHolder record)
ActionFunctionsRecordProxySetHolder for the record. If the record is not a proxy it returns null;getProxySet in interface ActionFunctionspublic void removeFromProxySet(RecordHolder record)
ActionFunctionsremoveFromProxySet in interface ActionFunctionspublic Decimal getProxyLevel(RecordHolder record)
ActionFunctionsgetProxyLevel in interface ActionFunctionspublic void setCommonProxySet(RecordHolder proxySet)
setCommonProxySet in interface ActionFunctionspublic RecordHolder getCommonProxySet()
getCommonProxySet in interface ActionFunctionspublic void createWithProxySetStart(RecordHolder proxySet)
createWithProxySetStart in interface ActionFunctionspublic void createWithProxySetStop(RecordHolder proxySet)
createWithProxySetStop in interface ActionFunctionspublic ListHolder mergeProxies(ExecutionContext ctx, java.lang.Boolean checkConflicts, java.lang.Object... records) throws LspsException
ActionFunctionsmergeProxies in interface ActionFunctionsLspsExceptionpublic ListHolder mergeAllProxies(ExecutionContext ctx, java.lang.Boolean checkConflicts, CollectionHolder records) throws LspsException
ActionFunctionsmergeAllProxies in interface ActionFunctionsLspsExceptionpublic void flushAndRefresh(ExecutionContext ctx, RecordHolder... record)
ActionFunctionsflushAndRefresh in interface ActionFunctionspublic ClosureHolder compileClosure(ExecutionContext ctx, java.lang.String closureString) throws ValidationException
compileClosure in interface ActionFunctionsValidationExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.