Class AbstractReportRunner
- java.lang.Object
-
- com.flowable.core.service.reporting.impl.runner.AbstractReportRunner
-
- All Implemented Interfaces:
ReportRunner
- Direct Known Subclasses:
ElasticMetricsReportRunner
public abstract class AbstractReportRunner extends Object implements ReportRunner
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
REPORT_TEMPLATE_QUERY_EXTENSION
protected static String
REPORT_TEMPLATE_QUERY_PREFIX
protected TemplateLoader
templateLoader
-
Constructor Summary
Constructors Constructor Description AbstractReportRunner(TemplateLoader templateLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,com.fasterxml.jackson.databind.JsonNode>
collectBuckets(com.fasterxml.jackson.databind.JsonNode bucketNode, String groupBy)
protected Map<String,com.fasterxml.jackson.databind.JsonNode>
collectBuckets(com.fasterxml.jackson.databind.JsonNode bucketNode, Collection<String> groupBys)
protected Map<String,com.fasterxml.jackson.databind.JsonNode>
collectBuckets(Map<String,com.fasterxml.jackson.databind.JsonNode> bucketsByKey, String groupBy)
protected ReportDataPoint
convertBucketToDataPoint(com.fasterxml.jackson.databind.JsonNode bucket, Collection<String> groupBy)
protected Map<String,String>
getGroupByFromBucket(com.fasterxml.jackson.databind.JsonNode aggregatesBucket, Collection<String> groupBys)
protected String
getQueryTemplate(ReportConfiguration report, String reportType)
protected freemarker.template.Template
getTemplate(String templateName)
protected String
mapAggregateToCalendarInterval(ReportRequest request)
protected ReportResult
processJsonWithBucketAggregations(com.fasterxml.jackson.databind.JsonNode reportResult, ReportConfiguration reportConfiguration)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.flowable.core.service.reporting.ReportRunner
canRun, run
-
-
-
-
Field Detail
-
REPORT_TEMPLATE_QUERY_PREFIX
protected static final String REPORT_TEMPLATE_QUERY_PREFIX
- See Also:
- Constant Field Values
-
REPORT_TEMPLATE_QUERY_EXTENSION
protected static final String REPORT_TEMPLATE_QUERY_EXTENSION
- See Also:
- Constant Field Values
-
templateLoader
protected TemplateLoader templateLoader
-
-
Constructor Detail
-
AbstractReportRunner
public AbstractReportRunner(TemplateLoader templateLoader)
-
-
Method Detail
-
mapAggregateToCalendarInterval
protected String mapAggregateToCalendarInterval(ReportRequest request)
-
getQueryTemplate
protected String getQueryTemplate(ReportConfiguration report, String reportType)
-
getTemplate
protected freemarker.template.Template getTemplate(String templateName)
-
convertBucketToDataPoint
protected ReportDataPoint convertBucketToDataPoint(com.fasterxml.jackson.databind.JsonNode bucket, Collection<String> groupBy)
-
getGroupByFromBucket
protected Map<String,String> getGroupByFromBucket(com.fasterxml.jackson.databind.JsonNode aggregatesBucket, Collection<String> groupBys)
-
collectBuckets
protected Map<String,com.fasterxml.jackson.databind.JsonNode> collectBuckets(com.fasterxml.jackson.databind.JsonNode bucketNode, String groupBy)
-
collectBuckets
protected Map<String,com.fasterxml.jackson.databind.JsonNode> collectBuckets(Map<String,com.fasterxml.jackson.databind.JsonNode> bucketsByKey, String groupBy)
-
collectBuckets
protected Map<String,com.fasterxml.jackson.databind.JsonNode> collectBuckets(com.fasterxml.jackson.databind.JsonNode bucketNode, Collection<String> groupBys)
-
processJsonWithBucketAggregations
protected ReportResult processJsonWithBucketAggregations(com.fasterxml.jackson.databind.JsonNode reportResult, ReportConfiguration reportConfiguration)
-
-