Interface MasterDataInstanceBuilder
-
- All Known Implementing Classes:
MasterDataInstanceBuilderImpl
public interface MasterDataInstanceBuilderHelper for creating a new Master data instance. An instance can be obtained through theDataObjectRuntimeService. dataObjectDefinitionId or dataObjectDefinitionKey should be set before callingcreate()to create a master data instance.- Author:
- Tijs Rademakers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MasterDataInstanceBuilderaddVariableValue(java.lang.String name, java.lang.Object value)Set the tenant id to resolve the data object definitionMasterDataInstancecreate()creates the master data instanceMasterDataInstanceBuildercreatorId(java.lang.String creatorId)Set the creator id of the master data instanceMasterDataInstanceBuilderdataObjectDefinitionId(java.lang.String dataObjectDefinitionId)Set the id of the master data object definitionMasterDataInstanceBuilderdataObjectDefinitionKey(java.lang.String dataObjectDefinitionKey)Set the key of the master data object definition, latest version of the data object definition with the given key.MasterDataInstanceBuilderexternalId(java.lang.String externalId)Set the external id of the master data instanceMasterDataInstanceBuilderfavorite()Set the favorite value to true for the master data instanceMasterDataInstanceBuilderkey(java.lang.String key)Set the key of the master data instanceMasterDataInstanceBuildername(java.lang.String name)Set the name of the master data instanceMasterDataInstanceBuilderoverrideDataObjectDefinitionId(java.lang.String tenantId)Indicator to override the tenant id of the data object definition with the provided value.MasterDataInstanceBuildersortOrder(int sortOrder)Set the sort order of the master data instanceMasterDataInstanceBuilderstate(java.lang.String state)Set the state of the master data instanceMasterDataInstanceBuildertenantId(java.lang.String tenantId)Set the tenant id to resolve the data object definitionMasterDataInstanceBuilderupdaterId(java.lang.String updaterId)Set the updater id of the master data instance
-
-
-
Method Detail
-
dataObjectDefinitionId
MasterDataInstanceBuilder dataObjectDefinitionId(java.lang.String dataObjectDefinitionId)
Set the id of the master data object definition
-
dataObjectDefinitionKey
MasterDataInstanceBuilder dataObjectDefinitionKey(java.lang.String dataObjectDefinitionKey)
Set the key of the master data object definition, latest version of the data object definition with the given key. If dataObjectDefinitionId was set this will be ignored
-
key
MasterDataInstanceBuilder key(java.lang.String key)
Set the key of the master data instance
-
externalId
MasterDataInstanceBuilder externalId(java.lang.String externalId)
Set the external id of the master data instance
-
name
MasterDataInstanceBuilder name(java.lang.String name)
Set the name of the master data instance
-
state
MasterDataInstanceBuilder state(java.lang.String state)
Set the state of the master data instance
-
sortOrder
MasterDataInstanceBuilder sortOrder(int sortOrder)
Set the sort order of the master data instance
-
favorite
MasterDataInstanceBuilder favorite()
Set the favorite value to true for the master data instance
-
creatorId
MasterDataInstanceBuilder creatorId(java.lang.String creatorId)
Set the creator id of the master data instance
-
updaterId
MasterDataInstanceBuilder updaterId(java.lang.String updaterId)
Set the updater id of the master data instance
-
tenantId
MasterDataInstanceBuilder tenantId(java.lang.String tenantId)
Set the tenant id to resolve the data object definition
-
overrideDataObjectDefinitionId
MasterDataInstanceBuilder overrideDataObjectDefinitionId(java.lang.String tenantId)
Indicator to override the tenant id of the data object definition with the provided value. The tenantId to lookup the data object definition should still be provided if needed.
-
addVariableValue
MasterDataInstanceBuilder addVariableValue(java.lang.String name, java.lang.Object value)
Set the tenant id to resolve the data object definition
-
create
MasterDataInstance create()
creates the master data instance- Throws:
org.flowable.common.engine.api.FlowableIllegalArgumentException- if dataObjectDefinitionKey and dataObjectDefinitionId are nullorg.flowable.common.engine.api.FlowableObjectNotFoundException- when no data object definition is deployed with the given dataObjectDefinitionKey or dataObjectDefinitionId
-
-