Package org.flowable.engine.impl
Class ProcessInstanceHistoryLogImpl
- java.lang.Object
-
- org.flowable.engine.impl.ProcessInstanceHistoryLogImpl
-
- All Implemented Interfaces:
ProcessInstanceHistoryLog
public class ProcessInstanceHistoryLogImpl extends Object implements ProcessInstanceHistoryLog
- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected List<org.flowable.common.engine.api.history.HistoricData>
historicData
protected HistoricProcessInstance
historicProcessInstance
-
Constructor Summary
Constructors Constructor Description ProcessInstanceHistoryLogImpl(HistoricProcessInstance historicProcessInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHistoricData(Collection<? extends org.flowable.common.engine.api.history.HistoricData> historicEvents)
void
addHistoricData(org.flowable.common.engine.api.history.HistoricData historicEvent)
String
getBusinessKey()
The user provided unique reference to this process instance.String
getDeleteReason()
Obtains the reason for the process instance's deletion.Long
getDurationInMillis()
The difference betweenProcessInstanceHistoryLog.getEndTime()
andProcessInstanceHistoryLog.getStartTime()
.Date
getEndTime()
The time the process was ended.List<org.flowable.common.engine.api.history.HistoricData>
getHistoricData()
The trail of data, ordered by date (ascending).String
getId()
The process instance id (== as the id for the runtimeprocess instance
).String
getProcessDefinitionId()
The process definition reference.String
getStartActivityId()
The start activity.Date
getStartTime()
The time the process was started.String
getStartUserId()
The authenticated user that started this process instance.String
getSuperProcessInstanceId()
The process instance id of a potential super process instance or null if no super process instance existsString
getTenantId()
The tenant identifier for the process instance.void
orderHistoricData()
-
-
-
Field Detail
-
historicProcessInstance
protected HistoricProcessInstance historicProcessInstance
-
historicData
protected List<org.flowable.common.engine.api.history.HistoricData> historicData
-
-
Constructor Detail
-
ProcessInstanceHistoryLogImpl
public ProcessInstanceHistoryLogImpl(HistoricProcessInstance historicProcessInstance)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ProcessInstanceHistoryLog
The process instance id (== as the id for the runtimeprocess instance
).- Specified by:
getId
in interfaceProcessInstanceHistoryLog
-
getBusinessKey
public String getBusinessKey()
Description copied from interface:ProcessInstanceHistoryLog
The user provided unique reference to this process instance.- Specified by:
getBusinessKey
in interfaceProcessInstanceHistoryLog
-
getProcessDefinitionId
public String getProcessDefinitionId()
Description copied from interface:ProcessInstanceHistoryLog
The process definition reference.- Specified by:
getProcessDefinitionId
in interfaceProcessInstanceHistoryLog
-
getStartTime
public Date getStartTime()
Description copied from interface:ProcessInstanceHistoryLog
The time the process was started.- Specified by:
getStartTime
in interfaceProcessInstanceHistoryLog
-
getEndTime
public Date getEndTime()
Description copied from interface:ProcessInstanceHistoryLog
The time the process was ended.- Specified by:
getEndTime
in interfaceProcessInstanceHistoryLog
-
getDurationInMillis
public Long getDurationInMillis()
Description copied from interface:ProcessInstanceHistoryLog
The difference betweenProcessInstanceHistoryLog.getEndTime()
andProcessInstanceHistoryLog.getStartTime()
.- Specified by:
getDurationInMillis
in interfaceProcessInstanceHistoryLog
-
getStartUserId
public String getStartUserId()
Description copied from interface:ProcessInstanceHistoryLog
The authenticated user that started this process instance.- Specified by:
getStartUserId
in interfaceProcessInstanceHistoryLog
- See Also:
IdentityService.setAuthenticatedUserId(String)
-
getStartActivityId
public String getStartActivityId()
Description copied from interface:ProcessInstanceHistoryLog
The start activity.- Specified by:
getStartActivityId
in interfaceProcessInstanceHistoryLog
-
getDeleteReason
public String getDeleteReason()
Description copied from interface:ProcessInstanceHistoryLog
Obtains the reason for the process instance's deletion.- Specified by:
getDeleteReason
in interfaceProcessInstanceHistoryLog
-
getSuperProcessInstanceId
public String getSuperProcessInstanceId()
Description copied from interface:ProcessInstanceHistoryLog
The process instance id of a potential super process instance or null if no super process instance exists- Specified by:
getSuperProcessInstanceId
in interfaceProcessInstanceHistoryLog
-
getTenantId
public String getTenantId()
Description copied from interface:ProcessInstanceHistoryLog
The tenant identifier for the process instance.- Specified by:
getTenantId
in interfaceProcessInstanceHistoryLog
-
getHistoricData
public List<org.flowable.common.engine.api.history.HistoricData> getHistoricData()
Description copied from interface:ProcessInstanceHistoryLog
The trail of data, ordered by date (ascending). Gives a replay of the process instance.- Specified by:
getHistoricData
in interfaceProcessInstanceHistoryLog
-
addHistoricData
public void addHistoricData(org.flowable.common.engine.api.history.HistoricData historicEvent)
-
addHistoricData
public void addHistoricData(Collection<? extends org.flowable.common.engine.api.history.HistoricData> historicEvents)
-
orderHistoricData
public void orderHistoricData()
-
-