Class DataObjectInstanceVariableContainerBuilderImpl
java.lang.Object
com.flowable.dataobject.engine.impl.runtime.datasource.DataObjectInstanceVariableContainerBuilderImpl
- All Implemented Interfaces:
DataObjectInstanceVariableContainerBuilder
public class DataObjectInstanceVariableContainerBuilderImpl extends java.lang.Object implements DataObjectInstanceVariableContainerBuilder
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>dataprotected DataObjectDataSourceImpldataObjectDataSourceprotected java.lang.StringdefinitionIdprotected java.lang.StringdefinitionKeyprotected java.lang.StringtenantId -
Constructor Summary
Constructors Constructor Description DataObjectInstanceVariableContainerBuilderImpl(DataObjectDataSourceImpl dataObjectDataSource) -
Method Summary
Modifier and Type Method Description DataObjectInstanceVariableContainercreate()Creates and persists the new data object instance.DataObjectInstanceVariableContainerBuildercreateFromPayload(DataObjectHandlingContext context)If an instance builder is used to create a new data object given by the payload sent from a form typically, this method is invoked to create the data object according the given payload data.DataObjectInstanceVariableContainerBuilderdefinitionId(java.lang.String id)Set the id of the data object definition the new instance should be based on.DataObjectInstanceVariableContainerBuilderdefinitionKey(java.lang.String key)Set the key of the data object definition the new instance should be based on.java.util.Map<java.lang.String,java.lang.Object>getData()java.lang.StringgetDefinitionId()java.lang.StringgetDefinitionKey()java.lang.StringgetTenantId()DataObjectInstanceVariableContainerBuildertenantId(java.lang.String tenantId)Set the tenant id for the new data object.DataObjectInstanceVariableContainerBuildervalue(java.lang.String valueName, java.lang.Object value)Generic setter for a data object field value specified by its name and value to be set.
-
Field Details
-
data
protected final java.util.Map<java.lang.String,java.lang.Object> data -
definitionKey
protected java.lang.String definitionKey -
definitionId
protected java.lang.String definitionId -
tenantId
protected java.lang.String tenantId -
dataObjectDataSource
-
-
Constructor Details
-
DataObjectInstanceVariableContainerBuilderImpl
public DataObjectInstanceVariableContainerBuilderImpl(DataObjectDataSourceImpl dataObjectDataSource)
-
-
Method Details
-
definitionId
Description copied from interface:DataObjectInstanceVariableContainerBuilderSet the id of the data object definition the new instance should be based on. Must only be provided, if the data object definition key is not set.- Specified by:
definitionIdin interfaceDataObjectInstanceVariableContainerBuilder
-
definitionKey
Description copied from interface:DataObjectInstanceVariableContainerBuilderSet the key of the data object definition the new instance should be based on. If set, the latest definition id is used. The key is ignored, if the definition id is set directly.- Specified by:
definitionKeyin interfaceDataObjectInstanceVariableContainerBuilder
-
tenantId
Description copied from interface:DataObjectInstanceVariableContainerBuilderSet the tenant id for the new data object. This can be used together with the definition key for the lookup- Specified by:
tenantIdin interfaceDataObjectInstanceVariableContainerBuilder
-
createFromPayload
public DataObjectInstanceVariableContainerBuilder createFromPayload(DataObjectHandlingContext context)Description copied from interface:DataObjectInstanceVariableContainerBuilderIf an instance builder is used to create a new data object given by the payload sent from a form typically, this method is invoked to create the data object according the given payload data.- Specified by:
createFromPayloadin interfaceDataObjectInstanceVariableContainerBuilder- Parameters:
context- the data object context containing the data and full payload and further information for parsing the content into the data object- Returns:
- the builder instance for method chaining
-
value
public DataObjectInstanceVariableContainerBuilder value(java.lang.String valueName, java.lang.Object value)Description copied from interface:DataObjectInstanceVariableContainerBuilderGeneric setter for a data object field value specified by its name and value to be set.- Specified by:
valuein interfaceDataObjectInstanceVariableContainerBuilder- Parameters:
valueName- the name of the data object field to set a valuevalue- the value to be set- Returns:
- the builder instance for method chaining
-
create
Description copied from interface:DataObjectInstanceVariableContainerBuilderCreates and persists the new data object instance.- Specified by:
createin interfaceDataObjectInstanceVariableContainerBuilder- Returns:
- the newly created data object instance
-
getDefinitionId
public java.lang.String getDefinitionId()- Specified by:
getDefinitionIdin interfaceDataObjectInstanceVariableContainerBuilder
-
getDefinitionKey
public java.lang.String getDefinitionKey()- Specified by:
getDefinitionKeyin interfaceDataObjectInstanceVariableContainerBuilder
-
getTenantId
public java.lang.String getTenantId()- Specified by:
getTenantIdin interfaceDataObjectInstanceVariableContainerBuilder
-
getData
public java.util.Map<java.lang.String,java.lang.Object> getData()- Specified by:
getDatain interfaceDataObjectInstanceVariableContainerBuilder
-