public interface ActionInstanceBuilder
ActionRuntimeService
.
actionDefinitionId or actionDefinitionKey should be set before calling start()
to start an action instance.Modifier and Type | Method and Description |
---|---|
ActionInstanceBuilder |
actionDefinitionId(String actionDefinitionId)
Set the id of the action definition
|
ActionInstanceBuilder |
actionDefinitionKey(String actionDefinitionKey)
Set the key of the action definition, latest version of the action definition with the given key.
|
ActionInstanceBuilder |
addActionLink(String scopeId,
String scopeType)
Adds one
ActionLink for this ActionInstance . |
ActionInstanceBuilder |
addActionTypeLink(String type,
String linkValue)
Adds one
ActionTypeLink for this ActionInstance . |
ActionInstanceBuilder |
addGroupIdentityLink(String groupId,
String identityLinkType)
Adds a group identity link to the action instance.
|
ActionInstanceBuilder |
addUserIdentityLink(String userId,
String identityLinkType)
Adds an user identity link to the action instance.
|
ActionInstanceBuilder |
formInstanceId(String formInstanceId)
Set the form instance id of the action instance
|
ActionInstanceBuilder |
formKey(String formKey)
Set the form key of the action instance
|
ActionInstanceBuilder |
formParentDeploymentId(String formParentDeploymentId)
The parent deployment id that should be used for the form key.
|
ActionInstanceBuilder |
name(String name)
Set the name of the action instance
|
ActionInstanceBuilder |
priority(Integer priority)
The priority for the action instance.
|
ActionInstanceBuilder |
scopeDefinitionId(String scopeDefinitionId)
Set the scope definition id of the action instance
|
ActionInstanceBuilder |
scopeId(String scopeId)
Set the scope id of the action instance
|
ActionInstanceBuilder |
scopeType(String scopeType)
Set the scope type of the action instance
|
ActionInstance |
start()
Start the action instance
|
ActionInstanceBuilder |
subScopeId(String subScopeId)
Set the sub scope id of the action instance
|
ActionInstanceBuilder |
tenantId(String tenantId)
Set the tenantId of process instance
|
ActionInstanceBuilder actionDefinitionId(String actionDefinitionId)
ActionInstanceBuilder actionDefinitionKey(String actionDefinitionKey)
ActionInstanceBuilder name(String name)
ActionInstanceBuilder scopeId(String scopeId)
ActionInstanceBuilder subScopeId(String subScopeId)
ActionInstanceBuilder scopeType(String scopeType)
ActionInstanceBuilder scopeDefinitionId(String scopeDefinitionId)
ActionInstanceBuilder formInstanceId(String formInstanceId)
ActionInstanceBuilder formKey(String formKey)
ActionInstanceBuilder formParentDeploymentId(String formParentDeploymentId)
ActionInstanceBuilder priority(Integer priority)
ActionInstanceBuilder tenantId(String tenantId)
ActionInstanceBuilder addUserIdentityLink(String userId, String identityLinkType)
ActionInstanceBuilder addGroupIdentityLink(String groupId, String identityLinkType)
ActionInstanceBuilder addActionLink(String scopeId, String scopeType)
ActionLink
for this ActionInstance
.ActionInstanceBuilder addActionTypeLink(String type, String linkValue)
ActionTypeLink
for this ActionInstance
.ActionInstance start()
FlowableIllegalArgumentException
- if actionDefinitionKey and actionDefinitionId are nullFlowableObjectNotFoundException
- when no action definition is deployed with the given actionDefinitionKey or actionDefinitionId