public class ActionInstanceBuilderImpl extends Object implements ActionInstanceBuilder
Modifier and Type | Field and Description |
---|---|
protected String |
actionDefinitionId |
protected String |
actionDefinitionKey |
protected List<org.apache.commons.lang3.tuple.Pair<String,String>> |
actionLinkScopes |
protected ActionRuntimeServiceImpl |
actionRuntimeService |
protected List<org.apache.commons.lang3.tuple.Pair<String,String>> |
actionTypeLinks |
protected String |
formInstanceId |
protected String |
formKey |
protected String |
formParentDeploymentId |
protected List<IdentityLinkEntity> |
identityLinks |
protected String |
name |
protected Integer |
priority |
protected String |
scopeDefinitionId |
protected String |
scopeId |
protected String |
scopeType |
protected String |
subScopeId |
protected String |
tenantId |
Constructor and Description |
---|
ActionInstanceBuilderImpl(ActionRuntimeServiceImpl actionRuntimeService) |
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.
|
String |
getActionDefinitionId() |
String |
getActionDefinitionKey() |
List<org.apache.commons.lang3.tuple.Pair<String,String>> |
getActionLinkScopes() |
ActionRuntimeService |
getActionRuntimeService() |
List<org.apache.commons.lang3.tuple.Pair<String,String>> |
getActionTypeLinks() |
String |
getFormInstanceId() |
String |
getFormKey() |
String |
getFormParentDeploymentId() |
List<IdentityLinkEntity> |
getIdentityLinks() |
String |
getName() |
Integer |
getPriority() |
String |
getScopeDefinitionId() |
String |
getScopeId() |
String |
getScopeType() |
String |
getSubScopeId() |
String |
getTenantId() |
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
|
protected ActionRuntimeServiceImpl actionRuntimeService
protected String actionDefinitionId
protected String actionDefinitionKey
protected String name
protected String scopeId
protected String subScopeId
protected String scopeType
protected String scopeDefinitionId
protected String formInstanceId
protected String formKey
protected String formParentDeploymentId
protected Integer priority
protected String tenantId
protected List<org.apache.commons.lang3.tuple.Pair<String,String>> actionLinkScopes
protected List<IdentityLinkEntity> identityLinks
public ActionInstanceBuilderImpl(ActionRuntimeServiceImpl actionRuntimeService)
public ActionInstanceBuilder actionDefinitionId(String actionDefinitionId)
ActionInstanceBuilder
actionDefinitionId
in interface ActionInstanceBuilder
public ActionInstanceBuilder actionDefinitionKey(String actionDefinitionKey)
ActionInstanceBuilder
actionDefinitionKey
in interface ActionInstanceBuilder
public ActionInstanceBuilder name(String name)
ActionInstanceBuilder
name
in interface ActionInstanceBuilder
public ActionInstanceBuilder scopeId(String scopeId)
ActionInstanceBuilder
scopeId
in interface ActionInstanceBuilder
public ActionInstanceBuilder subScopeId(String subScopeId)
ActionInstanceBuilder
subScopeId
in interface ActionInstanceBuilder
public ActionInstanceBuilder scopeType(String scopeType)
ActionInstanceBuilder
scopeType
in interface ActionInstanceBuilder
public ActionInstanceBuilder scopeDefinitionId(String scopeDefinitionId)
ActionInstanceBuilder
scopeDefinitionId
in interface ActionInstanceBuilder
public ActionInstanceBuilder formInstanceId(String formInstanceId)
ActionInstanceBuilder
formInstanceId
in interface ActionInstanceBuilder
public ActionInstanceBuilder formKey(String formKey)
ActionInstanceBuilder
formKey
in interface ActionInstanceBuilder
public ActionInstanceBuilder formParentDeploymentId(String formParentDeploymentId)
ActionInstanceBuilder
formParentDeploymentId
in interface ActionInstanceBuilder
public ActionInstanceBuilder priority(Integer priority)
ActionInstanceBuilder
priority
in interface ActionInstanceBuilder
public ActionInstanceBuilder tenantId(String tenantId)
ActionInstanceBuilder
tenantId
in interface ActionInstanceBuilder
public ActionInstanceBuilder addUserIdentityLink(String userId, String identityLinkType)
ActionInstanceBuilder
addUserIdentityLink
in interface ActionInstanceBuilder
public ActionInstanceBuilder addGroupIdentityLink(String groupId, String identityLinkType)
ActionInstanceBuilder
addGroupIdentityLink
in interface ActionInstanceBuilder
public ActionInstanceBuilder addActionLink(String scopeId, String scopeType)
ActionInstanceBuilder
ActionLink
for this ActionInstance
.addActionLink
in interface ActionInstanceBuilder
public ActionInstanceBuilder addActionTypeLink(String type, String linkValue)
ActionInstanceBuilder
ActionTypeLink
for this ActionInstance
.addActionTypeLink
in interface ActionInstanceBuilder
public ActionInstance start()
ActionInstanceBuilder
start
in interface ActionInstanceBuilder
public ActionRuntimeService getActionRuntimeService()
public String getActionDefinitionId()
public String getActionDefinitionKey()
public String getName()
public String getScopeId()
public String getSubScopeId()
public String getScopeType()
public String getScopeDefinitionId()
public String getFormInstanceId()
public String getFormKey()
public String getFormParentDeploymentId()
public Integer getPriority()
public String getTenantId()
public List<org.apache.commons.lang3.tuple.Pair<String,String>> getActionLinkScopes()
public List<org.apache.commons.lang3.tuple.Pair<String,String>> getActionTypeLinks()
public List<IdentityLinkEntity> getIdentityLinks()