Skip to content

Instantly share code, notes, and snippets.

@motorina0
Created January 12, 2017 09:21
Show Gist options
  • Save motorina0/b6c5e2ccfd030d02071f7bb2a548251d to your computer and use it in GitHub Desktop.
Save motorina0/b6c5e2ccfd030d02071f7bb2a548251d to your computer and use it in GitHub Desktop.
// The time interceptor should be first
CommandExecutorImpl commandExecutor = ((CommandExecutorImpl) processEngineConfiguration.getCommandExecutor());
this.oldFirstCommandInterceptor = commandExecutor.getFirst();
TotalExecutionTimeCommandInterceptor timeCommandInterceptor = new TotalExecutionTimeCommandInterceptor();
timeCommandInterceptor.setNext(oldFirstCommandInterceptor);
commandExecutor.setFirst(timeCommandInterceptor);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment