public class HistoricProcessInstanceReportImpl extends Object implements HistoricProcessInstanceReport
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected PeriodUnit |
durationPeriodUnit |
protected String[] |
processDefinitionIdIn |
protected String[] |
processDefinitionKeyIn |
protected Date |
startedAfter |
protected Date |
startedBefore |
protected TenantCheck |
tenantCheck |
Constructor and Description |
---|
HistoricProcessInstanceReportImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
protected void |
doAuthCheck(CommandContext commandContext) |
List<DurationReportResult> |
duration(PeriodUnit periodUnit)
Executes the duration report query and returns a list of
DurationReportResult s. |
List<DurationReportResult> |
executeDurationReport(CommandContext commandContext) |
String[] |
getProcessDefinitionIdIn() |
String[] |
getProcessDefinitionKeyIn() |
String |
getReportPeriodUnitName() |
Date |
getStartedAfter() |
Date |
getStartedBefore() |
TenantCheck |
getTenantCheck() |
HistoricProcessInstanceReport |
processDefinitionIdIn(String... processDefinitionIds)
Only takes historic process instances into account for the given process definition ids.
|
HistoricProcessInstanceReport |
processDefinitionKeyIn(String... processDefinitionKeys)
Only takes historic process instances into account for the given process definition keys.
|
HistoricProcessInstanceReport |
startedAfter(Date startedAfter)
Only takes historic process instances into account that were started after the given date.
|
HistoricProcessInstanceReport |
startedBefore(Date startedBefore)
Only takes historic process instances into account that were started before the given date.
|
protected Date startedAfter
protected Date startedBefore
protected String[] processDefinitionIdIn
protected String[] processDefinitionKeyIn
protected PeriodUnit durationPeriodUnit
protected CommandExecutor commandExecutor
protected TenantCheck tenantCheck
public HistoricProcessInstanceReportImpl(CommandExecutor commandExecutor)
public HistoricProcessInstanceReport startedAfter(Date startedAfter)
HistoricProcessInstanceReport
startedAfter
in interface HistoricProcessInstanceReport
public HistoricProcessInstanceReport startedBefore(Date startedBefore)
HistoricProcessInstanceReport
startedBefore
in interface HistoricProcessInstanceReport
public HistoricProcessInstanceReport processDefinitionIdIn(String... processDefinitionIds)
HistoricProcessInstanceReport
processDefinitionIdIn
in interface HistoricProcessInstanceReport
public HistoricProcessInstanceReport processDefinitionKeyIn(String... processDefinitionKeys)
HistoricProcessInstanceReport
processDefinitionKeyIn
in interface HistoricProcessInstanceReport
public List<DurationReportResult> duration(PeriodUnit periodUnit)
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.
duration
in interface Report
periodUnit
- A period unit
to define
the granularity of the report.DurationReportResult
spublic List<DurationReportResult> executeDurationReport(CommandContext commandContext)
protected void doAuthCheck(CommandContext commandContext)
public Date getStartedAfter()
public Date getStartedBefore()
public String[] getProcessDefinitionIdIn()
public String[] getProcessDefinitionKeyIn()
public TenantCheck getTenantCheck()
public String getReportPeriodUnitName()
Copyright © 2019. All rights reserved.