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
Nested ClassesModifier and TypeClassDescriptionprotected static interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DatecalculateRemovalTime(HistoricDecisionInstanceEntity historicDecisionInstance, DecisionDefinition decisionDefinition) createDecisionEvaluatedEvt(org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationEvent evaluationEvent) Creates the history event fired when a decision is evaluated.protected HistoricDecisionInstanceEntitycreateDecisionEvaluatedEvt(org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent, CaseExecutionEntity execution) protected HistoricDecisionInstanceEntitycreateDecisionEvaluatedEvt(org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent, HistoricDecisionInstanceEntity rootDecisionInstance) protected HistoricDecisionInstanceEntitycreateDecisionEvaluatedEvt(org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent, ExecutionEntity execution) createDecisionEvaluatedEvt(DelegateCaseExecution execution, org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationEvent evaluationEvent) Creates the history event fired when a decision is evaluated while execute a case instance.createDecisionEvaluatedEvt(DelegateExecution execution, org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationEvent evaluationEvent) Creates the history event fired when a decision is evaluated while execute a process instance.protected List<HistoricDecisionInputInstance>createHistoricDecisionInputInstances(org.camunda.bpm.dmn.engine.delegate.DmnDecisionTableEvaluationEvent evaluationEvent, String rootProcessInstanceId, Date removalTime) protected List<HistoricDecisionOutputInstance>createHistoricDecisionOutputInstances(org.camunda.bpm.dmn.engine.delegate.DmnDecisionTableEvaluationEvent evaluationEvent, String rootProcessInstanceId, Date removalTime) protected HistoryEventcreateHistoryEvent(org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationEvent evaluationEvent, DefaultDmnHistoryEventProducer.HistoricDecisionInstanceSupplier supplier) protected StringgetCaseDefinitionKey(CaseExecutionEntity execution) protected DelegateCaseExecutionprotected DoublegetCollectResultValue(org.camunda.bpm.engine.variable.value.TypedValue collectResultValue) protected DelegateExecutionprotected HistoricProcessInstanceEventEntitygetHistoricRootProcessInstance(String rootProcessInstanceId) protected Stringprotected StringgetProcessDefinitionKey(ExecutionEntity execution) protected voidinitDecisionInstanceEvent(HistoricDecisionInstanceEntity event, org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent, HistoryEventTypes eventType) protected voidinitDecisionInstanceEvent(HistoricDecisionInstanceEntity event, org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent, HistoryEventTypes eventType, HistoricDecisionInstanceEntity rootDecisionInstance) protected voidinitDecisionInstanceEventForDecisionLiteralExpression(HistoricDecisionInstanceEntity event, org.camunda.bpm.dmn.engine.delegate.DmnDecisionLiteralExpressionEvaluationEvent evaluationEvent) protected voidinitDecisionInstanceEventForDecisionTable(HistoricDecisionInstanceEntity event, org.camunda.bpm.dmn.engine.delegate.DmnDecisionTableEvaluationEvent evaluationEvent) protected booleanprotected HistoricDecisionEvaluationEventnewDecisionEvaluationEvent(org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationEvent evaluationEvent) protected HistoricDecisionInstanceEntitynewDecisionInstanceEventEntity(org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent) protected HistoricDecisionInstanceEntitynewDecisionInstanceEventEntity(CaseExecutionEntity executionEntity, org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent) protected HistoricDecisionInstanceEntitynewDecisionInstanceEventEntity(ExecutionEntity executionEntity, org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent) protected voidprovideRemovalTime(HistoryEvent historyEvent) protected StringprovideTenantId(DecisionDefinition decisionDefinition, HistoricDecisionInstanceEntity event) protected voidsetReferenceToCaseInstance(HistoricDecisionInstanceEntity event, CaseExecutionEntity execution) protected voidsetReferenceToProcessInstance(HistoricDecisionInstanceEntity event, ExecutionEntity execution) protected void
-
Field Details
-
LOG
-
-
Constructor Details
-
DefaultDmnHistoryEventProducer
public DefaultDmnHistoryEventProducer()
-
-
Method Details
-
createDecisionEvaluatedEvt
public HistoryEvent createDecisionEvaluatedEvt(DelegateExecution execution, org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationEvent evaluationEvent) Description copied from interface:DmnHistoryEventProducerCreates the history event fired when a decision is evaluated while execute a process instance.- Specified by:
createDecisionEvaluatedEvtin interfaceDmnHistoryEventProducer- Parameters:
execution- the current executionevaluationEvent- the evaluation event- Returns:
- the history event
- See Also:
-
createDecisionEvaluatedEvt
public HistoryEvent createDecisionEvaluatedEvt(DelegateCaseExecution execution, org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationEvent evaluationEvent) Description copied from interface:DmnHistoryEventProducerCreates the history event fired when a decision is evaluated while execute a case instance.- Specified by:
createDecisionEvaluatedEvtin interfaceDmnHistoryEventProducer- Parameters:
execution- the current case executionevaluationEvent- the evaluation event- Returns:
- the history event
- See Also:
-
createDecisionEvaluatedEvt
public HistoryEvent createDecisionEvaluatedEvt(org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationEvent evaluationEvent) Description copied from interface:DmnHistoryEventProducerCreates 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:
createDecisionEvaluatedEvtin interfaceDmnHistoryEventProducer- Parameters:
evaluationEvent- the evaluation event- Returns:
- the history event
-
createHistoryEvent
protected HistoryEvent createHistoryEvent(org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationEvent evaluationEvent, DefaultDmnHistoryEventProducer.HistoricDecisionInstanceSupplier supplier) -
createDecisionEvaluatedEvt
protected HistoricDecisionInstanceEntity createDecisionEvaluatedEvt(org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent, ExecutionEntity execution) -
createDecisionEvaluatedEvt
protected HistoricDecisionInstanceEntity createDecisionEvaluatedEvt(org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent, CaseExecutionEntity execution) -
createDecisionEvaluatedEvt
protected HistoricDecisionInstanceEntity createDecisionEvaluatedEvt(org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent, HistoricDecisionInstanceEntity rootDecisionInstance) -
newDecisionEvaluationEvent
protected HistoricDecisionEvaluationEvent newDecisionEvaluationEvent(org.camunda.bpm.dmn.engine.delegate.DmnDecisionEvaluationEvent evaluationEvent) -
newDecisionInstanceEventEntity
protected HistoricDecisionInstanceEntity newDecisionInstanceEventEntity(ExecutionEntity executionEntity, org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent) -
newDecisionInstanceEventEntity
protected HistoricDecisionInstanceEntity newDecisionInstanceEventEntity(CaseExecutionEntity executionEntity, org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent) -
newDecisionInstanceEventEntity
protected HistoricDecisionInstanceEntity newDecisionInstanceEventEntity(org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent) -
initDecisionInstanceEvent
protected void initDecisionInstanceEvent(HistoricDecisionInstanceEntity event, org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent, HistoryEventTypes eventType) -
initDecisionInstanceEvent
protected void initDecisionInstanceEvent(HistoricDecisionInstanceEntity event, org.camunda.bpm.dmn.engine.delegate.DmnDecisionLogicEvaluationEvent evaluationEvent, HistoryEventTypes eventType, HistoricDecisionInstanceEntity rootDecisionInstance) -
initDecisionInstanceEventForDecisionTable
protected void initDecisionInstanceEventForDecisionTable(HistoricDecisionInstanceEntity event, org.camunda.bpm.dmn.engine.delegate.DmnDecisionTableEvaluationEvent evaluationEvent) -
getCollectResultValue
protected Double getCollectResultValue(org.camunda.bpm.engine.variable.value.TypedValue collectResultValue) -
createHistoricDecisionInputInstances
protected List<HistoricDecisionInputInstance> createHistoricDecisionInputInstances(org.camunda.bpm.dmn.engine.delegate.DmnDecisionTableEvaluationEvent evaluationEvent, String rootProcessInstanceId, Date removalTime) -
createHistoricDecisionOutputInstances
protected List<HistoricDecisionOutputInstance> createHistoricDecisionOutputInstances(org.camunda.bpm.dmn.engine.delegate.DmnDecisionTableEvaluationEvent evaluationEvent, String rootProcessInstanceId, Date removalTime) -
initDecisionInstanceEventForDecisionLiteralExpression
protected void initDecisionInstanceEventForDecisionLiteralExpression(HistoricDecisionInstanceEntity event, org.camunda.bpm.dmn.engine.delegate.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)
-