コード例 #1
0
//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);
            }
        }
コード例 #2
0
        public virtual void notify(DmnDecisionEvaluationEvent evaluationEvent)
        {
            HistoryEvent historyEvent = createHistoryEvent(evaluationEvent);

            if (historyEvent != null)
            {
                Context.ProcessEngineConfiguration.HistoryEventHandler.handleEvent(historyEvent);
            }
        }
コード例 #3
0
        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);
        }
コード例 #4
0
//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);
            }
        }