Class ActionRuntimeServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ActionEngineConfiguration>
com.flowable.action.engine.impl.runtime.ActionRuntimeServiceImpl
- All Implemented Interfaces:
ActionRuntimeService
public class ActionRuntimeServiceImpl
extends CommonEngineServiceImpl<ActionEngineConfiguration>
implements ActionRuntimeService
- Author:
- Tijs Rademakers
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddActionInstanceTypeLink(String actionInstanceId, String type, String linkValue) Adds a newActionTypeLinkfor the given action instance id.voidaddGroupIdentityLink(String actionInstanceId, String groupId, String identityLinkType) Involves a group with an action instance.voidaddUserIdentityLink(String actionInstanceId, String userId, String identityLinkType) Involves a user with an action instance.voidbulkDeleteActionInstancesByScopeIdsAndScopeType(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 instancevoiddeleteActionInstance(String actionInstanceId) delete an action instance by idvoiddeleteActionInstanceTypeLink(String actionInstanceTypeLinkId) Deletes anActionTypeLinkfor the given action instance link id.voiddeleteGroupIdentityLink(String actionInstanceId, String groupId, String identityLinkType) Removes the association between a group and an action instance for the given identityLinkType.voiddeleteUserIdentityLink(String actionInstanceId, String userId, String identityLinkType) Removes the association between a user and an action instance for the given identityLinkType.executeActionInstance(ExecuteActionInstanceBuilderImpl executeActionInstanceBuilder) findActionInstancesForScopeIdAndNoSubScopeId(String scopeType, String scopeId, boolean includeDeletedFromCache) findActionInstancesForScopeIdAndSubScopeId(String scopeType, String scopeId, String subScopeId, boolean includeDeletedFromCache) findScopedObjectActionData(ScopedObjectActionQuery scopedActionQuery) Finds allActionDefinitionandActionInstanceinstances that match the scope information passed in theScopedObjectActionQueryparameters and returns these as aScopedObjectActionDatainstance.getActionInstanceIdentityLinks(String actionInstanceId) getActionInstanceTypeLinks(String actionInstanceId) ReturnsActionTypeLinks for the given action instance id.getFormInfo(String actionInstanceId) getVariables(String actionInstanceId) voidmigrate action type linksstartActionInstance(ActionInstanceBuilderImpl actionInstanceBuilder) Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
ActionRuntimeServiceImpl
-
-
Method Details
-
createActionInstanceBuilder
Description copied from interface:ActionRuntimeServiceStarts creating a new action instance- Specified by:
createActionInstanceBuilderin interfaceActionRuntimeService
-
createExecuteActionInstanceBuilder
Description copied from interface:ActionRuntimeServiceExecutes a new action instance- Specified by:
createExecuteActionInstanceBuilderin interfaceActionRuntimeService
-
deleteActionInstance
Description copied from interface:ActionRuntimeServicedelete an action instance by id- Specified by:
deleteActionInstancein interfaceActionRuntimeService
-
bulkDeleteActionInstancesByScopeIdsAndScopeType
public void bulkDeleteActionInstancesByScopeIdsAndScopeType(Collection<String> scopeIds, String scopeType) Description copied from interface:ActionRuntimeServicebulk delete action instances by scope ids and scope type- Specified by:
bulkDeleteActionInstancesByScopeIdsAndScopeTypein interfaceActionRuntimeService
-
startActionInstance
-
executeActionInstance
public ActionInstanceExecutionResult executeActionInstance(ExecuteActionInstanceBuilderImpl executeActionInstanceBuilder) -
findScopedObjectActionData
Description copied from interface:ActionRuntimeServiceFinds allActionDefinitionandActionInstanceinstances that match the scope information passed in theScopedObjectActionQueryparameters and returns these as aScopedObjectActionDatainstance. 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 allActionInstanceresults 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 theseActionDefinitions 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.- Specified by:
findScopedObjectActionDatain interfaceActionRuntimeService
-
getActionInstanceIdentityLinks
- Specified by:
getActionInstanceIdentityLinksin interfaceActionRuntimeService
-
addUserIdentityLink
Description copied from interface:ActionRuntimeServiceInvolves a user with an action instance. The type of identity link is defined by the given identityLinkType.- Specified by:
addUserIdentityLinkin interfaceActionRuntimeService- Parameters:
actionInstanceId- id of the action instance, cannot be nulluserId- id of the involved user, cannot be nullidentityLinkType- type of identityLink, cannot be null
-
addGroupIdentityLink
Description copied from interface:ActionRuntimeServiceInvolves a group with an action instance. The type of identity link is defined by the given identityLinkType.- Specified by:
addGroupIdentityLinkin interfaceActionRuntimeService- Parameters:
actionInstanceId- id of the action instance, cannot be nullgroupId- id of the involved group, cannot be nullidentityLinkType- type of identityLink, cannot be null
-
deleteUserIdentityLink
Description copied from interface:ActionRuntimeServiceRemoves the association between a user and an action instance for the given identityLinkType.- Specified by:
deleteUserIdentityLinkin interfaceActionRuntimeService- 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
-
deleteGroupIdentityLink
public void deleteGroupIdentityLink(String actionInstanceId, String groupId, String identityLinkType) Description copied from interface:ActionRuntimeServiceRemoves the association between a group and an action instance for the given identityLinkType.- Specified by:
deleteGroupIdentityLinkin interfaceActionRuntimeService- 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
-
getFormInfo
- Specified by:
getFormInfoin interfaceActionRuntimeService
-
getVariables
- Specified by:
getVariablesin interfaceActionRuntimeService
-
findActionInstancesForScopeIdAndSubScopeId
public List<ActionInstance> findActionInstancesForScopeIdAndSubScopeId(String scopeType, String scopeId, String subScopeId, boolean includeDeletedFromCache) - Specified by:
findActionInstancesForScopeIdAndSubScopeIdin interfaceActionRuntimeServiceincludeDeletedFromCache- Only set this to true for very specific use cases where the action instance could be deleted prior and it's still needed.
-
findActionInstancesForScopeIdAndNoSubScopeId
public List<ActionInstance> findActionInstancesForScopeIdAndNoSubScopeId(String scopeType, String scopeId, boolean includeDeletedFromCache) - Specified by:
findActionInstancesForScopeIdAndNoSubScopeIdin interfaceActionRuntimeServiceincludeDeletedFromCache- Only set this to true for very specific use cases where the action instance could be deleted prior and it's still needed.
-
getActionInstanceTypeLinks
Description copied from interface:ActionRuntimeServiceReturnsActionTypeLinks for the given action instance id.- Specified by:
getActionInstanceTypeLinksin interfaceActionRuntimeService
-
addActionInstanceTypeLink
public ActionTypeLink addActionInstanceTypeLink(String actionInstanceId, String type, String linkValue) Description copied from interface:ActionRuntimeServiceAdds a newActionTypeLinkfor the given action instance id.- Specified by:
addActionInstanceTypeLinkin interfaceActionRuntimeService
-
deleteActionInstanceTypeLink
Description copied from interface:ActionRuntimeServiceDeletes anActionTypeLinkfor the given action instance link id.- Specified by:
deleteActionInstanceTypeLinkin interfaceActionRuntimeService
-
createActionInstanceQuery
Description copied from interface:ActionRuntimeServiceQuery action instances- Specified by:
createActionInstanceQueryin interfaceActionRuntimeService
-
createActionLinkQuery
Description copied from interface:ActionRuntimeServiceQuery action links- Specified by:
createActionLinkQueryin interfaceActionRuntimeService
-
migrateActionTypeLinks
public void migrateActionTypeLinks()Description copied from interface:ActionRuntimeServicemigrate action type links- Specified by:
migrateActionTypeLinksin interfaceActionRuntimeService
-