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 class
HistoricTaskInstanceReportImpl.ExecuteDurationCmd
protected class
HistoricTaskInstanceReportImpl.HistoricTaskInstanceCountByNameCmd
protected class
HistoricTaskInstanceReportImpl.HistoricTaskInstanceCountByProcessDefinitionKey
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected Date
completedAfter
protected Date
completedBefore
protected PeriodUnit
durationPeriodUnit
protected TenantCheck
tenantCheck
-
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:HistoricTaskInstanceReport
Executes the task report query and returns a list of
HistoricTaskInstanceReportResult
s- Specified by:
countByProcessDefinitionKey
in interfaceHistoricTaskInstanceReport
- Returns:
- a list of
HistoricTaskInstanceReportResult
s
-
executeCountByProcessDefinitionKey
protected List<HistoricTaskInstanceReportResult> executeCountByProcessDefinitionKey(CommandContext commandContext)
-
countByTaskName
public List<HistoricTaskInstanceReportResult> countByTaskName()
Description copied from interface:HistoricTaskInstanceReport
Executes the task report query and returns a list of
HistoricTaskInstanceReportResult
s- Specified by:
countByTaskName
in interfaceHistoricTaskInstanceReport
- Returns:
- a list of
HistoricTaskInstanceReportResult
s
-
executeCountByTaskName
protected List<HistoricTaskInstanceReportResult> executeCountByTaskName(CommandContext commandContext)
-
duration
public List<DurationReportResult> duration(PeriodUnit periodUnit)
Description copied from interface:Report
Executes the duration report query and returns a list of
DurationReportResult
s.Be aware that the resulting report must be interpreted by the caller itself.
- Specified by:
duration
in interfaceReport
- Parameters:
periodUnit
- Aperiod unit
to define the granularity of the report.- Returns:
- a list of
DurationReportResult
s
-
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:HistoricTaskInstanceReport
Sets the completed after date for constraining the query to search for all tasks which are completed after a certain date.
- Specified by:
completedAfter
in interfaceHistoricTaskInstanceReport
- Parameters:
completedAfter
- ADate
to define the granularity of the report
-
completedBefore
public HistoricTaskInstanceReport completedBefore(Date completedBefore)
Description copied from interface:HistoricTaskInstanceReport
Sets the completed before date for constraining the query to search for all tasks which are completed before a certain date.
- Specified by:
completedBefore
in interfaceHistoricTaskInstanceReport
- Parameters:
completedBefore
- ADate
to define the granularity of the report
-
getTenantCheck
public TenantCheck getTenantCheck()
-
getReportPeriodUnitName
public String getReportPeriodUnitName()
-
-