Package com.flowable.action.api.runtime
Interface ActionInstanceBuilder
-
- All Known Implementing Classes:
ActionInstanceBuilderImpl
public interface ActionInstanceBuilderHelper for starting new Action instance. An instance can be obtained through theActionRuntimeService. actionDefinitionId or actionDefinitionKey should be set before callingstart()to start an action instance.- Author:
- Tijs Rademakers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActionInstanceBuilderactionDefinitionId(String actionDefinitionId)Set the id of the action definitionActionInstanceBuilderactionDefinitionKey(String actionDefinitionKey)Set the key of the action definition, latest version of the action definition with the given key.ActionInstanceBuilderaddActionLink(String scopeId, String scopeType)Adds oneActionLinkfor thisActionInstance.ActionInstanceBuilderaddActionTypeLink(String type, String linkValue)Adds oneActionTypeLinkfor thisActionInstance.ActionInstanceBuilderaddGroupIdentityLink(String groupId, String identityLinkType)Adds a group identity link to the action instance.ActionInstanceBuilderaddUserIdentityLink(String userId, String identityLinkType)Adds an user identity link to the action instance.ActionInstanceBuilderformInstanceId(String formInstanceId)Set the form instance id of the action instanceActionInstanceBuilderformKey(String formKey)Set the form key of the action instanceActionInstanceBuilderformParentDeploymentId(String formParentDeploymentId)The parent deployment id that should be used for the form key.ActionInstanceBuildername(String name)Set the name of the action instanceActionInstanceBuilderpriority(Integer priority)The priority for the action instance.ActionInstanceBuilderscopeDefinitionId(String scopeDefinitionId)Set the scope definition id of the action instanceActionInstanceBuilderscopeId(String scopeId)Set the scope id of the action instanceActionInstanceBuilderscopeType(String scopeType)Set the scope type of the action instanceActionInstancestart()Start the action instanceActionInstanceBuildersubScopeId(String subScopeId)Set the sub scope id of the action instanceActionInstanceBuildertenantId(String tenantId)Set the tenantId of process instance
-
-
-
Method Detail
-
actionDefinitionId
ActionInstanceBuilder actionDefinitionId(String actionDefinitionId)
Set the id of the action definition
-
actionDefinitionKey
ActionInstanceBuilder actionDefinitionKey(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
ActionInstanceBuilder name(String name)
Set the name of the action instance
-
scopeId
ActionInstanceBuilder scopeId(String scopeId)
Set the scope id of the action instance
-
subScopeId
ActionInstanceBuilder subScopeId(String subScopeId)
Set the sub scope id of the action instance
-
scopeType
ActionInstanceBuilder scopeType(String scopeType)
Set the scope type of the action instance
-
scopeDefinitionId
ActionInstanceBuilder scopeDefinitionId(String scopeDefinitionId)
Set the scope definition id of the action instance
-
formInstanceId
ActionInstanceBuilder formInstanceId(String formInstanceId)
Set the form instance id of the action instance
-
formKey
ActionInstanceBuilder formKey(String formKey)
Set the form key of the action instance
-
formParentDeploymentId
ActionInstanceBuilder formParentDeploymentId(String formParentDeploymentId)
The parent deployment id that should be used for the form key.
-
priority
ActionInstanceBuilder priority(Integer priority)
The priority for the action instance.
-
tenantId
ActionInstanceBuilder tenantId(String tenantId)
Set the tenantId of process instance
-
addUserIdentityLink
ActionInstanceBuilder addUserIdentityLink(String userId, String identityLinkType)
Adds an user identity link to the action instance.
-
addGroupIdentityLink
ActionInstanceBuilder addGroupIdentityLink(String groupId, String identityLinkType)
Adds a group identity link to the action instance.
-
addActionLink
ActionInstanceBuilder addActionLink(String scopeId, String scopeType)
Adds oneActionLinkfor thisActionInstance.
-
addActionTypeLink
ActionInstanceBuilder addActionTypeLink(String type, String linkValue)
Adds oneActionTypeLinkfor thisActionInstance.
-
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
-
-