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 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 DatecompletedAfterprotected DatecompletedBeforeprotected PeriodUnitdurationPeriodUnitprotected TenantChecktenantCheck
-
Constructor Summary
Constructors Constructor Description HistoricTaskInstanceReportImpl(CommandExecutor commandExecutor)
-
Method Summary
-
-
-
Field Detail
-
completedAfter
protected Date completedAfter
-
completedBefore
protected 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 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 List<HistoricTaskInstanceReportResult> executeCountByProcessDefinitionKey(CommandContext commandContext)
-
countByTaskName
public 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 List<HistoricTaskInstanceReportResult> executeCountByTaskName(CommandContext commandContext)
-
duration
public 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 List<DurationReportResult> executeDuration(CommandContext commandContext)
-
getCompletedAfter
public Date getCompletedAfter()
-
getCompletedBefore
public Date getCompletedBefore()
-
completedAfter
public HistoricTaskInstanceReport completedAfter(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(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 String getReportPeriodUnitName()
-
-