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 com.flowable.platform.service.work.WorkInstanceResultMapper
WorkInstanceResultMapper.Enhancer
-
-
Field Summary
Fields Modifier and Type Field Description protected List<WorkInstanceResultMapper.Enhancer>
resultMapperEnhancers
-
Fields inherited from class com.flowable.platform.service.BaseJsonMapper
objectMapper
-
-
Constructor Summary
Constructors Constructor Description WorkInstanceJsonMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkInstanceSearchRepresentation
convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
Converts the given source node (not the full Elasticsearch hit document, just the source object within it).WorkInstanceSearchRepresentation
convertHit(com.fasterxml.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 WorkInstanceSearchRepresentation
convertWithoutEnhancer(com.fasterxml.jackson.databind.JsonNode jsonNode)
List<WorkInstanceResultMapper.Enhancer>
getResultMapperEnhancers()
void
setResultMapperEnhancers(List<WorkInstanceResultMapper.Enhancer> resultMapperEnhancers)
-
Methods inherited from class com.flowable.platform.service.BaseJsonMapper
createScopeSearchInfo, createTranslationSearchResponses, flattenVariables, transformVariableNode
-
-
-
-
Field Detail
-
resultMapperEnhancers
protected List<WorkInstanceResultMapper.Enhancer> resultMapperEnhancers
-
-
Method Detail
-
convertHit
public WorkInstanceSearchRepresentation convertHit(com.fasterxml.jackson.databind.JsonNode hitNode)
Description copied from interface:ElasticsearchResultConverter.ResultMapper
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.- Specified by:
convertHit
in 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
public WorkInstanceSearchRepresentation convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
Description copied from interface:ElasticsearchResultConverter.ResultMapper
Converts the given source node (not the full Elasticsearch hit document, just the source object within it).- Specified by:
convert
in 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(com.fasterxml.jackson.databind.JsonNode jsonNode)
-
getResultMapperEnhancers
public List<WorkInstanceResultMapper.Enhancer> getResultMapperEnhancers()
-
setResultMapperEnhancers
public void setResultMapperEnhancers(List<WorkInstanceResultMapper.Enhancer> resultMapperEnhancers)
-
-