org.camunda.bpm.engine.impl
Class HistoricTaskInstanceReportImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.HistoricTaskInstanceReportImpl
All Implemented Interfaces:
HistoricTaskInstanceReport, Report

public class HistoricTaskInstanceReportImpl
extends Object
implements HistoricTaskInstanceReport

Author:
Stefan Hentschel.

Field Summary
protected  CommandExecutor commandExecutor
           
protected  Date completedAfter
           
protected  Date completedBefore
           
protected  PeriodUnit durationPeriodUnit
           
protected  TenantCheck tenantCheck
           
 
Constructor Summary
HistoricTaskInstanceReportImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 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 HistoricTaskInstanceReportResults
 List<HistoricTaskInstanceReportResult> countByTaskName()
          Executes the task report query and returns a list of HistoricTaskInstanceReportResults
protected  void doAuthCheck(CommandContext commandContext)
           
 List<DurationReportResult> duration(PeriodUnit periodUnit)
          Executes the duration report query and returns a list of DurationReportResults.
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

completedAfter

protected Date completedAfter

completedBefore

protected Date completedBefore

durationPeriodUnit

protected PeriodUnit durationPeriodUnit

commandExecutor

protected CommandExecutor commandExecutor

tenantCheck

protected TenantCheck tenantCheck
Constructor Detail

HistoricTaskInstanceReportImpl

public HistoricTaskInstanceReportImpl(CommandExecutor commandExecutor)
Method Detail

countByProcessDefinitionKey

public List<HistoricTaskInstanceReportResult> countByProcessDefinitionKey()
Description copied from interface: HistoricTaskInstanceReport

Executes the task report query and returns a list of HistoricTaskInstanceReportResults

Specified by:
countByProcessDefinitionKey in interface HistoricTaskInstanceReport
Returns:
a list of HistoricTaskInstanceReportResults

executeCountByProcessDefinitionKey

protected List<HistoricTaskInstanceReportResult> executeCountByProcessDefinitionKey(CommandContext commandContext)

countByTaskName

public List<HistoricTaskInstanceReportResult> countByTaskName()
Description copied from interface: HistoricTaskInstanceReport

Executes the task report query and returns a list of HistoricTaskInstanceReportResults

Specified by:
countByTaskName in interface HistoricTaskInstanceReport
Returns:
a list of HistoricTaskInstanceReportResults

executeCountByTaskName

protected List<HistoricTaskInstanceReportResult> executeCountByTaskName(CommandContext commandContext)

duration

public List<DurationReportResult> duration(PeriodUnit periodUnit)
Description copied from interface: Report

Executes 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:
duration in interface Report
Parameters:
periodUnit - A period unit to define the granularity of the report.
Returns:
a list of DurationReportResults

executeDuration

protected List<DurationReportResult> executeDuration(CommandContext commandContext)

doAuthCheck

protected void doAuthCheck(CommandContext commandContext)

getCompletedAfter

public Date getCompletedAfter()

getCompletedBefore

public Date getCompletedBefore()

completedAfter

public HistoricTaskInstanceReport completedAfter(Date completedAfter)
Description copied from interface: HistoricTaskInstanceReport

Sets the completed after date for constraining the query to search for all tasks which are completed after a certain date.

Specified by:
completedAfter in interface HistoricTaskInstanceReport
Parameters:
completedAfter - A Date to define the granularity of the report

completedBefore

public HistoricTaskInstanceReport completedBefore(Date completedBefore)
Description copied from interface: HistoricTaskInstanceReport

Sets the completed before date for constraining the query to search for all tasks which are completed before a certain date.

Specified by:
completedBefore in interface HistoricTaskInstanceReport
Parameters:
completedBefore - A Date to define the granularity of the report

getTenantCheck

public TenantCheck getTenantCheck()

getReportPeriodUnitName

public String getReportPeriodUnitName()


Copyright © 2017 camunda services GmbH. All rights reserved.