protected void invoke() throws Exception { executionListenerInstance.notify(execution); }
protected void invoke() throws Exception { executionListenerInstance.notify(execution); }
protected void notifyExecutionListener(DelegateExecution execution) throws Exception { ProcessApplicationReference processApp = Context.getCurrentProcessApplication(); try { ProcessApplicationInterface processApplication = processApp.getProcessApplication(); ExecutionListener executionListener = processApplication.getExecutionListener(); if(executionListener != null) { executionListener.notify(execution); } else { LOG.paDoesNotProvideExecutionListener(processApp.getName()); } } catch (ProcessApplicationUnavailableException e) { // Process Application unavailable => ignore silently LOG.cannotInvokeListenerPaUnavailable(processApp.getName(), e); } }
protected void notifyExecutionListener(DelegateExecution execution) throws Exception { ProcessApplicationReference processApp = Context.getCurrentProcessApplication(); try { ProcessApplicationInterface processApplication = processApp.getProcessApplication(); ExecutionListener executionListener = processApplication.getExecutionListener(); if(executionListener != null) { executionListener.notify(execution); } else { LOG.paDoesNotProvideExecutionListener(processApp.getName()); } } catch (ProcessApplicationUnavailableException e) { // Process Application unavailable => ignore silently LOG.cannotInvokeListenerPaUnavailable(processApp.getName(), e); } }
@Override public void notify(final DelegateExecution execution) throws Exception { executionListener.notify(execution); }
@Override public void notify(final DelegateExecution execution) throws Exception { executionListener.notify(execution); }
@Override public void notify(final DelegateExecution execution) throws Exception { mock.notify(execution); }
@Override public void notify(final DelegateExecution execution) throws Exception { mock.notify(execution); }
protected void invoke() throws Exception { executionListenerInstance.notify(execution); }
@Override protected void doVerify(final VerificationMode verificationMode) throws Exception { verify(mock, verificationMode).notify(argumentCaptor.capture()); }
@Override protected void doVerify(final VerificationMode verificationMode) throws Exception { verify(mock, verificationMode).notify(argumentCaptor.capture()); }
private void doAnswer(final ExecutionListener executionListener) { try { Mockito.doAnswer(new ExecutionListenerAnswer(executionListener)).when(mock).notify(any()); } catch (final Exception e) { propagate(e); } }
private void doAnswer(final ExecutionListener executionListener) { try { Mockito.doAnswer(new ExecutionListenerAnswer(executionListener)).when(mock).notify(any()); } catch (final Exception e) { throw new RuntimeException(e); } }
public static Consumer<DelegateExecutionEvent> consumer(final ExecutionListener listener) { return event -> { try { listener.notify(event.getData()); } catch (Exception e) { throw new ProcessEngineException(e); } }; }
protected void notifyExecutionListener(DelegateExecution execution) throws Exception { ProcessApplicationReference processApp = Context.getCurrentProcessApplication(); try { ProcessApplicationInterface processApplication = processApp.getProcessApplication(); ExecutionListener executionListener = processApplication.getExecutionListener(); if(executionListener != null) { executionListener.notify(execution); } else { LOG.paDoesNotProvideExecutionListener(processApp.getName()); } } catch (ProcessApplicationUnavailableException e) { // Process Application unavailable => ignore silently LOG.cannotInvokeListenerPaUnavailable(processApp.getName(), e); } }