Package com.flowable.action.api.runtime
Interface ActionInstanceBuilder
- All Known Implementing Classes:
ActionInstanceBuilderImpl
public interface ActionInstanceBuilder
Helper for starting new Action instance.
An instance can be obtained through the
ActionRuntimeService
.
actionDefinitionId or actionDefinitionKey should be set before calling start()
to start an action instance.- Author:
- Tijs Rademakers
-
Method Summary
Modifier and TypeMethodDescriptionactionDefinitionId
(String actionDefinitionId) Set the id of the action definitionactionDefinitionKey
(String actionDefinitionKey) Set the key of the action definition, latest version of the action definition with the given key.addActionLink
(String scopeId, String scopeType) Adds oneActionLink
for thisActionInstance
.addActionTypeLink
(String type, String linkValue) Adds oneActionTypeLink
for thisActionInstance
.addGroupIdentityLink
(String groupId, String identityLinkType) Adds a group identity link to the action instance.addUserIdentityLink
(String userId, String identityLinkType) Adds an user identity link to the action instance.formInstanceId
(String formInstanceId) Set the form instance id of the action instanceSet the form key of the action instanceformParentDeploymentId
(String formParentDeploymentId) The parent deployment id that should be used for the form key.Set the icon of the action instanceSet the name of the action instanceThe priority for the action instance.scopeDefinitionId
(String scopeDefinitionId) Set the scope definition id of the action instanceSet the scope id of the action instanceSet the scope type of the action instancestart()
Start the action instancesubScopeId
(String subScopeId) Set the sub scope id of the action instanceSet the tenantId of process instance
-
Method Details
-
actionDefinitionId
Set the id of the action definition -
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
Set the name of the action instance -
scopeId
Set the scope id of the action instance -
subScopeId
Set the sub scope id of the action instance -
scopeType
Set the scope type of the action instance -
scopeDefinitionId
Set the scope definition id of the action instance -
formInstanceId
Set the form instance id of the action instance -
formKey
Set the form key of the action instance -
formParentDeploymentId
The parent deployment id that should be used for the form key. -
priority
The priority for the action instance. -
tenantId
Set the tenantId of process instance -
addUserIdentityLink
Adds an user identity link to the action instance. -
addGroupIdentityLink
Adds a group identity link to the action instance. -
addActionLink
Adds oneActionLink
for thisActionInstance
. -
addActionTypeLink
Adds oneActionTypeLink
for thisActionInstance
. -
icon
Set the icon of the action instance -
start
ActionInstance start()Start the action instance- Throws:
FlowableIllegalArgumentException
- if actionDefinitionKey and actionDefinitionId are nullFlowableObjectNotFoundException
- when no action definition is deployed with the given actionDefinitionKey or actionDefinitionId
-