Class WorkInstanceJsonMapper
java.lang.Object
com.flowable.platform.service.BaseJsonMapper<WorkInstanceSearchRepresentation>
com.flowable.platform.service.work.WorkInstanceJsonMapper
- All Implemented Interfaces:
ElasticsearchResultConverter.ResultMapper<WorkInstanceSearchRepresentation>, WorkInstanceResultMapper
public class WorkInstanceJsonMapper
extends BaseJsonMapper<WorkInstanceSearchRepresentation>
implements WorkInstanceResultMapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface WorkInstanceResultMapper
WorkInstanceResultMapper.Enhancer -
Field Summary
FieldsModifier and TypeFieldDescriptionProperty names fromWorkInstanceRepresentationthat should not be overwritten by variables with the same name when flattening via@JsonAnyGetter.protected List<WorkInstanceResultMapper.Enhancer> Fields inherited from class BaseJsonMapper
objectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(tools.jackson.databind.JsonNode sourceNode) Converts the given source node (not the full Elasticsearch hit document, just the source object within it).convertHit(tools.jackson.databind.JsonNode hitNode) Implement this method, if you want to enhance or enrich the response with additional data outside of the source object within the hit document returned by Elasticsearch.protected WorkInstanceSearchRepresentationconvertWithoutEnhancer(tools.jackson.databind.JsonNode jsonNode) voidsetResultMapperEnhancers(List<WorkInstanceResultMapper.Enhancer> resultMapperEnhancers) Methods inherited from class BaseJsonMapper
createScopeSearchInfo, createTranslationSearchResponses, flattenVariables, flattenVariables, transformVariableNode
-
Field Details
-
RESERVED_PROPERTY_NAMES
Property names fromWorkInstanceRepresentationthat should not be overwritten by variables with the same name when flattening via@JsonAnyGetter. -
resultMapperEnhancers
-
-
Constructor Details
-
WorkInstanceJsonMapper
public WorkInstanceJsonMapper(tools.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
convertHit
Description copied from interface:ElasticsearchResultConverter.ResultMapperImplement this method, if you want to enhance or enrich the response with additional data outside of the source object within the hit document returned by Elasticsearch.- Specified by:
convertHitin interfaceElasticsearchResultConverter.ResultMapper<WorkInstanceSearchRepresentation>- Parameters:
hitNode- the full hit document node as being returned by Elasticsearch- Returns:
- the response object with the mapped / extracted data from the hit
-
convert
Description copied from interface:ElasticsearchResultConverter.ResultMapperConverts the given source node (not the full Elasticsearch hit document, just the source object within it).- Specified by:
convertin interfaceElasticsearchResultConverter.ResultMapper<WorkInstanceSearchRepresentation>- Parameters:
sourceNode- the source object as being returned within the Elasticsearch hit document- Returns:
- the converted response object
-
convertWithoutEnhancer
protected WorkInstanceSearchRepresentation convertWithoutEnhancer(tools.jackson.databind.JsonNode jsonNode) -
getResultMapperEnhancers
-
setResultMapperEnhancers
-