org.camunda.bpm.engine.impl.history.event
Class HistoricDecisionInstanceEntity

java.lang.Object
  extended by org.camunda.bpm.engine.impl.history.event.HistoryEvent
      extended by org.camunda.bpm.engine.impl.history.event.HistoricDecisionInstanceEntity
All Implemented Interfaces:
Serializable, HistoricDecisionInstance, DbEntity

public class HistoricDecisionInstanceEntity
extends HistoryEvent
implements HistoricDecisionInstance

History entry for an evaluated decision.

Author:
Philipp Ossler, Ingo Richtsmeier
See Also:
Serialized Form

Field Summary
protected  String activityId
           
protected  String activityInstanceId
           
protected  Double collectResultValue
           
protected  String decisionDefinitionId
           
protected  String decisionDefinitionKey
           
protected  String decisionDefinitionName
           
protected  Date evaluationTime
           
protected  List<HistoricDecisionInputInstance> inputs
           
protected static EnginePersistenceLogger LOG
           
protected  List<HistoricDecisionOutputInstance> outputs
           
protected  String tenantId
           
protected  String userId
           
 
Fields inherited from class org.camunda.bpm.engine.impl.history.event.HistoryEvent
ACTIVITY_EVENT_TYPE_END, ACTIVITY_EVENT_TYPE_START, ACTIVITY_EVENT_TYPE_UPDATE, caseDefinitionId, caseDefinitionKey, caseExecutionId, caseInstanceId, eventType, executionId, FORM_PROPERTY_UPDATE, id, IDENTITY_LINK_ADD, IDENTITY_LINK_DELETE, INCIDENT_CREATE, INCIDENT_DELETE, INCIDENT_RESOLVE, processDefinitionId, processDefinitionKey, processInstanceId, sequenceCounter, TASK_EVENT_TYPE_COMPLETE, TASK_EVENT_TYPE_CREATE, TASK_EVENT_TYPE_DELETE, TASK_EVENT_TYPE_UPDATE, VARIABLE_EVENT_TYPE_CREATE, VARIABLE_EVENT_TYPE_DELETE, VARIABLE_EVENT_TYPE_UPDATE
 
Constructor Summary
HistoricDecisionInstanceEntity()
           
 
Method Summary
 void addInput(HistoricDecisionInputInstance decisionInputInstance)
           
 void addOutput(HistoricDecisionOutputInstance decisionOutputInstance)
           
 void delete()
           
 String getActivityId()
          The corresponding activity in case the decision was evaluated inside a process or a case.
 String getActivityInstanceId()
          The corresponding activity instance in case the decision was evaluated inside a process or a case.
 Double getCollectResultValue()
          The result of the collect operation if the hit policy 'collect' was used for the decision.
 String getDecisionDefinitionId()
          The decision definition reference.
 String getDecisionDefinitionKey()
          The unique identifier of the decision definition
 String getDecisionDefinitionName()
          The name of the decision definition
 Date getEvaluationTime()
          Time when the decision was evaluated.
 List<HistoricDecisionInputInstance> getInputs()
          The input values of the evaluated decision.
 List<HistoricDecisionOutputInstance> getOutputs()
          The output values of the evaluated decision.
 String getTenantId()
          The id of the tenant this historic decision instance belongs to.
 String getUserId()
          The user ID in case the decision was evaluated by an authenticated user using the decision service outside of an execution context.
 void setActivityId(String activityId)
           
 void setActivityInstanceId(String activityInstanceId)
           
 void setCollectResultValue(Double collectResultValue)
           
 void setDecisionDefinitionId(String decisionDefinitionId)
           
 void setDecisionDefinitionKey(String decisionDefinitionKey)
           
 void setDecisionDefinitionName(String decisionDefinitionName)
           
 void setEvaluationTime(Date evaluationTime)
           
 void setInputs(List<HistoricDecisionInputInstance> inputs)
           
 void setOutputs(List<HistoricDecisionOutputInstance> outputs)
           
 void setTenantId(String tenantId)
           
 void setUserId(String userId)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.history.event.HistoryEvent
getCaseDefinitionId, getCaseDefinitionKey, getCaseExecutionId, getCaseInstanceId, getEventType, getExecutionId, getId, getPersistentState, getProcessDefinitionId, getProcessDefinitionKey, getProcessInstanceId, getSequenceCounter, isEventOfType, setCaseDefinitionId, setCaseDefinitionKey, setCaseExecutionId, setCaseInstanceId, setEventType, setExecutionId, setId, setProcessDefinitionId, setProcessDefinitionKey, setProcessInstanceId, setSequenceCounter, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.engine.history.HistoricDecisionInstance
getCaseDefinitionId, getCaseDefinitionKey, getCaseInstanceId, getId, getProcessDefinitionId, getProcessDefinitionKey, getProcessInstanceId
 

