public interface ActionRuntimeService
Modifier and Type | Method and Description |
---|---|
ActionTypeLink |
addActionInstanceTypeLink(String actionInstanceId,
String type,
String linkValue)
Adds a new
ActionTypeLink for the given action instance id. |
ActionInstanceBuilder |
createActionInstanceBuilder()
Starts creating a new action instance
|
ActionInstanceQuery |
createActionInstanceQuery()
Query action instances
|
ActionLinkQuery |
createActionLinkQuery()
Query action links
|
ExecuteActionInstanceBuilder |
createExecuteActionInstanceBuilder()
Executes a new action instance
|
void |
deleteActionInstance(String actionInstanceId)
delete an action instance by id
|
void |
deleteActionInstanceTypeLink(String actionInstanceTypeLinkId)
Deletes an
ActionTypeLink for the given action instance link id. |
List<ActionInstance> |
findActionInstancesForScopeIdAndSubScopeId(String scopeType,
String scopeId,
String subScopeId,
boolean includeDeletedFromCache) |
ScopedObjectActionData |
findScopedObjectActionData(ScopedObjectActionQuery scopedObjectActionQuery)
Finds all
ActionDefinition and ActionInstance instances that match
the scope information passed in the ScopedObjectActionQuery parameters and returns these as a ScopedObjectActionData instance. |
List<IdentityLink> |
getActionInstanceIdentityLinks(String actionInstanceId) |
List<ActionTypeLink> |
getActionInstanceTypeLinks(String actionInstanceId)
Returns
ActionTypeLink s for the given action instance id. |
FormInfo |
getFormInfo(String actionInstanceId) |
Map<String,Object> |
getVariables(String actionInstanceId) |
void |
migrateActionTypeLinks()
migrate action type links
|
ActionInstanceBuilder createActionInstanceBuilder()
ExecuteActionInstanceBuilder createExecuteActionInstanceBuilder()
ScopedObjectActionData findScopedObjectActionData(ScopedObjectActionQuery scopedObjectActionQuery)
ActionDefinition
and ActionInstance
instances that match
the scope information passed in the ScopedObjectActionQuery
parameters and returns these as a ScopedObjectActionData
instance.
A 'scope' is a combination of a type (e.g. conversation) and identifiers (e.g the conversationId).
Typically an action is created for a certain scope (e.g. a certain conversation), so the return result
will contain all ActionInstance
results for that particular query.
Some action definitions are applicable for the scope (e.g. the action to join a conversation), but don't have an action instance,
as they can be repeated many times and there is no such thing as 'one action' to execute. This is why the result also
contains these ActionDefinition
s that match the given scope.
All definitions and instances found this way are put through the list of filters that are registered
on the action engine configuration. Other engines (engage, cmmn, process, etc.) should inject scope-specific filters into the engine.List<IdentityLink> getActionInstanceIdentityLinks(String actionInstanceId)
List<ActionInstance> findActionInstancesForScopeIdAndSubScopeId(String scopeType, String scopeId, String subScopeId, boolean includeDeletedFromCache)
includeDeletedFromCache
- Only set this to true for very specific use cases where the action instance could be deleted prior and it's still needed.ActionInstanceQuery createActionInstanceQuery()
ActionLinkQuery createActionLinkQuery()
List<ActionTypeLink> getActionInstanceTypeLinks(String actionInstanceId)
ActionTypeLink
s for the given action instance id.ActionTypeLink addActionInstanceTypeLink(String actionInstanceId, String type, String linkValue)
ActionTypeLink
for the given action instance id.void deleteActionInstanceTypeLink(String actionInstanceTypeLinkId)
ActionTypeLink
for the given action instance link id.void deleteActionInstance(String actionInstanceId)
void migrateActionTypeLinks()