@PermitAll public class ActionFunctionsImpl extends 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.
|
RecordHolder |
createInstance(ExecutionContext ctx,
Type type,
MapHolder values)
Creates new instance of record type T.
|
RecordHolder |
createModelInstance(ExecutionContext ctx,
Boolean synchronous,
RecordHolder model,
MapHolder properties)
Creates a model instance.
|
RecordHolder |
createModelInstance(ExecutionContext ctx,
Boolean synchronous,
RecordHolder model,
RecordHolder processEntity,
MapHolder properties)
Creates a model instance with a specified process entity record.
|
ListHolder |
createProxy(ExecutionContext ctx,
ListHolder collection,
Property... properties)
Creates a list of record proxies.
|
RecordHolder |
createProxy(ExecutionContext ctx,
Object record,
Property... properties)
Creates a change proxy on the record that keeps all changes.
|
SetHolder |
createProxy(ExecutionContext ctx,
SetHolder collection,
Property... properties)
Creates a set of record proxies.
|
RecordHolder |
createProxy(ExecutionContext ctx,
Type type)
Creates a proxy without proxied record.
|
RecordHolder |
createProxy(ExecutionContext ctx,
Type type,
Decimal proxyLevel)
Creates a proxy without proxied record.
|
void |
createProxyOfProperties(ExecutionContext ctx,
RecordHolder record,
Property... properties)
Creates change proxy for all object referenced by the propery and sets the proxy values to the property.
|
String |
debugLog(ExecutionContext ctx,
ClosureHolder message)
Logs a message to the console at the debug logging level.
|
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.
|
Object |
evaluateExpression(ExecutionContext ctx,
Boolean isFullExecutionMode,
ClosureHolder expression)
This method evaluates an expression defined in the closure using defined evaluationMode.
|
Decimal |
getProxyLevel(ExecutionContext ctx,
RecordHolder record)
Returns proxy level of the record.
|
void |
log(ExecutionContext ctx,
String message,
Decimal level)
Logs a message to the application log on specified level.
|
ListHolder |
mergeAllProxies(ExecutionContext ctx,
Boolean checkConflicts,
CollectionHolder records)
Merges changes from the proxies to the proxied records.
|
ListHolder |
mergeAllProxies(ExecutionContext ctx,
CollectionHolder records)
Merges changes from the proxies to the proxied records.
|
ListHolder |
mergeAllProxiesDeep(ExecutionContext ctx,
Boolean checkConflicts,
CollectionHolder records)
Merges changes from the proxies to the proxied records.
|
ListHolder |
mergeAllProxiesDeep(ExecutionContext ctx,
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,
Boolean checkConflicts,
Object... records)
Merges changes from the proxies to the proxied records.
|
ListHolder |
mergeProxies(ExecutionContext ctx,
Object... records)
Merges changes from the proxies to the proxied records.
|
ListHolder |
mergeProxiesDeep(ExecutionContext ctx,
Boolean checkConflicts,
Object... records)
Merges changes from the proxies to the proxied records.
|
ListHolder |
mergeProxiesDeep(ExecutionContext ctx,
Object... records)
Merges changes from the proxies to the proxied records.
|
void |
notifyModelInstance(ExecutionContext ctx,
Decimal modelInstanceId,
String reason,
Boolean synchronously)
Notify provided model instance.
|
void |
sendSignal(ExecutionContext ctx,
Boolean sychronous,
SetHolder receivers,
Object signal)
Sends a sync or async signal to receivers.
|
void |
throwEscalation(ExecutionContext ctx,
String escalationCode,
Object payload)
Throws an escalation event with the escalation code and optional payload.
|
public void sendSignal(ExecutionContext ctx, Boolean sychronous, SetHolder receivers, Object signal) throws ErrorException
ActionFunctionssendSignal in interface ActionFunctionsErrorExceptionpublic RecordHolder createModelInstance(ExecutionContext ctx, Boolean synchronous, RecordHolder model, MapHolder properties) throws ErrorException
ActionFunctionscreateModelInstance in interface ActionFunctionsErrorExceptionpublic RecordHolder createModelInstance(ExecutionContext ctx, Boolean synchronous, RecordHolder model, RecordHolder processEntity, MapHolder properties) throws ErrorException
ActionFunctionscreateModelInstance in interface ActionFunctionsErrorExceptionpublic void notifyModelInstance(ExecutionContext ctx, Decimal modelInstanceId, String reason, Boolean synchronously) throws ErrorException
ActionFunctionsnotifyModelInstance in interface ActionFunctionsreason - string used for loggingErrorExceptionpublic void log(ExecutionContext ctx, String message, Decimal level) throws ErrorException
ActionFunctionslog in interface ActionFunctionsErrorExceptionpublic String debugLog(ExecutionContext ctx, ClosureHolder message) throws ErrorException
ActionFunctionsdebugLog in interface ActionFunctionsErrorExceptionpublic String debugLog(ExecutionContext ctx, ClosureHolder message, Decimal level) throws ErrorException
ActionFunctionsdebugLog in interface ActionFunctionsErrorExceptionpublic Object evaluateExpression(ExecutionContext ctx, 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, String escalationCode, 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 RecordHolder createProxy(ExecutionContext ctx, Object record, Property... properties)
ActionFunctionscreateProxy in interface ActionFunctionspublic RecordHolder createProxy(ExecutionContext ctx, Type type) throws ErrorException
ActionFunctionscreateProxy in interface ActionFunctionsErrorExceptionpublic RecordHolder createProxy(ExecutionContext ctx, Type type, Decimal proxyLevel) throws ErrorException
ActionFunctionscreateProxy in interface ActionFunctionsErrorExceptionpublic ListHolder createProxy(ExecutionContext ctx, ListHolder collection, Property... properties)
ActionFunctionscreateProxy in interface ActionFunctionspublic SetHolder createProxy(ExecutionContext ctx, SetHolder collection, Property... properties)
ActionFunctionscreateProxy in interface ActionFunctionspublic void createProxyOfProperties(ExecutionContext ctx, RecordHolder record, Property... properties)
ActionFunctionscreateProxyOfProperties in interface ActionFunctionspublic ListHolder mergeProxies(ExecutionContext ctx, Boolean checkConflicts, Object... records) throws LspsException
ActionFunctionsmergeProxies in interface ActionFunctionsErrorExceptionLspsExceptionpublic ListHolder mergeProxies(ExecutionContext ctx, Object... records) throws LspsException
ActionFunctionsmergeProxies in interface ActionFunctionsErrorExceptionLspsExceptionpublic ListHolder mergeAllProxies(ExecutionContext ctx, Boolean checkConflicts, CollectionHolder records) throws LspsException
ActionFunctionsmergeAllProxies in interface ActionFunctionsLspsExceptionpublic ListHolder mergeAllProxies(ExecutionContext ctx, CollectionHolder records) throws LspsException
ActionFunctionsmergeAllProxies in interface ActionFunctionsLspsExceptionpublic ListHolder mergeProxiesDeep(ExecutionContext ctx, Boolean checkConflicts, Object... records) throws LspsException
ActionFunctionsmergeProxiesDeep in interface ActionFunctionsLspsExceptionpublic ListHolder mergeProxiesDeep(ExecutionContext ctx, Object... records) throws LspsException
ActionFunctionsmergeProxiesDeep in interface ActionFunctionsLspsExceptionpublic ListHolder mergeAllProxiesDeep(ExecutionContext ctx, Boolean checkConflicts, CollectionHolder records) throws LspsException
ActionFunctionsmergeAllProxiesDeep in interface ActionFunctionsLspsExceptionpublic ListHolder mergeAllProxiesDeep(ExecutionContext ctx, CollectionHolder records) throws LspsException
ActionFunctionsmergeAllProxiesDeep in interface ActionFunctionsLspsExceptionpublic Decimal getProxyLevel(ExecutionContext ctx, RecordHolder record) throws LspsException
ActionFunctionsgetProxyLevel in interface ActionFunctionsLspsExceptionCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.