Package org.activiti.engine.impl
Class HistoricActivityInstanceQueryImpl
- java.lang.Object
-
- org.activiti.engine.impl.db.ListQueryParameterObject
-
- org.activiti.engine.impl.AbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
-
- org.activiti.engine.impl.HistoricActivityInstanceQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable
,HistoricActivityInstanceQuery
,Command<java.lang.Object>
,Query<HistoricActivityInstanceQuery,HistoricActivityInstance>
public class HistoricActivityInstanceQueryImpl extends AbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance> implements HistoricActivityInstanceQuery
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.activiti.engine.impl.AbstractQuery
AbstractQuery.NullHandlingOnOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityId
protected java.lang.String
activityInstanceId
protected java.lang.String
activityName
protected java.lang.String
activityType
protected java.lang.String
assignee
protected java.lang.String
deleteReason
protected java.lang.String
deleteReasonLike
protected java.lang.String
executionId
protected boolean
finished
protected java.lang.String
processDefinitionId
protected java.lang.String
processInstanceId
protected java.lang.String
tenantId
protected java.lang.String
tenantIdLike
protected boolean
unfinished
protected boolean
withoutTenantId
-
Fields inherited from class org.activiti.engine.impl.AbstractQuery
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Fields inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
firstResult, maxResults, parameter
-
-
Constructor Summary
Constructors Constructor Description HistoricActivityInstanceQueryImpl()
HistoricActivityInstanceQueryImpl(CommandContext commandContext)
HistoricActivityInstanceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoricActivityInstanceQueryImpl
activityId(java.lang.String activityId)
Only select historic activity instances for the given activity (id from BPMN 2.0 XML)HistoricActivityInstanceQueryImpl
activityInstanceId(java.lang.String activityInstanceId)
Only select historic activity instances with the given id (primary key within history tables).HistoricActivityInstanceQueryImpl
activityName(java.lang.String activityName)
Only select historic activity instances for activities with the given nameHistoricActivityInstanceQueryImpl
activityTenantId(java.lang.String tenantId)
Only select historic activity instances that have the given tenant id.HistoricActivityInstanceQueryImpl
activityTenantIdLike(java.lang.String tenantIdLike)
Only select historic activity instances with a tenant id like the given one.HistoricActivityInstanceQueryImpl
activityType(java.lang.String activityType)
Only select historic activity instances for activities with the given activity typeHistoricActivityInstanceQueryImpl
activityWithoutTenantId()
Only select historic activity instances that do not have a tenant id.HistoricActivityInstanceQuery
deleteReason(java.lang.String deleteReason)
Obly select historic activity instances with a specific delete reason.HistoricActivityInstanceQuery
deleteReasonLike(java.lang.String deleteReasonLike)
Obly select historic activity instances with a delete reason that matches the provided parameter.long
executeCount(CommandContext commandContext)
java.util.List<HistoricActivityInstance>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.HistoricActivityInstanceQueryImpl
executionId(java.lang.String executionId)
Only select historic activity instances for the given executionHistoricActivityInstanceQueryImpl
finished()
Only select historic activity instances that are finished.java.lang.String
getActivityId()
java.lang.String
getActivityInstanceId()
java.lang.String
getActivityName()
java.lang.String
getActivityType()
java.lang.String
getAssignee()
java.lang.String
getDeleteReason()
java.lang.String
getDeleteReasonLike()
java.lang.String
getExecutionId()
java.lang.String
getProcessDefinitionId()
java.lang.String
getProcessInstanceId()
java.lang.String
getTenantId()
java.lang.String
getTenantIdLike()
boolean
isFinished()
boolean
isUnfinished()
boolean
isWithoutTenantId()
HistoricActivityInstanceQuery
orderByActivityId()
Order by activityId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
orderByActivityName()
Order by activityName (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
orderByActivityType()
Order by activityType (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
orderByExecutionId()
Order by executionId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
orderByHistoricActivityInstanceDuration()
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
orderByHistoricActivityInstanceEndTime()
Order by end (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
orderByHistoricActivityInstanceId()
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
orderByHistoricActivityInstanceStartTime()
Order by start (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
orderByProcessDefinitionId()
Order by processDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
orderByProcessInstanceId()
Order by processInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricActivityInstanceQueryImpl
processDefinitionId(java.lang.String processDefinitionId)
Only select historic activity instances for the given process definitionHistoricActivityInstanceQueryImpl
processInstanceId(java.lang.String processInstanceId)
Only select historic activity instances with the given process instance.HistoricActivityInstanceQueryImpl
taskAssignee(java.lang.String assignee)
Only select historic activity instances for userTask activities assigned to the given userHistoricActivityInstanceQueryImpl
unfinished()
Only select historic activity instances that are not finished yet.-
Methods inherited from class org.activiti.engine.impl.AbstractQuery
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResult
-
Methods inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
-
-
-
-
Field Detail
-
activityInstanceId
protected java.lang.String activityInstanceId
-
processInstanceId
protected java.lang.String processInstanceId
-
executionId
protected java.lang.String executionId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
activityId
protected java.lang.String activityId
-
activityName
protected java.lang.String activityName
-
activityType
protected java.lang.String activityType
-
assignee
protected java.lang.String assignee
-
tenantId
protected java.lang.String tenantId
-
tenantIdLike
protected java.lang.String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
finished
protected boolean finished
-
unfinished
protected boolean unfinished
-
deleteReason
protected java.lang.String deleteReason
-
deleteReasonLike
protected java.lang.String deleteReasonLike
-
-
Constructor Detail
-
HistoricActivityInstanceQueryImpl
public HistoricActivityInstanceQueryImpl()
-
HistoricActivityInstanceQueryImpl
public HistoricActivityInstanceQueryImpl(CommandContext commandContext)
-
HistoricActivityInstanceQueryImpl
public HistoricActivityInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
-
executeList
public java.util.List<HistoricActivityInstance> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<HistoricActivityInstanceQuery,HistoricActivityInstance>
page
- used if the results must be paged. If null, no paging will be applied.
-
processInstanceId
public HistoricActivityInstanceQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances with the given process instance. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.- Specified by:
processInstanceId
in interfaceHistoricActivityInstanceQuery
-
executionId
public HistoricActivityInstanceQueryImpl executionId(java.lang.String executionId)
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for the given execution- Specified by:
executionId
in interfaceHistoricActivityInstanceQuery
-
processDefinitionId
public HistoricActivityInstanceQueryImpl processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for the given process definition- Specified by:
processDefinitionId
in interfaceHistoricActivityInstanceQuery
-
activityId
public HistoricActivityInstanceQueryImpl activityId(java.lang.String activityId)
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for the given activity (id from BPMN 2.0 XML)- Specified by:
activityId
in interfaceHistoricActivityInstanceQuery
-
activityName
public HistoricActivityInstanceQueryImpl activityName(java.lang.String activityName)
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for activities with the given name- Specified by:
activityName
in interfaceHistoricActivityInstanceQuery
-
activityType
public HistoricActivityInstanceQueryImpl activityType(java.lang.String activityType)
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for activities with the given activity type- Specified by:
activityType
in interfaceHistoricActivityInstanceQuery
-
taskAssignee
public HistoricActivityInstanceQueryImpl taskAssignee(java.lang.String assignee)
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances for userTask activities assigned to the given user- Specified by:
taskAssignee
in interfaceHistoricActivityInstanceQuery
-
finished
public HistoricActivityInstanceQueryImpl finished()
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that are finished.- Specified by:
finished
in interfaceHistoricActivityInstanceQuery
-
unfinished
public HistoricActivityInstanceQueryImpl unfinished()
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that are not finished yet.- Specified by:
unfinished
in interfaceHistoricActivityInstanceQuery
-
deleteReason
public HistoricActivityInstanceQuery deleteReason(java.lang.String deleteReason)
Description copied from interface:HistoricActivityInstanceQuery
Obly select historic activity instances with a specific delete reason.- Specified by:
deleteReason
in interfaceHistoricActivityInstanceQuery
-
deleteReasonLike
public HistoricActivityInstanceQuery deleteReasonLike(java.lang.String deleteReasonLike)
Description copied from interface:HistoricActivityInstanceQuery
Obly select historic activity instances with a delete reason that matches the provided parameter.- Specified by:
deleteReasonLike
in interfaceHistoricActivityInstanceQuery
-
activityTenantId
public HistoricActivityInstanceQueryImpl activityTenantId(java.lang.String tenantId)
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that have the given tenant id.- Specified by:
activityTenantId
in interfaceHistoricActivityInstanceQuery
-
getTenantId
public java.lang.String getTenantId()
-
activityTenantIdLike
public HistoricActivityInstanceQueryImpl activityTenantIdLike(java.lang.String tenantIdLike)
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances with a tenant id like the given one.- Specified by:
activityTenantIdLike
in interfaceHistoricActivityInstanceQuery
-
getTenantIdLike
public java.lang.String getTenantIdLike()
-
activityWithoutTenantId
public HistoricActivityInstanceQueryImpl activityWithoutTenantId()
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances that do not have a tenant id.- Specified by:
activityWithoutTenantId
in interfaceHistoricActivityInstanceQuery
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
orderByHistoricActivityInstanceDuration
public HistoricActivityInstanceQueryImpl orderByHistoricActivityInstanceDuration()
Description copied from interface:HistoricActivityInstanceQuery
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricActivityInstanceDuration
in interfaceHistoricActivityInstanceQuery
-
orderByHistoricActivityInstanceEndTime
public HistoricActivityInstanceQueryImpl orderByHistoricActivityInstanceEndTime()
Description copied from interface:HistoricActivityInstanceQuery
Order by end (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricActivityInstanceEndTime
in interfaceHistoricActivityInstanceQuery
-
orderByExecutionId
public HistoricActivityInstanceQueryImpl orderByExecutionId()
Description copied from interface:HistoricActivityInstanceQuery
Order by executionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByExecutionId
in interfaceHistoricActivityInstanceQuery
-
orderByHistoricActivityInstanceId
public HistoricActivityInstanceQueryImpl orderByHistoricActivityInstanceId()
Description copied from interface:HistoricActivityInstanceQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricActivityInstanceId
in interfaceHistoricActivityInstanceQuery
-
orderByProcessDefinitionId
public HistoricActivityInstanceQueryImpl orderByProcessDefinitionId()
Description copied from interface:HistoricActivityInstanceQuery
Order by processDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceHistoricActivityInstanceQuery
-
orderByProcessInstanceId
public HistoricActivityInstanceQueryImpl orderByProcessInstanceId()
Description copied from interface:HistoricActivityInstanceQuery
Order by processInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceHistoricActivityInstanceQuery
-
orderByHistoricActivityInstanceStartTime
public HistoricActivityInstanceQueryImpl orderByHistoricActivityInstanceStartTime()
Description copied from interface:HistoricActivityInstanceQuery
Order by start (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricActivityInstanceStartTime
in interfaceHistoricActivityInstanceQuery
-
orderByActivityId
public HistoricActivityInstanceQuery orderByActivityId()
Description copied from interface:HistoricActivityInstanceQuery
Order by activityId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityId
in interfaceHistoricActivityInstanceQuery
-
orderByActivityName
public HistoricActivityInstanceQueryImpl orderByActivityName()
Description copied from interface:HistoricActivityInstanceQuery
Order by activityName (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityName
in interfaceHistoricActivityInstanceQuery
-
orderByActivityType
public HistoricActivityInstanceQueryImpl orderByActivityType()
Description copied from interface:HistoricActivityInstanceQuery
Order by activityType (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityType
in interfaceHistoricActivityInstanceQuery
-
orderByTenantId
public HistoricActivityInstanceQueryImpl orderByTenantId()
Description copied from interface:HistoricActivityInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceHistoricActivityInstanceQuery
-
activityInstanceId
public HistoricActivityInstanceQueryImpl activityInstanceId(java.lang.String activityInstanceId)
Description copied from interface:HistoricActivityInstanceQuery
Only select historic activity instances with the given id (primary key within history tables).- Specified by:
activityInstanceId
in interfaceHistoricActivityInstanceQuery
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getExecutionId
public java.lang.String getExecutionId()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getActivityId
public java.lang.String getActivityId()
-
getActivityName
public java.lang.String getActivityName()
-
getActivityType
public java.lang.String getActivityType()
-
getAssignee
public java.lang.String getAssignee()
-
isFinished
public boolean isFinished()
-
isUnfinished
public boolean isUnfinished()
-
getActivityInstanceId
public java.lang.String getActivityInstanceId()
-
getDeleteReason
public java.lang.String getDeleteReason()
-
getDeleteReasonLike
public java.lang.String getDeleteReasonLike()
-
-