Package com.flowable.action.api.runtime
Interface ExecuteActionInstanceBuilder
-
- All Known Implementing Classes:
ExecuteActionInstanceBuilderImpl
public interface ExecuteActionInstanceBuilderHelper for executing and Action instance. An instance can be obtained throughActionRuntimeService. actionInstance, actionDefinitionId or actionDefinitionKey should be set before callingexecute()to execute an action instance.- Author:
- Tijs Rademakers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecuteActionInstanceBuilderactionDefinitionId(java.lang.String actionDefinitionId)Set the id of the action definitionExecuteActionInstanceBuilderactionDefinitionKey(java.lang.String actionDefinitionKey)Set the key of the action definition, latest version of the action definition with the given key.ExecuteActionInstanceBuilderactionInstanceId(java.lang.String actionInstanceId)Set the id of the action instanceActionInstanceExecutionResultexecute()Executes the action instanceExecuteActionInstanceBuildername(java.lang.String name)Set the name of the action instanceExecuteActionInstanceBuilderpayload(java.util.Map<java.lang.String,java.lang.Object> payload)Set the payload of the action to be used for storing the form instance or executing the botExecuteActionInstanceBuilderscopeDefinitionId(java.lang.String scopeDefinitionId)Set the scope definition id of the action instanceExecuteActionInstanceBuilderscopeId(java.lang.String scopeId)Set the scope id of the action instanceExecuteActionInstanceBuilderscopeType(java.lang.String scopeType)Set the scope type of the action instanceExecuteActionInstanceBuildersubScopeId(java.lang.String subScopeId)Sets the sub scope id of the action instanceExecuteActionInstanceBuildertenantId(java.lang.String tenantId)Set the tenantId of process instance
-
-
-
Method Detail
-
actionInstanceId
ExecuteActionInstanceBuilder actionInstanceId(java.lang.String actionInstanceId)
Set the id of the action instance
-
actionDefinitionId
ExecuteActionInstanceBuilder actionDefinitionId(java.lang.String actionDefinitionId)
Set the id of the action definition
-
actionDefinitionKey
ExecuteActionInstanceBuilder actionDefinitionKey(java.lang.String actionDefinitionKey)
Set the key of the action definition, latest version of the action definition with the given key. If actionDefinitionId was set this will be ignored
-
name
ExecuteActionInstanceBuilder name(java.lang.String name)
Set the name of the action instance
-
scopeId
ExecuteActionInstanceBuilder scopeId(java.lang.String scopeId)
Set the scope id of the action instance
-
subScopeId
ExecuteActionInstanceBuilder subScopeId(java.lang.String subScopeId)
Sets the sub scope id of the action instance
-
scopeType
ExecuteActionInstanceBuilder scopeType(java.lang.String scopeType)
Set the scope type of the action instance
-
scopeDefinitionId
ExecuteActionInstanceBuilder scopeDefinitionId(java.lang.String scopeDefinitionId)
Set the scope definition id of the action instance
-
payload
ExecuteActionInstanceBuilder payload(java.util.Map<java.lang.String,java.lang.Object> payload)
Set the payload of the action to be used for storing the form instance or executing the bot
-
tenantId
ExecuteActionInstanceBuilder tenantId(java.lang.String tenantId)
Set the tenantId of process instance
-
execute
ActionInstanceExecutionResult execute()
Executes the action instance- Throws:
org.flowable.common.engine.api.FlowableIllegalArgumentException- if actionInstanceId, actionDefinitionKey and actionDefinitionId are nullorg.flowable.common.engine.api.FlowableObjectNotFoundException- when no action instance or definition is deployed with the given actionInstanceId, actionDefinitionKey or actionDefinitionId
-
-