Package org.camunda.bpm.engine.impl
Class HistoricProcessInstanceReportImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.HistoricProcessInstanceReportImpl
-
- All Implemented Interfaces:
HistoricProcessInstanceReport,Report
public class HistoricProcessInstanceReportImpl extends Object implements HistoricProcessInstanceReport
- Author:
- Roman Smirnov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classHistoricProcessInstanceReportImpl.ExecuteDurationReportCmd
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected PeriodUnitdurationPeriodUnitprotected String[]processDefinitionIdInprotected String[]processDefinitionKeyInprotected DatestartedAfterprotected DatestartedBeforeprotected TenantChecktenantCheck
-
Constructor Summary
Constructors Constructor Description HistoricProcessInstanceReportImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoAuthCheck(CommandContext commandContext)List<DurationReportResult>duration(PeriodUnit periodUnit)Executes the duration report query and returns a list ofDurationReportResults.List<DurationReportResult>executeDurationReport(CommandContext commandContext)String[]getProcessDefinitionIdIn()String[]getProcessDefinitionKeyIn()StringgetReportPeriodUnitName()DategetStartedAfter()DategetStartedBefore()TenantCheckgetTenantCheck()HistoricProcessInstanceReportprocessDefinitionIdIn(String... processDefinitionIds)Only takes historic process instances into account for the given process definition ids.HistoricProcessInstanceReportprocessDefinitionKeyIn(String... processDefinitionKeys)Only takes historic process instances into account for the given process definition keys.HistoricProcessInstanceReportstartedAfter(Date startedAfter)Only takes historic process instances into account that were started after the given date.HistoricProcessInstanceReportstartedBefore(Date startedBefore)Only takes historic process instances into account that were started before the given date.
-
-
-
Field Detail
-
startedAfter
protected Date startedAfter
-
startedBefore
protected Date startedBefore
-
processDefinitionIdIn
protected String[] processDefinitionIdIn
-
processDefinitionKeyIn
protected String[] processDefinitionKeyIn
-
durationPeriodUnit
protected PeriodUnit durationPeriodUnit
-
commandExecutor
protected CommandExecutor commandExecutor
-
tenantCheck
protected TenantCheck tenantCheck
-
-
Constructor Detail
-
HistoricProcessInstanceReportImpl
public HistoricProcessInstanceReportImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
startedAfter
public HistoricProcessInstanceReport startedAfter(Date startedAfter)
Description copied from interface:HistoricProcessInstanceReportOnly takes historic process instances into account that were started after the given date.- Specified by:
startedAfterin interfaceHistoricProcessInstanceReport
-
startedBefore
public HistoricProcessInstanceReport startedBefore(Date startedBefore)
Description copied from interface:HistoricProcessInstanceReportOnly takes historic process instances into account that were started before the given date.- Specified by:
startedBeforein interfaceHistoricProcessInstanceReport
-
processDefinitionIdIn
public HistoricProcessInstanceReport processDefinitionIdIn(String... processDefinitionIds)
Description copied from interface:HistoricProcessInstanceReportOnly takes historic process instances into account for the given process definition ids.- Specified by:
processDefinitionIdInin interfaceHistoricProcessInstanceReport
-
processDefinitionKeyIn
public HistoricProcessInstanceReport processDefinitionKeyIn(String... processDefinitionKeys)
Description copied from interface:HistoricProcessInstanceReportOnly takes historic process instances into account for the given process definition keys.- Specified by:
processDefinitionKeyInin interfaceHistoricProcessInstanceReport
-
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
-
executeDurationReport
public List<DurationReportResult> executeDurationReport(CommandContext commandContext)
-
doAuthCheck
protected void doAuthCheck(CommandContext commandContext)
-
getStartedAfter
public Date getStartedAfter()
-
getStartedBefore
public Date getStartedBefore()
-
getProcessDefinitionIdIn
public String[] getProcessDefinitionIdIn()
-
getProcessDefinitionKeyIn
public String[] getProcessDefinitionKeyIn()
-
getTenantCheck
public TenantCheck getTenantCheck()
-
getReportPeriodUnitName
public String getReportPeriodUnitName()
-
-