public interface CaseInstanceBuilder
| Modifier and Type | Method and Description |
|---|---|
CaseInstanceBuilder |
assignee(String userId)
Set the assignee of the case to be created to the given user id.
|
CaseInstanceBuilder |
businessKey(String businessKey) |
CaseInstanceBuilder |
businessStatus(String businessStatus) |
CaseInstanceBuilder |
callbackId(String callbackId)
Set callback id of the newly created case instance.
|
CaseInstanceBuilder |
callbackType(String callbackType)
Set callback type of the newly created case instance.
|
CaseInstanceBuilder |
caseDefinitionId(String caseDefinitionId)
Set the case definition to be used for creating a new case instance by its id.
|
CaseInstanceBuilder |
caseDefinitionKey(String caseDefinitionKey)
Set the case definition to be used for creating a new case instance by its key.
|
CaseInstanceBuilder |
caseDefinitionParentDeploymentId(String parentDeploymentId)
When looking up for a case definition by key it would first lookup for a case definition
within the given parent deployment.
|
CaseInstanceBuilder |
fallbackToDefaultTenant()
If case definition is not found by key in the specified tenant use default tenant search as a fallback
|
String |
getAssignee() |
String |
getBusinessKey() |
String |
getBusinessStatus() |
String |
getCallbackId() |
String |
getCallbackType() |
String |
getCaseDefinitionId() |
String |
getCaseDefinitionKey() |
String |
getCaseDefinitionParentDeploymentId() |
String |
getName() |
String |
getOutcome() |
String |
getOverrideDefinitionTenantId() |
String |
getOwner() |
String |
getParentId() |
String |
getPredefinedCaseInstanceId() |
String |
getReferenceId() |
String |
getReferenceType() |
Map<String,Object> |
getStartFormVariables() |
String |
getTenantId() |
Map<String,Object> |
getTransientVariables() |
Map<String,Object> |
getVariables() |
boolean |
isFallbackToDefaultTenant() |
boolean |
isStartWithForm() |
CaseInstanceBuilder |
name(String name) |
CaseInstanceBuilder |
outcome(String outcome)
Saves the outcome of the start form for the case, if this case should be started out of a start form.
|
CaseInstanceBuilder |
overrideCaseDefinitionTenantId(String tenantId)
Indicator to override the tenant id of the case definition with the provided value.
|
CaseInstanceBuilder |
owner(String userId)
Set the owner of the case to be created to the given user id.
|
CaseInstanceBuilder |
parentId(String parentCaseInstanceId)
Set parent case instanceId of the newly create case instance
|
CaseInstanceBuilder |
predefinedCaseInstanceId(String caseInstanceId)
If the new case instance should have a predefined id, you can set it using this method.
|
CaseInstanceBuilder |
referenceId(String referenceId)
Set the reference id on the newly create case instance.
|
CaseInstanceBuilder |
referenceType(String referenceType)
Set the reference type on the newly create case instance.
|
CaseInstance |
start()
Once all the information is set using this builder API, the start method will create the case instance, initialize it according all
the data in the builder and then evaluate the case model to start the case.
|
CaseInstance |
startAsync()
Once all the information is set using this builder API, the startAsync method will create the case instance and initialize its data, but
the case model is not yet evaluated, but will be started and evaluated asynchronously in a different transaction.
|
CaseInstanceBuilder |
startFormVariables(Map<String,Object> formVariables)
Allows to pass any variables if they come from a form.
|
CaseInstance |
startWithForm()
Once all the information is set using this builder API, the startWithForm method will create the case instance and initialize its data by
additionally using the submitted form variables and handling them with the start form provided with the case model (e.g.
|
CaseInstanceBuilder |
tenantId(String tenantId) |
CaseInstanceBuilder |
transientVariable(String variableName,
Object value) |
CaseInstanceBuilder |
transientVariables(Map<String,Object> transientVariables) |
CaseInstanceBuilder |
variable(String variableName,
Object value) |
CaseInstanceBuilder |
variables(Map<String,Object> variables) |
CaseInstanceBuilder caseDefinitionId(String caseDefinitionId)
caseDefinitionId - the id of the case definition the new case should be based onCaseInstanceBuilder caseDefinitionKey(String caseDefinitionKey)
caseDefinitionKey - the key of the case definition the new case should be based onCaseInstanceBuilder caseDefinitionParentDeploymentId(String parentDeploymentId)
This is typically needed when the CaseInstanceBuilder is called for example from the process engine to start a case instance and it needs to lookup the case definition in the same deployment as the process. Or when starting a case via a case task from the cmmn engine
CaseInstanceBuilder predefinedCaseInstanceId(String caseInstanceId)
caseInstanceId - the id of the new case instance to be usedCaseInstanceBuilder name(String name)
CaseInstanceBuilder businessKey(String businessKey)
CaseInstanceBuilder businessStatus(String businessStatus)
CaseInstanceBuilder variables(Map<String,Object> variables)
CaseInstanceBuilder variable(String variableName, Object value)
CaseInstanceBuilder transientVariables(Map<String,Object> transientVariables)
CaseInstanceBuilder transientVariable(String variableName, Object value)
CaseInstanceBuilder tenantId(String tenantId)
CaseInstanceBuilder owner(String userId)
userId - the id of the user to become the owner of the caseCaseInstanceBuilder assignee(String userId)
userId - the id of the user to become the assignee of the caseCaseInstanceBuilder overrideCaseDefinitionTenantId(String tenantId)
CaseInstanceBuilder startFormVariables(Map<String,Object> formVariables)
variables(Map) is that the start form will be fetched
and the variables matched with the FormInfo.CaseInstanceBuilder outcome(String outcome)
startWithForm().outcome - the outcome to be registered in the builderCaseInstanceBuilder callbackId(String callbackId)
callbackId - id of the callbackCaseInstanceBuilder callbackType(String callbackType)
callbackType - type of the callbackCaseInstanceBuilder referenceId(String referenceId)
CaseInstanceBuilder referenceType(String referenceType)
CaseInstanceBuilder parentId(String parentCaseInstanceId)
parentCaseInstanceId - parent case instance identifierCaseInstanceBuilder fallbackToDefaultTenant()
CaseInstance start()
CaseInstance startAsync()
CaseInstance startWithForm()
String getCaseDefinitionId()
String getCaseDefinitionKey()
String getCaseDefinitionParentDeploymentId()
String getPredefinedCaseInstanceId()
String getName()
String getBusinessKey()
String getBusinessStatus()
String getTenantId()
String getOwner()
String getAssignee()
String getOverrideDefinitionTenantId()
String getOutcome()
String getCallbackId()
String getCallbackType()
String getReferenceId()
String getReferenceType()
String getParentId()
boolean isFallbackToDefaultTenant()
boolean isStartWithForm()
Copyright © 2022 Flowable. All rights reserved.