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 org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ActionEngineConfiguration> implements ActionRuntimeService
- Author:
- Tijs Rademakers
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ActionRuntimeServiceImpl(ActionEngineConfiguration engineConfiguration) -
Method Summary
Modifier and Type Method Description ActionTypeLinkaddActionInstanceTypeLink(java.lang.String actionInstanceId, java.lang.String type, java.lang.String linkValue)Adds a newActionTypeLinkfor the given action instance id.ActionInstanceBuildercreateActionInstanceBuilder()Starts creating a new action instanceActionInstanceQuerycreateActionInstanceQuery()Query action instancesActionLinkQuerycreateActionLinkQuery()Query action linksExecuteActionInstanceBuildercreateExecuteActionInstanceBuilder()Executes a new action instancevoiddeleteActionInstance(java.lang.String actionInstanceId)delete an action instance by idvoiddeleteActionInstanceTypeLink(java.lang.String actionInstanceTypeLinkId)Deletes anActionTypeLinkfor the given action instance link id.ActionInstanceExecutionResultexecuteActionInstance(ExecuteActionInstanceBuilderImpl executeActionInstanceBuilder)java.util.List<ActionInstance>findActionInstancesForScopeIdAndSubScopeId(java.lang.String scopeType, java.lang.String scopeId, java.lang.String subScopeId, boolean includeDeletedFromCache)ScopedObjectActionDatafindScopedObjectActionData(ScopedObjectActionQuery scopedActionQuery)Finds allActionDefinitionandActionInstanceinstances that match the scope information passed in theScopedObjectActionQueryparameters and returns these as aScopedObjectActionDatainstance.java.util.List<org.flowable.identitylink.api.IdentityLink>getActionInstanceIdentityLinks(java.lang.String actionInstanceId)java.util.List<ActionTypeLink>getActionInstanceTypeLinks(java.lang.String actionInstanceId)ReturnsActionTypeLinks for the given action instance id.org.flowable.form.api.FormInfogetFormInfo(java.lang.String actionInstanceId)java.util.Map<java.lang.String,java.lang.Object>getVariables(java.lang.String actionInstanceId)voidmigrateActionTypeLinks()migrate action type linksActionInstancestartActionInstance(ActionInstanceBuilderImpl actionInstanceBuilder)Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Constructor Details
-
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
public void deleteActionInstance(java.lang.String actionInstanceId)Description copied from interface:ActionRuntimeServicedelete an action instance by id- Specified by:
deleteActionInstancein interfaceActionRuntimeService
-
startActionInstance
-
executeActionInstance
public ActionInstanceExecutionResult executeActionInstance(ExecuteActionInstanceBuilderImpl executeActionInstanceBuilder) -
findScopedObjectActionData
public ScopedObjectActionData findScopedObjectActionData(ScopedObjectActionQuery scopedActionQuery)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
public java.util.List<org.flowable.identitylink.api.IdentityLink> getActionInstanceIdentityLinks(java.lang.String actionInstanceId)- Specified by:
getActionInstanceIdentityLinksin interfaceActionRuntimeService
-
getFormInfo
public org.flowable.form.api.FormInfo getFormInfo(java.lang.String actionInstanceId)- Specified by:
getFormInfoin interfaceActionRuntimeService
-
getVariables
public java.util.Map<java.lang.String,java.lang.Object> getVariables(java.lang.String actionInstanceId)- Specified by:
getVariablesin interfaceActionRuntimeService
-
findActionInstancesForScopeIdAndSubScopeId
public java.util.List<ActionInstance> findActionInstancesForScopeIdAndSubScopeId(java.lang.String scopeType, java.lang.String scopeId, java.lang.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.
-
getActionInstanceTypeLinks
public java.util.List<ActionTypeLink> getActionInstanceTypeLinks(java.lang.String actionInstanceId)Description copied from interface:ActionRuntimeServiceReturnsActionTypeLinks for the given action instance id.- Specified by:
getActionInstanceTypeLinksin interfaceActionRuntimeService
-
addActionInstanceTypeLink
public ActionTypeLink addActionInstanceTypeLink(java.lang.String actionInstanceId, java.lang.String type, java.lang.String linkValue)Description copied from interface:ActionRuntimeServiceAdds a newActionTypeLinkfor the given action instance id.- Specified by:
addActionInstanceTypeLinkin interfaceActionRuntimeService
-
deleteActionInstanceTypeLink
public void deleteActionInstanceTypeLink(java.lang.String actionInstanceTypeLinkId)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
-