public interface ExecuteActionInstanceBuilder
ActionRuntimeService
.
actionInstance, actionDefinitionId or actionDefinitionKey should be set before calling execute()
to execute an action instance.Modifier and Type | Method and Description |
---|---|
ExecuteActionInstanceBuilder |
actionDefinitionId(String actionDefinitionId)
Set the id of the action definition
|
ExecuteActionInstanceBuilder |
actionDefinitionKey(String actionDefinitionKey)
Set the key of the action definition, latest version of the action definition with the given key.
|
ExecuteActionInstanceBuilder |
actionInstanceId(String actionInstanceId)
Set the id of the action instance
|
ActionInstanceExecutionResult |
execute()
Executes the action instance
|
ExecuteActionInstanceBuilder |
name(String name)
Set the name of the action instance
|
ExecuteActionInstanceBuilder |
payload(Map<String,Object> payload)
Set the payload of the action to be used for storing the form instance or executing the bot
|
ExecuteActionInstanceBuilder |
scopeDefinitionId(String scopeDefinitionId)
Set the scope definition id of the action instance
|
ExecuteActionInstanceBuilder |
scopeId(String scopeId)
Set the scope id of the action instance
|
ExecuteActionInstanceBuilder |
scopeType(String scopeType)
Set the scope type of the action instance
|
ExecuteActionInstanceBuilder |
subScopeId(String subScopeId)
Sets the sub scope id of the action instance
|
ExecuteActionInstanceBuilder |
tenantId(String tenantId)
Set the tenantId of process instance
|
ExecuteActionInstanceBuilder actionInstanceId(String actionInstanceId)
ExecuteActionInstanceBuilder actionDefinitionId(String actionDefinitionId)
ExecuteActionInstanceBuilder actionDefinitionKey(String actionDefinitionKey)
ExecuteActionInstanceBuilder name(String name)
ExecuteActionInstanceBuilder scopeId(String scopeId)
ExecuteActionInstanceBuilder subScopeId(String subScopeId)
ExecuteActionInstanceBuilder scopeType(String scopeType)
ExecuteActionInstanceBuilder scopeDefinitionId(String scopeDefinitionId)
ExecuteActionInstanceBuilder payload(Map<String,Object> payload)
ExecuteActionInstanceBuilder tenantId(String tenantId)
ActionInstanceExecutionResult execute()
FlowableIllegalArgumentException
- if actionInstanceId, actionDefinitionKey and actionDefinitionId are nullFlowableObjectNotFoundException
- when no action instance or definition is deployed with the given actionInstanceId, actionDefinitionKey or actionDefinitionId