Package org.camunda.bpm.engine.impl
Class HistoricTaskInstanceReportImpl
- java.lang.Object
 - 
- org.camunda.bpm.engine.impl.HistoricTaskInstanceReportImpl
 
 
- 
- All Implemented Interfaces:
 HistoricTaskInstanceReport,Report
public class HistoricTaskInstanceReportImpl extends java.lang.Object implements HistoricTaskInstanceReport
- Author:
 - Stefan Hentschel.
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classHistoricTaskInstanceReportImpl.ExecuteDurationCmdprotected classHistoricTaskInstanceReportImpl.HistoricTaskInstanceCountByNameCmdprotected classHistoricTaskInstanceReportImpl.HistoricTaskInstanceCountByProcessDefinitionKey 
- 
Field Summary
Fields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected java.util.DatecompletedAfterprotected java.util.DatecompletedBeforeprotected PeriodUnitdurationPeriodUnitprotected TenantChecktenantCheck 
- 
Constructor Summary
Constructors Constructor Description HistoricTaskInstanceReportImpl(CommandExecutor commandExecutor) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoricTaskInstanceReportcompletedAfter(java.util.Date completedAfter)Sets the completed after date for constraining the query to search for all tasks which are completed after a certain date.HistoricTaskInstanceReportcompletedBefore(java.util.Date completedBefore)Sets the completed before date for constraining the query to search for all tasks which are completed before a certain date.java.util.List<HistoricTaskInstanceReportResult>countByProcessDefinitionKey()Executes the task report query and returns a list ofHistoricTaskInstanceReportResultsjava.util.List<HistoricTaskInstanceReportResult>countByTaskName()Executes the task report query and returns a list ofHistoricTaskInstanceReportResultsjava.util.List<DurationReportResult>duration(PeriodUnit periodUnit)Executes the duration report query and returns a list ofDurationReportResults.protected java.util.List<HistoricTaskInstanceReportResult>executeCountByProcessDefinitionKey(CommandContext commandContext)protected java.util.List<HistoricTaskInstanceReportResult>executeCountByTaskName(CommandContext commandContext)protected java.util.List<DurationReportResult>executeDuration(CommandContext commandContext)java.util.DategetCompletedAfter()java.util.DategetCompletedBefore()java.lang.StringgetReportPeriodUnitName()TenantCheckgetTenantCheck() 
 - 
 
- 
- 
Field Detail
- 
completedAfter
protected java.util.Date completedAfter
 
- 
completedBefore
protected java.util.Date completedBefore
 
- 
durationPeriodUnit
protected PeriodUnit durationPeriodUnit
 
- 
commandExecutor
protected CommandExecutor commandExecutor
 
- 
tenantCheck
protected TenantCheck tenantCheck
 
 - 
 
- 
Constructor Detail
- 
HistoricTaskInstanceReportImpl
public HistoricTaskInstanceReportImpl(CommandExecutor commandExecutor)
 
 - 
 
- 
Method Detail
- 
countByProcessDefinitionKey
public java.util.List<HistoricTaskInstanceReportResult> countByProcessDefinitionKey()
Description copied from interface:HistoricTaskInstanceReportExecutes the task report query and returns a list of
HistoricTaskInstanceReportResults- Specified by:
 countByProcessDefinitionKeyin interfaceHistoricTaskInstanceReport- Returns:
 - a list of 
HistoricTaskInstanceReportResults 
 
- 
executeCountByProcessDefinitionKey
protected java.util.List<HistoricTaskInstanceReportResult> executeCountByProcessDefinitionKey(CommandContext commandContext)
 
- 
countByTaskName
public java.util.List<HistoricTaskInstanceReportResult> countByTaskName()
Description copied from interface:HistoricTaskInstanceReportExecutes the task report query and returns a list of
HistoricTaskInstanceReportResults- Specified by:
 countByTaskNamein interfaceHistoricTaskInstanceReport- Returns:
 - a list of 
HistoricTaskInstanceReportResults 
 
- 
executeCountByTaskName
protected java.util.List<HistoricTaskInstanceReportResult> executeCountByTaskName(CommandContext commandContext)
 
- 
duration
public java.util.List<DurationReportResult> duration(PeriodUnit periodUnit)
Description copied from interface:ReportExecutes the duration report query and returns a list of
DurationReportResults.Be aware that the resulting report must be interpreted by the caller itself.
- Specified by:
 durationin interfaceReport- Parameters:
 periodUnit- Aperiod unitto define the granularity of the report.- Returns:
 - a list of 
DurationReportResults 
 
- 
executeDuration
protected java.util.List<DurationReportResult> executeDuration(CommandContext commandContext)
 
- 
getCompletedAfter
public java.util.Date getCompletedAfter()
 
- 
getCompletedBefore
public java.util.Date getCompletedBefore()
 
- 
completedAfter
public HistoricTaskInstanceReport completedAfter(java.util.Date completedAfter)
Description copied from interface:HistoricTaskInstanceReportSets the completed after date for constraining the query to search for all tasks which are completed after a certain date.
- Specified by:
 completedAfterin interfaceHistoricTaskInstanceReport- Parameters:
 completedAfter- ADateto define the granularity of the report
 
- 
completedBefore
public HistoricTaskInstanceReport completedBefore(java.util.Date completedBefore)
Description copied from interface:HistoricTaskInstanceReportSets the completed before date for constraining the query to search for all tasks which are completed before a certain date.
- Specified by:
 completedBeforein interfaceHistoricTaskInstanceReport- Parameters:
 completedBefore- ADateto define the granularity of the report
 
- 
getTenantCheck
public TenantCheck getTenantCheck()
 
- 
getReportPeriodUnitName
public java.lang.String getReportPeriodUnitName()
 
 - 
 
 -