public class ActionRuntimeServiceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ActionEngineConfiguration> implements ActionRuntimeService
| Constructor and Description |
|---|
ActionRuntimeServiceImpl(ActionEngineConfiguration engineConfiguration) |
| 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. |
ActionInstanceExecutionResult |
executeActionInstance(ExecuteActionInstanceBuilderImpl executeActionInstanceBuilder) |
List<ActionInstance> |
findActionInstancesForScopeIdAndSubScopeId(String scopeType,
String scopeId,
String subScopeId,
boolean includeDeletedFromCache) |
ScopedObjectActionData |
findScopedObjectActionData(ScopedObjectActionQuery scopedActionQuery)
Finds all
ActionDefinition and ActionInstance instances that match
the scope information passed in the ScopedObjectActionQuery parameters and returns these as a ScopedObjectActionData instance. |
List<org.flowable.identitylink.api.IdentityLink> |
getActionInstanceIdentityLinks(String actionInstanceId) |
List<ActionTypeLink> |
getActionInstanceTypeLinks(String actionInstanceId)
Returns
ActionTypeLinks for the given action instance id. |
org.flowable.form.api.FormInfo |
getFormInfo(String actionInstanceId) |
Map<String,Object> |
getVariables(String actionInstanceId) |
void |
migrateActionTypeLinks()
migrate action type links
|
ActionInstance |
startActionInstance(ActionInstanceBuilderImpl actionInstanceBuilder) |
getCommandExecutor, setCommandExecutorpublic ActionRuntimeServiceImpl(ActionEngineConfiguration engineConfiguration)
public ActionInstanceBuilder createActionInstanceBuilder()
ActionRuntimeServicecreateActionInstanceBuilder in interface ActionRuntimeServicepublic ExecuteActionInstanceBuilder createExecuteActionInstanceBuilder()
ActionRuntimeServicecreateExecuteActionInstanceBuilder in interface ActionRuntimeServicepublic void deleteActionInstance(String actionInstanceId)
ActionRuntimeServicedeleteActionInstance in interface ActionRuntimeServicepublic ActionInstance startActionInstance(ActionInstanceBuilderImpl actionInstanceBuilder)
public ActionInstanceExecutionResult executeActionInstance(ExecuteActionInstanceBuilderImpl executeActionInstanceBuilder)
public ScopedObjectActionData findScopedObjectActionData(ScopedObjectActionQuery scopedActionQuery)
ActionRuntimeServiceActionDefinition 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 ActionDefinitions 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 ActionRuntimeServicepublic List<org.flowable.identitylink.api.IdentityLink> getActionInstanceIdentityLinks(String actionInstanceId)
getActionInstanceIdentityLinks in interface ActionRuntimeServicepublic org.flowable.form.api.FormInfo getFormInfo(String actionInstanceId)
getFormInfo in interface ActionRuntimeServicepublic Map<String,Object> getVariables(String actionInstanceId)
getVariables in interface ActionRuntimeServicepublic List<ActionInstance> findActionInstancesForScopeIdAndSubScopeId(String scopeType, String scopeId, String subScopeId, boolean includeDeletedFromCache)
findActionInstancesForScopeIdAndSubScopeId in interface ActionRuntimeServiceincludeDeletedFromCache - 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)
ActionRuntimeServiceActionTypeLinks for the given action instance id.getActionInstanceTypeLinks in interface ActionRuntimeServicepublic ActionTypeLink addActionInstanceTypeLink(String actionInstanceId, String type, String linkValue)
ActionRuntimeServiceActionTypeLink for the given action instance id.addActionInstanceTypeLink in interface ActionRuntimeServicepublic void deleteActionInstanceTypeLink(String actionInstanceTypeLinkId)
ActionRuntimeServiceActionTypeLink for the given action instance link id.deleteActionInstanceTypeLink in interface ActionRuntimeServicepublic ActionInstanceQuery createActionInstanceQuery()
ActionRuntimeServicecreateActionInstanceQuery in interface ActionRuntimeServicepublic ActionLinkQuery createActionLinkQuery()
ActionRuntimeServicecreateActionLinkQuery in interface ActionRuntimeServicepublic void migrateActionTypeLinks()
ActionRuntimeServicemigrateActionTypeLinks in interface ActionRuntimeServiceCopyright © 2019. All rights reserved.