org.camunda.bpm.engine.impl
Class HistoricProcessInstanceReportImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.AuthorizationCheck
      extended by org.camunda.bpm.engine.impl.AbstractReport
          extended by org.camunda.bpm.engine.impl.HistoricProcessInstanceReportImpl
All Implemented Interfaces:
Serializable, HistoricProcessInstanceReport, Command<Object>, Report

public class HistoricProcessInstanceReportImpl
extends AbstractReport
implements HistoricProcessInstanceReport

Author:
Roman Smirnov
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractReport
AbstractReport.ReportType
 
Field Summary
protected  String[] processDefinitionIdIn
           
protected  String[] processDefinitionKeyIn
           
protected  Date startedAfter
           
protected  Date startedBefore
           
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractReport
commandExecutor, reportPeriodUnit, reportType
 
Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
authDefaultPerm, authGroupIds, authUserId, isAuthorizationCheckEnabled, permissionChecks
 
Constructor Summary
HistoricProcessInstanceReportImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 List<DurationReportResult> executeDurationReport(CommandContext commandContext)
           
 String[] getProcessDefinitionIdIn()
           
 String[] getProcessDefinitionKeyIn()
           
 Date getStartedAfter()
           
 Date getStartedBefore()
           
protected  boolean hasExcludingConditions()
          Whether or not the report query has excluding conditions.
 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.
 
Methods inherited from class org.camunda.bpm.engine.impl.AbstractReport
duration, execute, executeDuration, getCommandExecutor, getReportPeriodUnit, getReportPeriodUnitName, getReportType, getReportTypeName, setCommandExecutor
 
Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
addAtomicPermissionCheck, getAuthDefaultPerm, getAuthGroupIds, getAuthUserId, getPermissionChecks, isAuthorizationCheckEnabled, setAtomicPermissionChecks, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthUserId, setPermissionChecks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.engine.query.Report
duration
 

Field Detail

startedAfter

protected Date startedAfter

startedBefore

protected Date startedBefore

processDefinitionIdIn

protected String[] processDefinitionIdIn

processDefinitionKeyIn

protected String[] processDefinitionKeyIn
Constructor Detail

HistoricProcessInstanceReportImpl

public HistoricProcessInstanceReportImpl(CommandExecutor commandExecutor)
Method Detail

startedAfter

public HistoricProcessInstanceReport startedAfter(Date startedAfter)
Description copied from interface: HistoricProcessInstanceReport
Only takes historic process instances into account that were started after the given date.

Specified by:
startedAfter in interface HistoricProcessInstanceReport

startedBefore

public HistoricProcessInstanceReport startedBefore(Date startedBefore)
Description copied from interface: HistoricProcessInstanceReport
Only takes historic process instances into account that were started before the given date.

Specified by:
startedBefore in interface HistoricProcessInstanceReport

processDefinitionIdIn

public HistoricProcessInstanceReport processDefinitionIdIn(String... processDefinitionIds)
Description copied from interface: HistoricProcessInstanceReport
Only takes historic process instances into account for the given process definition ids.

Specified by:
processDefinitionIdIn in interface HistoricProcessInstanceReport

processDefinitionKeyIn

public HistoricProcessInstanceReport processDefinitionKeyIn(String... processDefinitionKeys)
Description copied from interface: HistoricProcessInstanceReport
Only takes historic process instances into account for the given process definition keys.

Specified by:
processDefinitionKeyIn in interface HistoricProcessInstanceReport

hasExcludingConditions

protected boolean hasExcludingConditions()
Description copied from class: AbstractReport
Whether or not the report query has excluding conditions. If the query has excluding conditions, (e.g. started before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.

Overrides:
hasExcludingConditions in class AbstractReport
Returns:
true if the report query does have excluding conditions, false otherwise

executeDurationReport

public List<DurationReportResult> executeDurationReport(CommandContext commandContext)
Specified by:
executeDurationReport in class AbstractReport

getStartedAfter

public Date getStartedAfter()

getStartedBefore

public Date getStartedBefore()

getProcessDefinitionIdIn

public String[] getProcessDefinitionIdIn()

getProcessDefinitionKeyIn

public String[] getProcessDefinitionKeyIn()


Copyright © 2016 camunda services GmbH. All rights reserved.