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 class
HistoricTaskInstanceReportImpl.ExecuteDurationCmd
protected class
HistoricTaskInstanceReportImpl.HistoricTaskInstanceCountByNameCmd
protected class
HistoricTaskInstanceReportImpl.HistoricTaskInstanceCountByProcessDefinitionKey
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected java.util.Date
completedAfter
protected java.util.Date
completedBefore
protected PeriodUnit
durationPeriodUnit
protected TenantCheck
tenantCheck
-
Constructor Summary
Constructors Constructor Description HistoricTaskInstanceReportImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoricTaskInstanceReport
completedAfter(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.HistoricTaskInstanceReport
completedBefore(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 ofHistoricTaskInstanceReportResult
sjava.util.List<HistoricTaskInstanceReportResult>
countByTaskName()
Executes the task report query and returns a list ofHistoricTaskInstanceReportResult
sjava.util.List<DurationReportResult>
duration(PeriodUnit periodUnit)
Executes the duration report query and returns a list ofDurationReportResult
s.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.Date
getCompletedAfter()
java.util.Date
getCompletedBefore()
java.lang.String
getReportPeriodUnitName()
TenantCheck
getTenantCheck()
-
-
-
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: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 java.util.List<HistoricTaskInstanceReportResult> executeCountByProcessDefinitionKey(CommandContext commandContext)
-
countByTaskName
public java.util.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 java.util.List<HistoricTaskInstanceReportResult> executeCountByTaskName(CommandContext commandContext)
-
duration
public java.util.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 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: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(java.util.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 java.lang.String getReportPeriodUnitName()
-
-