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 java.lang.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 java.lang.String[]processDefinitionIdInprotected java.lang.String[]processDefinitionKeyInprotected java.util.DatestartedAfterprotected java.util.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)java.util.List<DurationReportResult>duration(PeriodUnit periodUnit)Executes the duration report query and returns a list ofDurationReportResults.java.util.List<DurationReportResult>executeDurationReport(CommandContext commandContext)java.lang.String[]getProcessDefinitionIdIn()java.lang.String[]getProcessDefinitionKeyIn()java.lang.StringgetReportPeriodUnitName()java.util.DategetStartedAfter()java.util.DategetStartedBefore()TenantCheckgetTenantCheck()HistoricProcessInstanceReportprocessDefinitionIdIn(java.lang.String... processDefinitionIds)Only takes historic process instances into account for the given process definition ids.HistoricProcessInstanceReportprocessDefinitionKeyIn(java.lang.String... processDefinitionKeys)Only takes historic process instances into account for the given process definition keys.HistoricProcessInstanceReportstartedAfter(java.util.Date startedAfter)Only takes historic process instances into account that were started after the given date.HistoricProcessInstanceReportstartedBefore(java.util.Date startedBefore)Only takes historic process instances into account that were started before the given date.
-
-
-
Field Detail
-
startedAfter
protected java.util.Date startedAfter
-
startedBefore
protected java.util.Date startedBefore
-
processDefinitionIdIn
protected java.lang.String[] processDefinitionIdIn
-
processDefinitionKeyIn
protected java.lang.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(java.util.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(java.util.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(java.lang.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(java.lang.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 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
-
executeDurationReport
public java.util.List<DurationReportResult> executeDurationReport(CommandContext commandContext)
-
doAuthCheck
protected void doAuthCheck(CommandContext commandContext)
-
getStartedAfter
public java.util.Date getStartedAfter()
-
getStartedBefore
public java.util.Date getStartedBefore()
-
getProcessDefinitionIdIn
public java.lang.String[] getProcessDefinitionIdIn()
-
getProcessDefinitionKeyIn
public java.lang.String[] getProcessDefinitionKeyIn()
-
getTenantCheck
public TenantCheck getTenantCheck()
-
getReportPeriodUnitName
public java.lang.String getReportPeriodUnitName()
-
-