public class HistoricTaskInstanceReportImpl extends Object implements HistoricTaskInstanceReport
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected Date |
completedAfter |
protected Date |
completedBefore |
protected PeriodUnit |
durationPeriodUnit |
protected TenantCheck |
tenantCheck |
Constructor and Description |
---|
HistoricTaskInstanceReportImpl(CommandExecutor commandExecutor) |
protected Date completedAfter
protected Date completedBefore
protected PeriodUnit durationPeriodUnit
protected CommandExecutor commandExecutor
protected TenantCheck tenantCheck
public HistoricTaskInstanceReportImpl(CommandExecutor commandExecutor)
public List<HistoricTaskInstanceReportResult> countByProcessDefinitionKey()
HistoricTaskInstanceReport
Executes the task report query and returns a list of HistoricTaskInstanceReportResult
s
countByProcessDefinitionKey
in interface HistoricTaskInstanceReport
HistoricTaskInstanceReportResult
sprotected List<HistoricTaskInstanceReportResult> executeCountByProcessDefinitionKey(CommandContext commandContext)
public List<HistoricTaskInstanceReportResult> countByTaskName()
HistoricTaskInstanceReport
Executes the task report query and returns a list of HistoricTaskInstanceReportResult
s
countByTaskName
in interface HistoricTaskInstanceReport
HistoricTaskInstanceReportResult
sprotected List<HistoricTaskInstanceReportResult> executeCountByTaskName(CommandContext commandContext)
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
sprotected List<DurationReportResult> executeDuration(CommandContext commandContext)
protected void doAuthCheck(CommandContext commandContext)
public Date getCompletedAfter()
public Date getCompletedBefore()
public HistoricTaskInstanceReport completedAfter(Date completedAfter)
HistoricTaskInstanceReport
Sets the completed after date for constraining the query to search for all tasks which are completed after a certain date.
completedAfter
in interface HistoricTaskInstanceReport
completedAfter
- A Date
to define the granularity of the reportpublic HistoricTaskInstanceReport completedBefore(Date completedBefore)
HistoricTaskInstanceReport
Sets the completed before date for constraining the query to search for all tasks which are completed before a certain date.
completedBefore
in interface HistoricTaskInstanceReport
completedBefore
- A Date
to define the granularity of the reportpublic TenantCheck getTenantCheck()
public String getReportPeriodUnitName()
Copyright © 2020. All rights reserved.