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 ActionInstanceBuilderactionDefinitionId(java.lang.String actionDefinitionId)Set the id of the action definitionActionInstanceBuilderactionDefinitionKey(java.lang.String actionDefinitionKey)Set the key of the action definition, latest version of the action definition with the given key.ActionInstanceBuilderaddActionLink(java.lang.String scopeId, java.lang.String scopeType)Adds oneActionLinkfor thisActionInstance.ActionInstanceBuilderaddActionTypeLink(java.lang.String type, java.lang.String linkValue)Adds oneActionTypeLinkfor thisActionInstance.ActionInstanceBuilderaddGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Adds a group identity link to the action instance.ActionInstanceBuilderaddUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Adds an user identity link to the action instance.ActionInstanceBuilderformInstanceId(java.lang.String formInstanceId)Set the form instance id of the action instanceActionInstanceBuilderformKey(java.lang.String formKey)Set the form key of the action instanceActionInstanceBuilderformParentDeploymentId(java.lang.String formParentDeploymentId)The parent deployment id that should be used for the form key.ActionInstanceBuildername(java.lang.String name)Set the name of the action instanceActionInstanceBuilderscopeDefinitionId(java.lang.String scopeDefinitionId)Set the scope definition id of the action instanceActionInstanceBuilderscopeId(java.lang.String scopeId)Set the scope id of the action instanceActionInstanceBuilderscopeType(java.lang.String scopeType)Set the scope type of the action instanceActionInstancestart()Start the action instanceActionInstanceBuildersubScopeId(java.lang.String subScopeId)Set the sub scope id of the action instanceActionInstanceBuildertenantId(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. -
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 oneActionLinkfor thisActionInstance. -
addActionTypeLink
Adds oneActionTypeLinkfor 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
-