Package com.flowable.action.api.runtime
Interface ActionRuntimeService
- All Known Implementing Classes:
ActionRuntimeServiceImpl
public interface ActionRuntimeService
-
Method Summary
Modifier and TypeMethodDescriptionaddActionInstanceTypeLink
(String actionInstanceId, String type, String linkValue) Adds a newActionTypeLink
for the given action instance id.void
addGroupIdentityLink
(String actionInstanceId, String groupId, String identityLinkType) Involves a group with an action instance.void
addUserIdentityLink
(String actionInstanceId, String userId, String identityLinkType) Involves a user with an action instance.void
bulkDeleteActionInstancesByScopeIdsAndScopeType
(Collection<String> scopeIds, String scopeType) bulk delete action instances by scope ids and scope typeStarts creating a new action instanceQuery action instancesQuery action linksExecutes a new action instancevoid
deleteActionInstance
(String actionInstanceId) delete an action instance by idvoid
deleteActionInstanceTypeLink
(String actionInstanceTypeLinkId) Deletes anActionTypeLink
for the given action instance link id.void
deleteGroupIdentityLink
(String actionInstanceId, String groupId, String identityLinkType) Removes the association between a group and an action instance for the given identityLinkType.void
deleteUserIdentityLink
(String actionInstanceId, String userId, String identityLinkType) Removes the association between a user and an action instance for the given identityLinkType.findActionInstancesForScopeIdAndNoSubScopeId
(String scopeType, String scopeId, boolean includeDeletedFromCache) findActionInstancesForScopeIdAndSubScopeId
(String scopeType, String scopeId, String subScopeId, boolean includeDeletedFromCache) findScopedObjectActionData
(ScopedObjectActionQuery scopedObjectActionQuery) Finds allActionDefinition
andActionInstance
instances that match the scope information passed in theScopedObjectActionQuery
parameters and returns these as aScopedObjectActionData
instance.getActionInstanceIdentityLinks
(String actionInstanceId) getActionInstanceTypeLinks
(String actionInstanceId) ReturnsActionTypeLink
s for the given action instance id.getFormInfo
(String actionInstanceId) getVariables
(String actionInstanceId) void
migrate action type links
-
Method Details
-
createActionInstanceBuilder
ActionInstanceBuilder createActionInstanceBuilder()Starts creating a new action instance -
createExecuteActionInstanceBuilder
ExecuteActionInstanceBuilder createExecuteActionInstanceBuilder()Executes a new action instance -
findScopedObjectActionData
Finds allActionDefinition
andActionInstance
instances that match the scope information passed in theScopedObjectActionQuery
parameters and returns these as aScopedObjectActionData
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 allActionInstance
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 theseActionDefinition
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. -
getFormInfo
-
getActionInstanceIdentityLinks
-
addUserIdentityLink
Involves a user with an action instance. The type of identity link is defined by the given identityLinkType.- Parameters:
actionInstanceId
- id of the action instance, cannot be nulluserId
- id of the involved user, cannot be nullidentityLinkType
- type of identityLink, cannot be null- Throws:
FlowableObjectNotFoundException
- when the action instance doesn't exist.
-
addGroupIdentityLink
Involves a group with an action instance. The type of identity link is defined by the given identityLinkType.- Parameters:
actionInstanceId
- id of the action instance, cannot be nullgroupId
- id of the involved group, cannot be nullidentityLinkType
- type of identityLink, cannot be null- Throws:
FlowableObjectNotFoundException
- when the action instance doesn't exist.
-
deleteUserIdentityLink
Removes the association between a user and an action instance for the given identityLinkType.- Parameters:
actionInstanceId
- id of the action instance, cannot be nulluserId
- id of the involved user, cannot be nullidentityLinkType
- type of the identityLink, cannot be null- Throws:
FlowableObjectNotFoundException
- when the action instance doesn't exist
-
deleteGroupIdentityLink
Removes the association between a group and an action instance for the given identityLinkType.- Parameters:
actionInstanceId
- id of the action instance, cannot be nullgroupId
- id of the involved group, cannot be nullidentityLinkType
- type of the identityLink, cannot be null- Throws:
FlowableObjectNotFoundException
- when the action instance doesn't exist
-
getVariables
-
findActionInstancesForScopeIdAndSubScopeId
List<ActionInstance> findActionInstancesForScopeIdAndSubScopeId(String scopeType, String scopeId, String subScopeId, boolean includeDeletedFromCache) - Parameters:
includeDeletedFromCache
- Only set this to true for very specific use cases where the action instance could be deleted prior and it's still needed.
-
findActionInstancesForScopeIdAndNoSubScopeId
List<ActionInstance> findActionInstancesForScopeIdAndNoSubScopeId(String scopeType, String scopeId, boolean includeDeletedFromCache) - Parameters:
includeDeletedFromCache
- Only set this to true for very specific use cases where the action instance could be deleted prior and it's still needed.
-
createActionInstanceQuery
ActionInstanceQuery createActionInstanceQuery()Query action instances -
createActionLinkQuery
ActionLinkQuery createActionLinkQuery()Query action links -
getActionInstanceTypeLinks
ReturnsActionTypeLink
s for the given action instance id. -
addActionInstanceTypeLink
Adds a newActionTypeLink
for the given action instance id. -
deleteActionInstanceTypeLink
Deletes anActionTypeLink
for the given action instance link id. -
deleteActionInstance
delete an action instance by id -
bulkDeleteActionInstancesByScopeIdsAndScopeType
bulk delete action instances by scope ids and scope type -
migrateActionTypeLinks
void migrateActionTypeLinks()migrate action type links
-