Package org.camunda.bpm.engine.history
Interface HistoricProcessInstance
-
- All Known Implementing Classes:
HistoricProcessInstanceEntity
public interface HistoricProcessInstanceA single execution of a whole process definition that is stored permanently.- Author:
- Christian Stettler, Askar Akhmerov
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSTATE_ACTIVEstatic java.lang.StringSTATE_COMPLETEDstatic java.lang.StringSTATE_EXTERNALLY_TERMINATEDstatic java.lang.StringSTATE_INTERNALLY_TERMINATEDstatic java.lang.StringSTATE_SUSPENDED
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetBusinessKey()The user provided unique reference to this process instance.java.lang.StringgetCaseInstanceId()The case instance id of a potential super case instance or null if no super case instance existsjava.lang.StringgetDeleteReason()Obtains the reason for the process instance's deletion.java.lang.LonggetDurationInMillis()The difference betweengetEndTime()andgetStartTime().java.lang.StringgetEndActivityId()Deprecated.java.util.DategetEndTime()The time the process was ended.java.lang.StringgetId()The process instance id (== as the id for the runtimeprocess instance).java.lang.StringgetProcessDefinitionId()The process definition reference.java.lang.StringgetProcessDefinitionKey()The process definition key reference.java.lang.StringgetProcessDefinitionName()The process definition name.java.lang.IntegergetProcessDefinitionVersion()The process definition version.java.util.DategetRemovalTime()The time the historic process instance will be removed.java.lang.StringgetRootProcessInstanceId()The process instance id of the top-level (root) process instance or null if no root process instance existsjava.lang.StringgetStartActivityId()The start activity.java.util.DategetStartTime()The time the process was started.java.lang.StringgetStartUserId()The authenticated user that started this process instance.java.lang.StringgetState()Return current state of HistoricProcessInstance, following values are recognized during process engine operations: STATE_ACTIVE - running process instance STATE_SUSPENDED - suspended process instances STATE_COMPLETED - completed through normal end event STATE_EXTERNALLY_TERMINATED - terminated externally, for instance through REST API STATE_INTERNALLY_TERMINATED - terminated internally, for instance by terminating boundary eventjava.lang.StringgetSuperCaseInstanceId()The case instance id of a potential super case instance or null if no super case instance existsjava.lang.StringgetSuperProcessInstanceId()The process instance id of a potential super process instance or null if no super process instance existsjava.lang.StringgetTenantId()The id of the tenant this historic process instance belongs to.
-
-
-
Field Detail
-
STATE_ACTIVE
static final java.lang.String STATE_ACTIVE
- See Also:
- Constant Field Values
-
STATE_SUSPENDED
static final java.lang.String STATE_SUSPENDED
- See Also:
- Constant Field Values
-
STATE_COMPLETED
static final java.lang.String STATE_COMPLETED
- See Also:
- Constant Field Values
-
STATE_EXTERNALLY_TERMINATED
static final java.lang.String STATE_EXTERNALLY_TERMINATED
- See Also:
- Constant Field Values
-
STATE_INTERNALLY_TERMINATED
static final java.lang.String STATE_INTERNALLY_TERMINATED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
java.lang.String getId()
The process instance id (== as the id for the runtimeprocess instance).
-
getBusinessKey
java.lang.String getBusinessKey()
The user provided unique reference to this process instance.
-
getProcessDefinitionKey
java.lang.String getProcessDefinitionKey()
The process definition key reference.
-
getProcessDefinitionId
java.lang.String getProcessDefinitionId()
The process definition reference.
-
getProcessDefinitionName
java.lang.String getProcessDefinitionName()
The process definition name.
-
getProcessDefinitionVersion
java.lang.Integer getProcessDefinitionVersion()
The process definition version.
-
getStartTime
java.util.Date getStartTime()
The time the process was started.
-
getEndTime
java.util.Date getEndTime()
The time the process was ended.
-
getRemovalTime
java.util.Date getRemovalTime()
The time the historic process instance will be removed.
-
getDurationInMillis
java.lang.Long getDurationInMillis()
The difference betweengetEndTime()andgetStartTime().
-
getEndActivityId
@Deprecated java.lang.String getEndActivityId()
Deprecated.Reference to the activity in which this process instance ended. Note that a process instance can have multiple end events, in this case it might not be deterministic which activity id will be referenced here. Use aHistoricActivityInstanceQueryinstead to query for end events of the process instance (use the activityTYpe attribute)
-
getStartUserId
java.lang.String getStartUserId()
The authenticated user that started this process instance.
-
getStartActivityId
java.lang.String getStartActivityId()
The start activity.
-
getDeleteReason
java.lang.String getDeleteReason()
Obtains the reason for the process instance's deletion.
-
getSuperProcessInstanceId
java.lang.String getSuperProcessInstanceId()
The process instance id of a potential super process instance or null if no super process instance exists
-
getRootProcessInstanceId
java.lang.String getRootProcessInstanceId()
The process instance id of the top-level (root) process instance or null if no root process instance exists
-
getSuperCaseInstanceId
java.lang.String getSuperCaseInstanceId()
The case instance id of a potential super case instance or null if no super case instance exists
-
getCaseInstanceId
java.lang.String getCaseInstanceId()
The case instance id of a potential super case instance or null if no super case instance exists
-
getTenantId
java.lang.String getTenantId()
The id of the tenant this historic process instance belongs to. Can benullif the historic process instance belongs to no single tenant.
-
getState
java.lang.String getState()
Return current state of HistoricProcessInstance, following values are recognized during process engine operations: STATE_ACTIVE - running process instance STATE_SUSPENDED - suspended process instances STATE_COMPLETED - completed through normal end event STATE_EXTERNALLY_TERMINATED - terminated externally, for instance through REST API STATE_INTERNALLY_TERMINATED - terminated internally, for instance by terminating boundary event
-
-