Class DefaultDmnHistoryEventProducer
java.lang.Object
org.camunda.bpm.engine.impl.history.producer.DefaultDmnHistoryEventProducer
- All Implemented Interfaces:
DmnHistoryEventProducer
- Author:
- Philipp Ossler, Ingo Richtsmeier
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Date
calculateRemovalTime
(HistoricDecisionInstanceEntity historicDecisionInstance, DecisionDefinition decisionDefinition) createDecisionEvaluatedEvt
(DmnDecisionEvaluationEvent evaluationEvent) Creates the history event fired when a decision is evaluated.protected HistoricDecisionInstanceEntity
createDecisionEvaluatedEvt
(DmnDecisionLogicEvaluationEvent evaluationEvent, CaseExecutionEntity execution) protected HistoricDecisionInstanceEntity
createDecisionEvaluatedEvt
(DmnDecisionLogicEvaluationEvent evaluationEvent, HistoricDecisionInstanceEntity rootDecisionInstance) protected HistoricDecisionInstanceEntity
createDecisionEvaluatedEvt
(DmnDecisionLogicEvaluationEvent evaluationEvent, ExecutionEntity execution) createDecisionEvaluatedEvt
(DelegateCaseExecution execution, DmnDecisionEvaluationEvent evaluationEvent) Creates the history event fired when a decision is evaluated while execute a case instance.createDecisionEvaluatedEvt
(DelegateExecution execution, DmnDecisionEvaluationEvent evaluationEvent) Creates the history event fired when a decision is evaluated while execute a process instance.protected List<HistoricDecisionInputInstance>
createHistoricDecisionInputInstances
(DmnDecisionTableEvaluationEvent evaluationEvent, String rootProcessInstanceId, Date removalTime) protected List<HistoricDecisionOutputInstance>
createHistoricDecisionOutputInstances
(DmnDecisionTableEvaluationEvent evaluationEvent, String rootProcessInstanceId, Date removalTime) protected HistoryEvent
createHistoryEvent
(DmnDecisionEvaluationEvent evaluationEvent, DefaultDmnHistoryEventProducer.HistoricDecisionInstanceSupplier supplier) protected String
getCaseDefinitionKey
(CaseExecutionEntity execution) protected DelegateCaseExecution
protected Double
getCollectResultValue
(TypedValue collectResultValue) protected DelegateExecution
protected HistoricProcessInstanceEventEntity
getHistoricRootProcessInstance
(String rootProcessInstanceId) protected String
protected String
getProcessDefinitionKey
(ExecutionEntity execution) protected void
initDecisionInstanceEvent
(HistoricDecisionInstanceEntity event, DmnDecisionLogicEvaluationEvent evaluationEvent, HistoryEventTypes eventType) protected void
initDecisionInstanceEvent
(HistoricDecisionInstanceEntity event, DmnDecisionLogicEvaluationEvent evaluationEvent, HistoryEventTypes eventType, HistoricDecisionInstanceEntity rootDecisionInstance) protected void
initDecisionInstanceEventForDecisionLiteralExpression
(HistoricDecisionInstanceEntity event, DmnDecisionLiteralExpressionEvaluationEvent evaluationEvent) protected void
initDecisionInstanceEventForDecisionTable
(HistoricDecisionInstanceEntity event, DmnDecisionTableEvaluationEvent evaluationEvent) protected boolean
protected HistoricDecisionEvaluationEvent
newDecisionEvaluationEvent
(DmnDecisionEvaluationEvent evaluationEvent) protected HistoricDecisionInstanceEntity
newDecisionInstanceEventEntity
(DmnDecisionLogicEvaluationEvent evaluationEvent) protected HistoricDecisionInstanceEntity
newDecisionInstanceEventEntity
(CaseExecutionEntity executionEntity, DmnDecisionLogicEvaluationEvent evaluationEvent) protected HistoricDecisionInstanceEntity
newDecisionInstanceEventEntity
(ExecutionEntity executionEntity, DmnDecisionLogicEvaluationEvent evaluationEvent) protected void
provideRemovalTime
(HistoryEvent historyEvent) protected String
provideTenantId
(DecisionDefinition decisionDefinition, HistoricDecisionInstanceEntity event) protected void
setReferenceToCaseInstance
(HistoricDecisionInstanceEntity event, CaseExecutionEntity execution) protected void
setReferenceToProcessInstance
(HistoricDecisionInstanceEntity event, ExecutionEntity execution) protected void
-
Field Details
-
LOG
-
-
Constructor Details
-
DefaultDmnHistoryEventProducer
public DefaultDmnHistoryEventProducer()
-
-
Method Details
-
createDecisionEvaluatedEvt
public HistoryEvent createDecisionEvaluatedEvt(DelegateExecution execution, DmnDecisionEvaluationEvent evaluationEvent) Description copied from interface:DmnHistoryEventProducer
Creates the history event fired when a decision is evaluated while execute a process instance.- Specified by:
createDecisionEvaluatedEvt
in interfaceDmnHistoryEventProducer
- Parameters:
execution
- the current executionevaluationEvent
- the evaluation event- Returns:
- the history event
- See Also:
-
createDecisionEvaluatedEvt
public HistoryEvent createDecisionEvaluatedEvt(DelegateCaseExecution execution, DmnDecisionEvaluationEvent evaluationEvent) Description copied from interface:DmnHistoryEventProducer
Creates the history event fired when a decision is evaluated while execute a case instance.- Specified by:
createDecisionEvaluatedEvt
in interfaceDmnHistoryEventProducer
- Parameters:
execution
- the current case executionevaluationEvent
- the evaluation event- Returns:
- the history event
- See Also:
-
createDecisionEvaluatedEvt
Description copied from interface:DmnHistoryEventProducer
Creates the history event fired when a decision is evaluated. If the decision is evaluated while execute a process instance then you should useDmnHistoryEventProducer.createDecisionEvaluatedEvt(DelegateExecution, DmnDecisionEvaluationEvent)
instead.- Specified by:
createDecisionEvaluatedEvt
in interfaceDmnHistoryEventProducer
- Parameters:
evaluationEvent
- the evaluation event- Returns:
- the history event
-
createHistoryEvent
protected HistoryEvent createHistoryEvent(DmnDecisionEvaluationEvent evaluationEvent, DefaultDmnHistoryEventProducer.HistoricDecisionInstanceSupplier supplier) -
createDecisionEvaluatedEvt
protected HistoricDecisionInstanceEntity createDecisionEvaluatedEvt(DmnDecisionLogicEvaluationEvent evaluationEvent, ExecutionEntity execution) -
createDecisionEvaluatedEvt
protected HistoricDecisionInstanceEntity createDecisionEvaluatedEvt(DmnDecisionLogicEvaluationEvent evaluationEvent, CaseExecutionEntity execution) -
createDecisionEvaluatedEvt
protected HistoricDecisionInstanceEntity createDecisionEvaluatedEvt(DmnDecisionLogicEvaluationEvent evaluationEvent, HistoricDecisionInstanceEntity rootDecisionInstance) -
newDecisionEvaluationEvent
protected HistoricDecisionEvaluationEvent newDecisionEvaluationEvent(DmnDecisionEvaluationEvent evaluationEvent) -
newDecisionInstanceEventEntity
protected HistoricDecisionInstanceEntity newDecisionInstanceEventEntity(ExecutionEntity executionEntity, DmnDecisionLogicEvaluationEvent evaluationEvent) -
newDecisionInstanceEventEntity
protected HistoricDecisionInstanceEntity newDecisionInstanceEventEntity(CaseExecutionEntity executionEntity, DmnDecisionLogicEvaluationEvent evaluationEvent) -
newDecisionInstanceEventEntity
protected HistoricDecisionInstanceEntity newDecisionInstanceEventEntity(DmnDecisionLogicEvaluationEvent evaluationEvent) -
initDecisionInstanceEvent
protected void initDecisionInstanceEvent(HistoricDecisionInstanceEntity event, DmnDecisionLogicEvaluationEvent evaluationEvent, HistoryEventTypes eventType) -
initDecisionInstanceEvent
protected void initDecisionInstanceEvent(HistoricDecisionInstanceEntity event, DmnDecisionLogicEvaluationEvent evaluationEvent, HistoryEventTypes eventType, HistoricDecisionInstanceEntity rootDecisionInstance) -
initDecisionInstanceEventForDecisionTable
protected void initDecisionInstanceEventForDecisionTable(HistoricDecisionInstanceEntity event, DmnDecisionTableEvaluationEvent evaluationEvent) -
getCollectResultValue
-
createHistoricDecisionInputInstances
protected List<HistoricDecisionInputInstance> createHistoricDecisionInputInstances(DmnDecisionTableEvaluationEvent evaluationEvent, String rootProcessInstanceId, Date removalTime) -
createHistoricDecisionOutputInstances
protected List<HistoricDecisionOutputInstance> createHistoricDecisionOutputInstances(DmnDecisionTableEvaluationEvent evaluationEvent, String rootProcessInstanceId, Date removalTime) -
initDecisionInstanceEventForDecisionLiteralExpression
protected void initDecisionInstanceEventForDecisionLiteralExpression(HistoricDecisionInstanceEntity event, DmnDecisionLiteralExpressionEvaluationEvent evaluationEvent) -
setReferenceToProcessInstance
protected void setReferenceToProcessInstance(HistoricDecisionInstanceEntity event, ExecutionEntity execution) -
getProcessDefinitionKey
-
setReferenceToCaseInstance
protected void setReferenceToCaseInstance(HistoricDecisionInstanceEntity event, CaseExecutionEntity execution) -
getCaseDefinitionKey
-
setUserId
-
provideTenantId
protected String provideTenantId(DecisionDefinition decisionDefinition, HistoricDecisionInstanceEntity event) -
getExecution
-
getCaseExecution
-
calculateRemovalTime
protected Date calculateRemovalTime(HistoricDecisionInstanceEntity historicDecisionInstance, DecisionDefinition decisionDefinition) -
provideRemovalTime
-
isHistoryRemovalTimeStrategyStart
protected boolean isHistoryRemovalTimeStrategyStart() -
getHistoryRemovalTimeStrategy
-
getHistoricRootProcessInstance
protected HistoricProcessInstanceEventEntity getHistoricRootProcessInstance(String rootProcessInstanceId)
-