//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void notify(org.camunda.bpm.engine.delegate.DelegateCaseExecution caseExecution) throws Exception public virtual void notify(DelegateCaseExecution caseExecution) { HistoryEvent historyEvent = createHistoryEvent(caseExecution); if (historyEvent != null) { Context.ProcessEngineConfiguration.HistoryEventHandler.handleEvent(historyEvent); } }
public virtual void notify(DmnDecisionEvaluationEvent evaluationEvent) { HistoryEvent historyEvent = createHistoryEvent(evaluationEvent); if (historyEvent != null) { Context.ProcessEngineConfiguration.HistoryEventHandler.handleEvent(historyEvent); } }
public static OptimizeHistoricVariableUpdateDto fromHistoricVariableUpdate(HistoricVariableUpdate historicVariableUpdate) { OptimizeHistoricVariableUpdateDto dto = new OptimizeHistoricVariableUpdateDto(); fromHistoricVariableUpdate(dto, historicVariableUpdate); fromHistoricDetail(historicVariableUpdate, dto); if (historicVariableUpdate is HistoryEvent) { HistoryEvent historyEvent = (HistoryEvent)historicVariableUpdate; dto.SequenceCounter = historyEvent.SequenceCounter; } return(dto); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void notify(org.camunda.bpm.engine.delegate.DelegateExecution execution) throws Exception public virtual void notify(DelegateExecution execution) { // get the event handler //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.engine.impl.history.handler.HistoryEventHandler historyEventHandler = org.camunda.bpm.engine.impl.context.Context.getProcessEngineConfiguration().getHistoryEventHandler(); HistoryEventHandler historyEventHandler = Context.ProcessEngineConfiguration.HistoryEventHandler; // delegate creation of the history event to the producer HistoryEvent historyEvent = createHistoryEvent(execution); if (historyEvent != null) { // pass the event to the handler historyEventHandler.handleEvent(historyEvent); } }