Class LoadMasterDataInstanceDataCmd
java.lang.Object
com.flowable.dataobject.engine.impl.cmd.AbstractNeedsDataObjectDefinitionCmd
com.flowable.dataobject.engine.impl.cmd.LoadMasterDataInstanceDataCmd
- All Implemented Interfaces:
Command<Collection<MasterDataInstance>>
public class LoadMasterDataInstanceDataCmd
extends AbstractNeedsDataObjectDefinitionCmd
implements Command<Collection<MasterDataInstance>>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLoadMasterDataInstanceDataCmd
(MasterDataInstanceImportBuilderImpl masterDataInstanceLoader) -
Method Summary
Modifier and TypeMethodDescriptionprotected MasterDataInstance
createMasterDataInstance
(com.fasterxml.jackson.databind.JsonNode itemNode, String key, String tenantId, DataObjectDefinition dataObjectDefinition, MasterDataModel masterDataModel, DataObjectEngineConfiguration engineConfiguration) protected void
createVariableEntity
(String targetVariableName, Object variableValue, MasterDataInstanceEntity masterDataInstance, VariableTypes variableTypes, DataObjectVariableEntityManager dataObjectVariableEntityManager) execute
(CommandContext commandContext) protected List<MasterDataInstance>
getExistingInstances
(String dataObjectDefinitionKey, String dataObjectDefinitionId, String tenantIdForDataObject, MasterDataInstanceEntityManager masterDataInstanceEntityManager) protected Object
getVariableValue
(com.fasterxml.jackson.databind.JsonNode variableNode) protected void
handleTranslations
(MasterDataInstance masterDataInstance, com.fasterxml.jackson.databind.JsonNode itemNode, String nameField, TranslationService translationService) protected Collection<MasterDataInstance>
loadDocument
(com.fasterxml.jackson.databind.JsonNode dataDocument, DataObjectEngineConfiguration engineConfiguration, CommandContext commandContext) protected Collection<MasterDataInstance>
loadDocument
(String dataObjectDefinitionKey, String dataObjectDefinitionId, String tenantId, boolean overwrite, com.fasterxml.jackson.databind.node.ArrayNode itemsNode, DataObjectEngineConfiguration engineConfiguration, CommandContext commandContext) protected MasterDataInstance
updateMasterDataInstance
(com.fasterxml.jackson.databind.JsonNode itemNode, String key, Map<String, MasterDataInstance> masterDataInstanceMap, DataObjectDefinition dataObjectDefinition, MasterDataModel masterDataModel, DataObjectEngineConfiguration engineConfiguration) Methods inherited from class com.flowable.dataobject.engine.impl.cmd.AbstractNeedsDataObjectDefinitionCmd
getObjectModelByDefinitionId, resolveDataObjectDefinition, validateAccessToOperation
-
Field Details
-
masterDataInstanceLoader
-
-
Constructor Details
-
LoadMasterDataInstanceDataCmd
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceCommand<Collection<MasterDataInstance>>
-
loadDocument
protected Collection<MasterDataInstance> loadDocument(com.fasterxml.jackson.databind.JsonNode dataDocument, DataObjectEngineConfiguration engineConfiguration, CommandContext commandContext) -
loadDocument
protected Collection<MasterDataInstance> loadDocument(String dataObjectDefinitionKey, String dataObjectDefinitionId, String tenantId, boolean overwrite, com.fasterxml.jackson.databind.node.ArrayNode itemsNode, DataObjectEngineConfiguration engineConfiguration, CommandContext commandContext) -
getExistingInstances
protected List<MasterDataInstance> getExistingInstances(String dataObjectDefinitionKey, String dataObjectDefinitionId, String tenantIdForDataObject, MasterDataInstanceEntityManager masterDataInstanceEntityManager) -
updateMasterDataInstance
protected MasterDataInstance updateMasterDataInstance(com.fasterxml.jackson.databind.JsonNode itemNode, String key, Map<String, MasterDataInstance> masterDataInstanceMap, DataObjectDefinition dataObjectDefinition, MasterDataModel masterDataModel, DataObjectEngineConfiguration engineConfiguration) -
createMasterDataInstance
protected MasterDataInstance createMasterDataInstance(com.fasterxml.jackson.databind.JsonNode itemNode, String key, String tenantId, DataObjectDefinition dataObjectDefinition, MasterDataModel masterDataModel, DataObjectEngineConfiguration engineConfiguration) -
handleTranslations
protected void handleTranslations(MasterDataInstance masterDataInstance, com.fasterxml.jackson.databind.JsonNode itemNode, String nameField, TranslationService translationService) -
createVariableEntity
protected void createVariableEntity(String targetVariableName, Object variableValue, MasterDataInstanceEntity masterDataInstance, VariableTypes variableTypes, DataObjectVariableEntityManager dataObjectVariableEntityManager) -
getVariableValue
-