public interface MasterDataInstanceBuilder
DataObjectRuntimeService
.
dataObjectDefinitionId or dataObjectDefinitionKey should be set before calling create()
to create a master data instance.Modifier and Type | Method and Description |
---|---|
MasterDataInstanceBuilder |
addVariableValue(String name,
Object value)
Set the tenant id to resolve the data object definition
|
MasterDataInstance |
create()
creates the master data instance
|
MasterDataInstanceBuilder |
creatorId(String creatorId)
Set the creator id of the master data instance
|
MasterDataInstanceBuilder |
dataObjectDefinitionId(String dataObjectDefinitionId)
Set the id of the master data object definition
|
MasterDataInstanceBuilder |
dataObjectDefinitionKey(String dataObjectDefinitionKey)
Set the key of the master data object definition, latest version of the data object definition with the given key.
|
MasterDataInstanceBuilder |
externalId(String externalId)
Set the external id of the master data instance
|
MasterDataInstanceBuilder |
favorite()
Set the favorite value to true for the master data instance
|
MasterDataInstanceBuilder |
key(String key)
Set the key of the master data instance
|
MasterDataInstanceBuilder |
name(String name)
Set the name of the master data instance
|
MasterDataInstanceBuilder |
overrideDataObjectDefinitionId(String tenantId)
Indicator to override the tenant id of the data object definition with the provided value.
|
MasterDataInstanceBuilder |
sortOrder(int sortOrder)
Set the sort order of the master data instance
|
MasterDataInstanceBuilder |
state(String state)
Set the state of the master data instance
|
MasterDataInstanceBuilder |
tenantId(String tenantId)
Set the tenant id to resolve the data object definition
|
MasterDataInstanceBuilder |
updaterId(String updaterId)
Set the updater id of the master data instance
|
MasterDataInstanceBuilder dataObjectDefinitionId(String dataObjectDefinitionId)
MasterDataInstanceBuilder dataObjectDefinitionKey(String dataObjectDefinitionKey)
MasterDataInstanceBuilder key(String key)
MasterDataInstanceBuilder externalId(String externalId)
MasterDataInstanceBuilder name(String name)
MasterDataInstanceBuilder state(String state)
MasterDataInstanceBuilder sortOrder(int sortOrder)
MasterDataInstanceBuilder favorite()
MasterDataInstanceBuilder creatorId(String creatorId)
MasterDataInstanceBuilder updaterId(String updaterId)
MasterDataInstanceBuilder tenantId(String tenantId)
MasterDataInstanceBuilder overrideDataObjectDefinitionId(String tenantId)
MasterDataInstanceBuilder addVariableValue(String name, Object value)
MasterDataInstance create()
FlowableIllegalArgumentException
- if dataObjectDefinitionKey and dataObjectDefinitionId are nullFlowableObjectNotFoundException
- when no data object definition is deployed with the given dataObjectDefinitionKey or dataObjectDefinitionId