Class ProcessInstanceJsonMapper
java.lang.Object
com.flowable.platform.service.BaseJsonMapper<ProcessInstanceSearchRepresentation>
com.flowable.platform.service.process.ProcessInstanceJsonMapper
- All Implemented Interfaces:
ElasticsearchResultConverter.ResultMapper<ProcessInstanceSearchRepresentation>, ProcessInstanceResultMapper
public class ProcessInstanceJsonMapper
extends BaseJsonMapper<ProcessInstanceSearchRepresentation>
implements ProcessInstanceResultMapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface ProcessInstanceResultMapper
ProcessInstanceResultMapper.Enhancer -
Field Summary
FieldsFields 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 ProcessInstanceSearchRepresentationconvertWithoutEnhancer(tools.jackson.databind.JsonNode jsonNode) voidsetResultMapperEnhancers(List<ProcessInstanceResultMapper.Enhancer> resultMapperEnhancers) Methods inherited from class BaseJsonMapper
createScopeSearchInfo, createTranslationSearchResponses, flattenVariables, flattenVariables, transformVariableNode
-
Field Details
-
resultMapperEnhancers
-
-
Constructor Details
-
ProcessInstanceJsonMapper
public ProcessInstanceJsonMapper(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<ProcessInstanceSearchRepresentation>- 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<ProcessInstanceSearchRepresentation>- Parameters:
sourceNode- the source object as being returned within the Elasticsearch hit document- Returns:
- the converted response object
-
convertWithoutEnhancer
protected ProcessInstanceSearchRepresentation convertWithoutEnhancer(tools.jackson.databind.JsonNode jsonNode) -
getResultMapperEnhancers
-
setResultMapperEnhancers
public void setResultMapperEnhancers(List<ProcessInstanceResultMapper.Enhancer> resultMapperEnhancers)
-