public interface DataObjectRuntimeService
DataObjectDefinition
s as well as some more data object and its
definition based features.
If you need strongly type support for builder and data objects then use the DataObjectDataSource
for that applicable data object.Modifier and Type | Method and Description |
---|---|
DataObjectInstanceQuery |
createDataObjectInstanceQuery()
Returns a data object instance query to be used when searching for data object instances.
|
DataObjectModificationBuilder |
createDataObjectModificationBuilder(String dataObjectDefinitionId)
Creates a new database schema data object modification builder to modify existing data objects.
|
DataObjectInstanceVariableContainerBuilder |
createDataObjectValueInstanceBuilderByDefinitionId(String dataObjectDefinitionId)
Creates a new generic data object instance builder to create new data objects.
|
DataObjectInstanceVariableContainerBuilder |
createDataObjectValueInstanceBuilderByDefinitionKey(String dataObjectDefinitionKey)
Creates a new generic data object instance builder to create new data objects.
|
DataObjectInstanceVariableContainerBuilder |
createDataObjectValueInstanceBuilderByDefinitionKeyAndTenantId(String dataObjectDefinitionKey,
String tenantId)
Creates a new generic data object instance builder to create new data objects.
|
MasterDataInstanceBuilder |
createMasterDataInstanceBuilder()
Creates a builder to add a new master data instance
|
MasterDataInstanceQuery |
createMasterDataInstanceQuery()
Returns a master data instance query to be used when searching for master data instances.
|
void |
deleteDataObject(String lookupId,
String dataObjectDefinitionId)
Deletes the specified data object given by its lookup id and data object definition.
|
void |
deleteDataObjectVariablesByInstanceId(String dataInstanceId)
Deletes data object variables by master instance id
|
void |
deleteMasterDataInstancesByDefinitionId(String dataObjectDefinitionId)
Deletes master data instances by data object definition id
|
DataObjectInstanceVariableContainer |
findDataObjectValueByDataObjectInstanceId(String instanceId)
Lookup a single data object given by its instance id.
|
DataObjectInstanceVariableContainer |
findDataObjectValueByLookupIdAndDefinitionId(String lookupId,
String dataObjectDefinitionId)
Lookup a single data object given by its lookup id and definition id.
|
DataObjectInstanceVariableContainer |
findDataObjectValueByLookupIdAndDefinitionKey(String lookupId,
String dataObjectDefinitionKey)
Lookup a single data object given by its lookup id and definition key.
|
DataObjectInstanceVariableContainer |
findDataObjectValueByLookupIdAndDefinitionKey(String lookupId,
String dataObjectDefinitionKey,
String tenantId)
Lookup a single data object given by its lookup id and definition key.
|
DataObjectDataSource |
getDataSource(String dataSourceId)
Returns the data source given its id.
|
Map<String,Object> |
getMasterDataInstanceVariables(String masterDataInstanceId)
Get the variables for the master data instance with the provided id
|
void |
loadMasterDataInstanceData(String data,
String dataObjectDefinitionId)
Loads master data instance data into the data object engine
|
MasterDataInstance |
saveMasterDataInstance(MasterDataInstance masterDataInstance)
Saves an updated master data instance
|
DataObjectDataSource getDataSource(String dataSourceId)
dataSourceId
- the id of the data source to be returnedorg.flowable.common.engine.api.FlowableIllegalArgumentException
- if such a data source does not existDataObjectInstanceVariableContainer findDataObjectValueByLookupIdAndDefinitionKey(String lookupId, String dataObjectDefinitionKey)
lookupId
- the lookup id of the data object to be returneddataObjectDefinitionKey
- the key of the data object definition to return a data object instance forDataObjectInstanceVariableContainer findDataObjectValueByLookupIdAndDefinitionKey(String lookupId, String dataObjectDefinitionKey, String tenantId)
lookupId
- the lookup id of the data object to be returneddataObjectDefinitionKey
- the key of the data object definition to return a data object instance fortenantId
- the tenant id to return a data object instance forDataObjectInstanceVariableContainer findDataObjectValueByDataObjectInstanceId(String instanceId)
instanceId
- the instance id of the data object to be returnedDataObjectInstanceVariableContainer findDataObjectValueByLookupIdAndDefinitionId(String lookupId, String dataObjectDefinitionId)
lookupId
- the lookup id of the data object to be returneddataObjectDefinitionId
- the id of the data object definition to return a data object instance forDataObjectInstanceVariableContainerBuilder createDataObjectValueInstanceBuilderByDefinitionKey(String dataObjectDefinitionKey)
dataObjectDefinitionKey
- the key of the data object definition a new instance should be created forDataObjectInstanceVariableContainerBuilder createDataObjectValueInstanceBuilderByDefinitionKeyAndTenantId(String dataObjectDefinitionKey, String tenantId)
dataObjectDefinitionKey
- the key of the data object definition a new instance should be created fortenantId
- the tenant of the data object definitionDataObjectInstanceVariableContainerBuilder createDataObjectValueInstanceBuilderByDefinitionId(String dataObjectDefinitionId)
dataObjectDefinitionId
- the id of the data object definition a new instance should be created forDataObjectModificationBuilder createDataObjectModificationBuilder(String dataObjectDefinitionId)
dataObjectDefinitionId
- the id of the data object definition for the data object to be modifiedvoid deleteDataObject(String lookupId, String dataObjectDefinitionId)
lookupId
- the lookup id of the data object to be deleteddataObjectDefinitionId
- the id of the data object definition the data object is specified withvoid loadMasterDataInstanceData(String data, String dataObjectDefinitionId)
DataObjectInstanceQuery createDataObjectInstanceQuery()
MasterDataInstanceQuery createMasterDataInstanceQuery()
MasterDataInstanceBuilder createMasterDataInstanceBuilder()
Map<String,Object> getMasterDataInstanceVariables(String masterDataInstanceId)
MasterDataInstance saveMasterDataInstance(MasterDataInstance masterDataInstance)
void deleteMasterDataInstancesByDefinitionId(String dataObjectDefinitionId)
void deleteDataObjectVariablesByInstanceId(String dataInstanceId)
Copyright © 2019. All rights reserved.