Class UpdateByQueryIndexingTransformer

  • All Implemented Interfaces:
    org.flowable.job.service.impl.history.async.transformer.HistoryJsonTransformer

    public class UpdateByQueryIndexingTransformer
    extends java.lang.Object
    implements org.flowable.job.service.impl.history.async.transformer.HistoryJsonTransformer
    A generic indexing transformer that allows to do an update by query.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected LowLevelIndexingService indexingService  
      protected com.fasterxml.jackson.databind.ObjectMapper objectMapper  
      • Fields inherited from interface org.flowable.job.service.impl.history.async.transformer.HistoryJsonTransformer

        FIELD_NAME_DATA, FIELD_NAME_TYPE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getTypes()  
      boolean isApplicable​(com.fasterxml.jackson.databind.node.ObjectNode historicalData, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
      void transformJson​(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity job, com.fasterxml.jackson.databind.node.ObjectNode data, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • objectMapper

        protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • UpdateByQueryIndexingTransformer

        public UpdateByQueryIndexingTransformer​(LowLevelIndexingService indexingService,
                                                com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • getTypes

        public java.util.List<java.lang.String> getTypes()
        Specified by:
        getTypes in interface org.flowable.job.service.impl.history.async.transformer.HistoryJsonTransformer
      • isApplicable

        public boolean isApplicable​(com.fasterxml.jackson.databind.node.ObjectNode historicalData,
                                    org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
        Specified by:
        isApplicable in interface org.flowable.job.service.impl.history.async.transformer.HistoryJsonTransformer
      • transformJson

        public void transformJson​(org.flowable.job.service.impl.persistence.entity.HistoryJobEntity job,
                                  com.fasterxml.jackson.databind.node.ObjectNode data,
                                  org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
        Specified by:
        transformJson in interface org.flowable.job.service.impl.history.async.transformer.HistoryJsonTransformer