public interface ReflectionFunctions
Modifier and Type | Method and Description |
---|---|
String |
achieved()
Get ACHIEVED state name
|
void |
activate(ExecutionContext ctx,
CollectionHolder goals)
(Re)activates inactive or finished goals.
|
String |
active()
Get ACTIVE state name
|
String |
alive()
Get ALIVE state name
|
void |
deactivate(ExecutionContext ctx,
CollectionHolder goals)
Deactivates not finished goals.
|
String |
deactivated()
Get DEACTIVATED state name
|
String |
failed()
Get FAILED state name
|
SetHolder |
findModelInstances(ExecutionContext context,
String model,
String version,
Boolean isRunning,
MapHolder properties)
Returns a set of model instances satisfying the specified criteria.
|
SetHolder |
findModels(ExecutionContext ctx,
String name,
String version,
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.
|
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,
String name)
Returns a model with the specified name or null, if there is
no such a model.
|
RecordHolder |
getModel(ExecutionContext ctx,
String name,
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.
|
String |
inactive()
Get INACTIVE state name
|
Boolean |
isInState(ExecutionContext ctx,
RecordHolder goalPlan,
String state)
Returns true if a goalPlan is in the specified state or any of its
sub-states
|
Boolean |
isProxy(ExecutionContext ctx,
RecordHolder record)
Returns true if the record is proxy.
|
String |
notFinished()
Get NOT FINISHED state name
|
String |
ready()
Get READY state name
|
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.
|
String |
thisModelInstanceProperty(ExecutionContext ctx,
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) |
Boolean isInState(ExecutionContext ctx, RecordHolder goalPlan, String state) throws ErrorException
ctx
- goalPlan
- state
- ErrorException
String alive()
String notFinished()
String inactive()
String active()
String ready()
String running()
String finished()
String achieved()
String failed()
String deactivated()
RecordHolder thisModel(ExecutionContext ctx)
ctx
- RecordHolder thisModelInstance(ExecutionContext ctx)
ctx
- MapHolder thisModelInstanceProperties(ExecutionContext ctx) throws ErrorException
null
if executed from document.ctx
- ErrorException
String thisModelInstanceProperty(ExecutionContext ctx, String propertyName) throws ErrorException
null
if there is no property with
a given name or if executed from document.ctx
- propertyName
- ErrorException
RecordHolder getProcessEntity(ExecutionContext ctx, Type type) throws ErrorException
ctx
- type
- null
ErrorException
ProcessInstanceHolder thisProcessInstance(ExecutionContext ctx)
ctx
- RecordHolder getModel(ExecutionContext ctx, String name) throws ErrorException
ctx
- name
- ErrorException
RecordHolder getModel(ExecutionContext ctx, String name, String version) throws ErrorException
ctx
- name
- version
- ErrorException
SetHolder findModels(ExecutionContext ctx, String name, String version, Boolean latestOnly)
ctx
- name
- version
- latestOnly
- SetHolder findModelInstances(ExecutionContext context, String model, String version, Boolean isRunning, MapHolder properties)
context
- model
- version
- isRunning
- properties
- RecordHolder getModelInstance(ExecutionContext context, Decimal id) throws ErrorException
context
- id
- ErrorException
SetHolder findProcessInstances(ExecutionContext context, ClosureHolder filter) throws ErrorException
context
- filter
- ErrorException
SetHolder findProcessInstances(ExecutionContext context, RecordHolder modelInstance, ClosureHolder filter) throws ErrorException
context
- modelInstance
- filter
- ErrorException
MapHolder getModelInstanceProperties(ExecutionContext context, RecordHolder modelInstance) throws ErrorException
context
- modelInstance
- ErrorException
MapHolder getBinaryDataMetadata(ExecutionContext context, RecordHolder binaryData) throws ErrorException
context
- binaryData
- ErrorException
void activate(ExecutionContext ctx, CollectionHolder goals) throws ErrorException
ctx
- goals
- ErrorException
void deactivate(ExecutionContext ctx, CollectionHolder goals) throws ErrorException
ctx
- goals
- ErrorException
Decimal getCurrentInvocationTimestamp(ExecutionContext ctx)
ctx
- Boolean isProxy(ExecutionContext ctx, RecordHolder record) throws ErrorException
ctx
- record
- ErrorException
void terminateModelInstance(ExecutionContext context, RecordHolder modelInstance) throws ErrorException
context
- modelInstance
- ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.