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 Type Method Description ActionInstanceBuilder
actionDefinitionId(java.lang.String actionDefinitionId)
Set the id of the action definitionActionInstanceBuilder
actionDefinitionKey(java.lang.String actionDefinitionKey)
Set the key of the action definition, latest version of the action definition with the given key.ActionInstanceBuilder
addActionLink(java.lang.String scopeId, java.lang.String scopeType)
Adds oneActionLink
for thisActionInstance
.ActionInstanceBuilder
addActionTypeLink(java.lang.String type, java.lang.String linkValue)
Adds oneActionTypeLink
for thisActionInstance
.ActionInstanceBuilder
addGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)
Adds a group identity link to the action instance.ActionInstanceBuilder
addUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)
Adds an user identity link to the action instance.ActionInstanceBuilder
formInstanceId(java.lang.String formInstanceId)
Set the form instance id of the action instanceActionInstanceBuilder
formKey(java.lang.String formKey)
Set the form key of the action instanceActionInstanceBuilder
formParentDeploymentId(java.lang.String formParentDeploymentId)
The parent deployment id that should be used for the form key.ActionInstanceBuilder
name(java.lang.String name)
Set the name of the action instanceActionInstanceBuilder
priority(java.lang.Integer priority)
The priority for the action instance.ActionInstanceBuilder
scopeDefinitionId(java.lang.String scopeDefinitionId)
Set the scope definition id of the action instanceActionInstanceBuilder
scopeId(java.lang.String scopeId)
Set the scope id of the action instanceActionInstanceBuilder
scopeType(java.lang.String scopeType)
Set the scope type of the action instanceActionInstance
start()
Start the action instanceActionInstanceBuilder
subScopeId(java.lang.String subScopeId)
Set the sub scope id of the action instanceActionInstanceBuilder
tenantId(java.lang.String tenantId)
Set 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
ActionInstanceBuilder addUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Adds an user identity link to the action instance. -
addGroupIdentityLink
ActionInstanceBuilder addGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Adds a group identity link to the action instance. -
addActionLink
Adds oneActionLink
for thisActionInstance
. -
addActionTypeLink
Adds oneActionTypeLink
for thisActionInstance
. -
start
ActionInstance start()Start the action instance- Throws:
org.flowable.common.engine.api.FlowableIllegalArgumentException
- if actionDefinitionKey and actionDefinitionId are nullorg.flowable.common.engine.api.FlowableObjectNotFoundException
- when no action definition is deployed with the given actionDefinitionKey or actionDefinitionId
-