Class TaskJsonMapper
- java.lang.Object
-
- com.flowable.platform.service.BaseJsonMapper<TaskSearchRepresentation>
-
- com.flowable.platform.service.task.TaskJsonMapper
-
- All Implemented Interfaces:
ElasticsearchResultConverter.ResultMapper<TaskSearchRepresentation>,TaskResultMapper
public class TaskJsonMapper extends BaseJsonMapper<TaskSearchRepresentation> implements TaskResultMapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.flowable.platform.service.task.TaskResultMapper
TaskResultMapper.Enhancer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<TaskResultMapper.Enhancer>resultMapperEnhancers
-
Constructor Summary
Constructors Constructor Description TaskJsonMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskSearchRepresentationconvert(com.fasterxml.jackson.databind.JsonNode sourceNode)Converts the given source node (not the full Elasticsearch hit document, just the source object within it).TaskSearchRepresentationconvertHit(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 TaskSearchRepresentationconvertWithoutEnhancer(com.fasterxml.jackson.databind.JsonNode jsonNode)java.util.List<TaskResultMapper.Enhancer>getResultMapperEnhancers()voidsetResultMapperEnhancers(java.util.List<TaskResultMapper.Enhancer> resultMapperEnhancers)-
Methods inherited from class com.flowable.platform.service.BaseJsonMapper
createScopeSearchInfo, createTranslationSearchResponses, flattenVariables, transformVariableNode
-
-
-
-
Field Detail
-
resultMapperEnhancers
protected java.util.List<TaskResultMapper.Enhancer> resultMapperEnhancers
-
-
Method Detail
-
convertHit
public TaskSearchRepresentation convertHit(com.fasterxml.jackson.databind.JsonNode hitNode)
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<TaskSearchRepresentation>- 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 TaskSearchRepresentation convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
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<TaskSearchRepresentation>- Parameters:
sourceNode- the source object as being returned within the Elasticsearch hit document- Returns:
- the converted response object
-
convertWithoutEnhancer
protected TaskSearchRepresentation convertWithoutEnhancer(com.fasterxml.jackson.databind.JsonNode jsonNode)
-
getResultMapperEnhancers
public java.util.List<TaskResultMapper.Enhancer> getResultMapperEnhancers()
-
setResultMapperEnhancers
public void setResultMapperEnhancers(java.util.List<TaskResultMapper.Enhancer> resultMapperEnhancers)
-
-