public interface ReflectionFunctions
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
achieved()
Get ACHIEVED state name
|
void |
activate(ExecutionContext ctx,
CollectionHolder goals)
(Re)activates inactive or finished goals.
|
java.lang.String |
active()
Get ACTIVE state name
|
java.lang.String |
alive()
Get ALIVE state name
|
void |
deactivate(ExecutionContext ctx,
CollectionHolder goals)
Deactivates not finished goals.
|
java.lang.String |
deactivated()
Get DEACTIVATED state name
|
java.lang.String |
failed()
Get FAILED state name
|
SetHolder |
findModelInstances(ExecutionContext context,
java.lang.String model,
java.lang.String version,
java.lang.Boolean isRunning,
MapHolder properties)
Returns a set of model instances satisfying the specified criteria.
|
SetHolder |
findModels(ExecutionContext ctx,
java.lang.String name,
java.lang.String version,
java.lang.Boolean latestOnly)
Returns a set of all uploaded models satisfying the specified filtering
criteria.
|
SetHolder |
findProcessInstances(ExecutionContext context,
ClosureHolder filter)
Returns a set of process instances satisfying the specified filtering
criteria.
|
SetHolder |
findProcessInstances(ExecutionContext context,
RecordHolder modelInstance,
ClosureHolder filter)
Returns a set of process instances for a model instance satisfying the specified filtering
criteria.
|
java.lang.String |
finished()
Get FINISHED state name
|
MapHolder |
getBinaryDataMetadata(ExecutionContext context,
RecordHolder binaryData)
Returns map of metadata of binary data.
|
Decimal |
getCurrentInvocationTimestamp(ExecutionContext ctx)
Returns current invocation timestamp.
|
RecordHolder |
getModel(ExecutionContext ctx,
java.lang.String name)
Returns a model with the specified name or null, if there is
no such a model.
|
RecordHolder |
getModel(ExecutionContext ctx,
java.lang.String name,
java.lang.String version)
Returns a model with the specified name and version, or null, if there is
no such a model instance.
|
RecordHolder |
getModelInstance(ExecutionContext context,
Decimal id)
Returns a model instance with the specified id.
|
MapHolder |
getModelInstanceProperties(ExecutionContext context,
RecordHolder modelInstance)
Returns a map of initialization properties of the specified model
instance.
|
RecordHolder |
getProcessEntity(ExecutionContext ctx,
Type type)
Returns the associated process entity.
|
java.lang.String |
inactive()
Get INACTIVE state name
|
java.lang.Boolean |
isInState(ExecutionContext ctx,
RecordHolder goalPlan,
java.lang.String state)
Returns true if a goalPlan is in the specified state or any of its
sub-states
|
java.lang.Boolean |
isProxy(ExecutionContext ctx,
RecordHolder record)
Returns true if the record is proxy.
|
java.lang.String |
notFinished()
Get NOT FINISHED state name
|
java.lang.String |
ready()
Get READY state name
|
java.lang.String |
running()
Get RUNNING state name
|
void |
terminateModelInstance(ExecutionContext context,
RecordHolder modelInstance)
Terminates given model instance
|
RecordHolder |
thisModel(ExecutionContext ctx) |
RecordHolder |
thisModelInstance(ExecutionContext ctx) |
MapHolder |
thisModelInstanceProperties(ExecutionContext ctx)
Returns a map of initialization properties of the model instance that executed this function.
|
java.lang.String |
thisModelInstanceProperty(ExecutionContext ctx,
java.lang.String propertyName)
Returns a value of the initialization property of the given name of the model instance
that executed this function.
|
ProcessInstanceHolder |
thisProcessInstance(ExecutionContext ctx) |
java.lang.Boolean isInState(ExecutionContext ctx, RecordHolder goalPlan, java.lang.String state) throws ErrorException
ctx - goalPlan - state - ErrorExceptionjava.lang.String alive()
java.lang.String notFinished()
java.lang.String inactive()
java.lang.String active()
java.lang.String ready()
java.lang.String running()
java.lang.String finished()
java.lang.String achieved()
java.lang.String failed()
java.lang.String deactivated()
RecordHolder thisModel(ExecutionContext ctx)
ctx - RecordHolder thisModelInstance(ExecutionContext ctx)
ctx - MapHolder thisModelInstanceProperties(ExecutionContext ctx) throws ErrorException
null if executed from document.ctx - ErrorExceptionjava.lang.String thisModelInstanceProperty(ExecutionContext ctx, java.lang.String propertyName) throws ErrorException
null if there is no property with
a given name or if executed from document.ctx - propertyName - ErrorExceptionRecordHolder getProcessEntity(ExecutionContext ctx, Type type) throws ErrorException
ctx - type - nullErrorExceptionProcessInstanceHolder thisProcessInstance(ExecutionContext ctx)
ctx - RecordHolder getModel(ExecutionContext ctx, java.lang.String name) throws ErrorException
ctx - name - ErrorExceptionRecordHolder getModel(ExecutionContext ctx, java.lang.String name, java.lang.String version) throws ErrorException
ctx - name - version - ErrorExceptionSetHolder findModels(ExecutionContext ctx, java.lang.String name, java.lang.String version, java.lang.Boolean latestOnly)
ctx - name - version - latestOnly - SetHolder findModelInstances(ExecutionContext context, java.lang.String model, java.lang.String version, java.lang.Boolean isRunning, MapHolder properties)
context - model - version - isRunning - properties - RecordHolder getModelInstance(ExecutionContext context, Decimal id) throws ErrorException
context - id - ErrorExceptionSetHolder findProcessInstances(ExecutionContext context, ClosureHolder filter) throws ErrorException
context - filter - ErrorExceptionSetHolder findProcessInstances(ExecutionContext context, RecordHolder modelInstance, ClosureHolder filter) throws ErrorException
context - modelInstance - filter - ErrorExceptionMapHolder getModelInstanceProperties(ExecutionContext context, RecordHolder modelInstance) throws ErrorException
context - modelInstance - ErrorExceptionMapHolder getBinaryDataMetadata(ExecutionContext context, RecordHolder binaryData) throws ErrorException
context - binaryData - ErrorExceptionvoid activate(ExecutionContext ctx, CollectionHolder goals) throws ErrorException
ctx - goals - ErrorExceptionvoid deactivate(ExecutionContext ctx, CollectionHolder goals) throws ErrorException
ctx - goals - ErrorExceptionDecimal getCurrentInvocationTimestamp(ExecutionContext ctx)
ctx - java.lang.Boolean isProxy(ExecutionContext ctx, RecordHolder record) throws ErrorException
ctx - record - ErrorExceptionvoid terminateModelInstance(ExecutionContext context, RecordHolder modelInstance) throws ErrorException
context - modelInstance - ErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.