public class ActionRuntimeServiceImpl extends CommonEngineServiceImpl<ActionEngineConfiguration> implements ActionRuntimeService
commandExecutor
configuration
Constructor and Description |
---|
ActionRuntimeServiceImpl(ActionEngineConfiguration engineConfiguration) |
getCommandExecutor, setCommandExecutor
getConfiguration
public ActionRuntimeServiceImpl(ActionEngineConfiguration engineConfiguration)
public ActionInstanceBuilder createActionInstanceBuilder()
ActionRuntimeService
createActionInstanceBuilder
in interface ActionRuntimeService
public ExecuteActionInstanceBuilder createExecuteActionInstanceBuilder()
ActionRuntimeService
createExecuteActionInstanceBuilder
in interface ActionRuntimeService
public void deleteActionInstance(String actionInstanceId)
ActionRuntimeService
deleteActionInstance
in interface ActionRuntimeService
public ActionInstance startActionInstance(ActionInstanceBuilderImpl actionInstanceBuilder)
public ActionInstanceExecutionResult executeActionInstance(ExecuteActionInstanceBuilderImpl executeActionInstanceBuilder)
public ScopedObjectActionData findScopedObjectActionData(ScopedObjectActionQuery scopedActionQuery)
ActionRuntimeService
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.findScopedObjectActionData
in interface ActionRuntimeService
public List<IdentityLink> getActionInstanceIdentityLinks(String actionInstanceId)
getActionInstanceIdentityLinks
in interface ActionRuntimeService
public FormInfo getFormInfo(String actionInstanceId)
getFormInfo
in interface ActionRuntimeService
public Map<String,Object> getVariables(String actionInstanceId)
getVariables
in interface ActionRuntimeService
public List<ActionInstance> findActionInstancesForScopeIdAndSubScopeId(String scopeType, String scopeId, String subScopeId, boolean includeDeletedFromCache)
findActionInstancesForScopeIdAndSubScopeId
in interface ActionRuntimeService
includeDeletedFromCache
- Only set this to true for very specific use cases where the action instance could be deleted prior and it's still needed.public List<ActionTypeLink> getActionInstanceTypeLinks(String actionInstanceId)
ActionRuntimeService
ActionTypeLink
s for the given action instance id.getActionInstanceTypeLinks
in interface ActionRuntimeService
public ActionTypeLink addActionInstanceTypeLink(String actionInstanceId, String type, String linkValue)
ActionRuntimeService
ActionTypeLink
for the given action instance id.addActionInstanceTypeLink
in interface ActionRuntimeService
public void deleteActionInstanceTypeLink(String actionInstanceTypeLinkId)
ActionRuntimeService
ActionTypeLink
for the given action instance link id.deleteActionInstanceTypeLink
in interface ActionRuntimeService
public ActionInstanceQuery createActionInstanceQuery()
ActionRuntimeService
createActionInstanceQuery
in interface ActionRuntimeService
public ActionLinkQuery createActionLinkQuery()
ActionRuntimeService
createActionLinkQuery
in interface ActionRuntimeService
public void migrateActionTypeLinks()
ActionRuntimeService
migrateActionTypeLinks
in interface ActionRuntimeService