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) |
Modifier and Type | Method and Description |
---|---|
HistoricTaskInstanceReport |
completedAfter(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(Date completedBefore)
Sets the completed before date for constraining the query to search for all tasks
which are completed before a certain date.
|
List<HistoricTaskInstanceReportResult> |
countByProcessDefinitionKey()
Executes the task report query and returns a list of
HistoricTaskInstanceReportResult s |
List<HistoricTaskInstanceReportResult> |
countByTaskName()
Executes the task report query and returns a list of
HistoricTaskInstanceReportResult s |
protected void |
doAuthCheck(CommandContext commandContext) |
List<DurationReportResult> |
duration(PeriodUnit periodUnit)
Executes the duration report query and returns a list of
DurationReportResult s. |
protected List<HistoricTaskInstanceReportResult> |
executeCountByProcessDefinitionKey(CommandContext commandContext) |
protected List<HistoricTaskInstanceReportResult> |
executeCountByTaskName(CommandContext commandContext) |
protected List<DurationReportResult> |
executeDuration(CommandContext commandContext) |
Date |
getCompletedAfter() |
Date |
getCompletedBefore() |
String |
getReportPeriodUnitName() |
TenantCheck |
getTenantCheck() |
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 © 2019. All rights reserved.