Field Detail

LOG

protected static final EnginePersistenceLogger LOG

decisionDefinitionId

protected String decisionDefinitionId

decisionDefinitionKey

protected String decisionDefinitionKey

decisionDefinitionName

protected String decisionDefinitionName

activityInstanceId

protected String activityInstanceId

activityId

protected String activityId

evaluationTime

protected Date evaluationTime

collectResultValue

protected Double collectResultValue

userId

protected String userId

tenantId

protected String tenantId

inputs

protected List<HistoricDecisionInputInstance> inputs

outputs

protected List<HistoricDecisionOutputInstance> outputs
Constructor Detail

HistoricDecisionInstanceEntity

public HistoricDecisionInstanceEntity()
Method Detail

getDecisionDefinitionId

public String getDecisionDefinitionId()
Description copied from interface: HistoricDecisionInstance
The decision definition reference.

Specified by:
getDecisionDefinitionId in interface HistoricDecisionInstance

setDecisionDefinitionId

public void setDecisionDefinitionId(String decisionDefinitionId)

getDecisionDefinitionKey

public String getDecisionDefinitionKey()
Description copied from interface: HistoricDecisionInstance
The unique identifier of the decision definition

Specified by:
getDecisionDefinitionKey in interface HistoricDecisionInstance

setDecisionDefinitionKey

public void setDecisionDefinitionKey(String decisionDefinitionKey)

getDecisionDefinitionName

public String getDecisionDefinitionName()
Description copied from interface: HistoricDecisionInstance
The name of the decision definition

Specified by:
getDecisionDefinitionName in interface HistoricDecisionInstance

setDecisionDefinitionName

public void setDecisionDefinitionName(String decisionDefinitionName)

getActivityInstanceId

public String getActivityInstanceId()
Description copied from interface: HistoricDecisionInstance
The corresponding activity instance in case the decision was evaluated inside a process or a case.

Specified by:
getActivityInstanceId in interface HistoricDecisionInstance

setActivityInstanceId

public void setActivityInstanceId(String activityInstanceId)

getActivityId

public String getActivityId()
Description copied from interface: HistoricDecisionInstance
The corresponding activity in case the decision was evaluated inside a process or a case.

Specified by:
getActivityId in interface HistoricDecisionInstance

setActivityId

public void setActivityId(String activityId)

getEvaluationTime

public Date getEvaluationTime()
Description copied from interface: HistoricDecisionInstance
Time when the decision was evaluated.

Specified by:
getEvaluationTime in interface HistoricDecisionInstance

setEvaluationTime

public void setEvaluationTime(Date evaluationTime)

getUserId

public String getUserId()
Description copied from interface: HistoricDecisionInstance
The user ID in case the decision was evaluated by an authenticated user using the decision service outside of an execution context.

Specified by:
getUserId in interface HistoricDecisionInstance

setUserId

public void setUserId(String userId)

getTenantId

public String getTenantId()
Description copied from interface: HistoricDecisionInstance
The id of the tenant this historic decision instance belongs to. Can be null if the historic decision instance belongs to no single tenant.

Specified by:
getTenantId in interface HistoricDecisionInstance

setTenantId

public void setTenantId(String tenantId)

getInputs

public List<HistoricDecisionInputInstance> getInputs()
Description copied from interface: HistoricDecisionInstance
The input values of the evaluated decision. The fetching of the input values must be enabled on the query.

Specified by:
getInputs in interface HistoricDecisionInstance
See Also:
HistoricDecisionInstanceQuery.includeInputs()

getOutputs

public List<HistoricDecisionOutputInstance> getOutputs()
Description copied from interface: HistoricDecisionInstance
The output values of the evaluated decision. The fetching of the output values must be enabled on the query.

Specified by:
getOutputs in interface HistoricDecisionInstance
See Also:
HistoricDecisionInstanceQuery.includeOutputs()

setInputs

public void setInputs(List<HistoricDecisionInputInstance> inputs)

setOutputs

public void setOutputs(List<HistoricDecisionOutputInstance> outputs)

delete

public void delete()

addInput

public void addInput(HistoricDecisionInputInstance decisionInputInstance)

addOutput

public void addOutput(HistoricDecisionOutputInstance decisionOutputInstance)

getCollectResultValue

public Double getCollectResultValue()
Description copied from interface: HistoricDecisionInstance
The result of the collect operation if the hit policy 'collect' was used for the decision.

Specified by:
getCollectResultValue in interface HistoricDecisionInstance

setCollectResultValue

public void setCollectResultValue(Double collectResultValue)


Copyright © 2016 camunda services GmbH. All rights reserved.