congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.camunda.bpm.engine.impl.interceptor
Code IndexAdd Tabnine to your IDE (free)

How to use org.camunda.bpm.engine.impl.interceptor

Best Java code snippets using org.camunda.bpm.engine.impl.interceptor (Showing top 20 results out of 315)

origin: camunda/camunda-bpm-platform

protected void closeSessions(CommandInvocationContext commandInvocationContext) {
 for (Session session : sessionList) {
  try {
   session.close();
  } catch (Throwable exception) {
   commandInvocationContext.trySetThrowable(exception);
  }
 }
}
origin: camunda/camunda-bpm-platform

protected void fireCommandFailed(Throwable t) {
 for (CommandContextListener listener : commandContextListeners) {
  try {
   listener.onCommandFailed(this, t);
  }
  catch(Throwable ex) {
   LOG.exceptionWhileInvokingOnCommandFailed(t);
  }
 }
}
origin: camunda/camunda-bpm-platform

protected <T> T execute(Command<T> command) {
 if(commandExecutor != null) {
  return commandExecutor.execute(command);
 } else {
  return command.execute(commandContext);
 }
}
origin: camunda/camunda-bpm-platform

public void execute(CommandContext commandContext) {
 // passed commandContext may be in an inconsistent state
 commandExecutor.execute(new Command<Void>() {
  @Override
  public Void execute(CommandContext commandContext) {
   Map<String, Long> report = reportMetrics();
   boolean isRescheduleNow = shouldRescheduleNow();
   new HistoryCleanupSchedulerCmd(isRescheduleNow, report, configuration, jobId).execute(commandContext);
   return null;
  }
 });
}
origin: camunda/camunda-bpm-platform

@Override
protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequired() {
 List<CommandInterceptor> defaultCommandInterceptorsTxRequired = new ArrayList<CommandInterceptor>();
 defaultCommandInterceptorsTxRequired.add(new LogInterceptor());
 defaultCommandInterceptorsTxRequired.add(new ProcessApplicationContextInterceptor(this));
 defaultCommandInterceptorsTxRequired.add(new JtaTransactionInterceptor(transactionManager, false));
 defaultCommandInterceptorsTxRequired.add(new CommandContextInterceptor(commandContextFactory, this));
 return defaultCommandInterceptorsTxRequired;
}
origin: camunda/camunda-bpm-platform

protected void initCommandContextFactory() {
 if (commandContextFactory == null) {
  commandContextFactory = new CommandContextFactory();
  commandContextFactory.setProcessEngineConfiguration(this);
 }
}
origin: camunda/camunda-bpm-platform

public void bpmnStackTrace(String string) {
 logError(
   "006",
   string);
}
origin: camunda/camunda-bpm-platform

public void debugExecutingAtomicOperation(CoreAtomicOperation<?> executionOperation, CoreExecution execution) {
 logDebug(
   "001",
   "Executing atomic operation {} on {}", executionOperation, execution);
}
origin: camunda/camunda-bpm-platform

protected void fireCommandContextClose() {
 for (CommandContextListener listener : commandContextListeners) {
  listener.onCommandContextClose(this);
 }
}
origin: camunda/camunda-bpm-platform

public long sum() {
 callback = new Command() {
  @Override
  public Object execute(CommandContext commandContext) {
   return commandContext.getMeterLogManager()
    .executeSelectSum(MetricsQueryImpl.this);
  }
 };
 return (Long) commandExecutor.execute(this);
}
origin: camunda/camunda-bpm-platform

protected <T> T execute(Command<T> command) {
 if(commandExecutor != null) {
  return commandExecutor.execute(command);
 } else {
  return command.execute(commandContext);
 }
}
origin: camunda/camunda-bpm-platform

@Override
protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequiresNew() {
 List<CommandInterceptor> defaultCommandInterceptorsTxRequiresNew = new ArrayList<CommandInterceptor>();
 defaultCommandInterceptorsTxRequiresNew.add(new LogInterceptor());
 defaultCommandInterceptorsTxRequiresNew.add(new ProcessApplicationContextInterceptor(this));
 defaultCommandInterceptorsTxRequiresNew.add(new JtaTransactionInterceptor(transactionManager, true));
 defaultCommandInterceptorsTxRequiresNew.add(new CommandContextInterceptor(commandContextFactory, this, true));
 return defaultCommandInterceptorsTxRequiresNew;
}
origin: camunda/camunda-bpm-platform

protected void closeSessions(CommandInvocationContext commandInvocationContext) {
 for (Session session : sessionList) {
  try {
   session.close();
  } catch (Throwable exception) {
   commandInvocationContext.trySetThrowable(exception);
  }
 }
}
origin: camunda/camunda-bpm-platform

protected void fireCommandFailed(Throwable t) {
 for (CommandContextListener listener : commandContextListeners) {
  try {
   listener.onCommandFailed(this, t);
  }
  catch(Throwable ex) {
   LOG.exceptionWhileInvokingOnCommandFailed(t);
  }
 }
}
origin: camunda/camunda-bpm-platform

public List<TaskCountByCandidateGroupResult> taskCountByCandidateGroup() {
 return commandExecutor.execute(new Command<List<TaskCountByCandidateGroupResult>>() {
  @Override
  public List<TaskCountByCandidateGroupResult> execute(CommandContext commandContext) {
   return createTaskCountByCandidateGroupReport(commandContext);
  }
 });
}
origin: camunda/camunda-bpm-platform

@Override
protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequired() {
 List<CommandInterceptor> defaultCommandInterceptorsTxRequired = new ArrayList<CommandInterceptor>();
 defaultCommandInterceptorsTxRequired.add(new LogInterceptor());
 defaultCommandInterceptorsTxRequired.add(new ProcessApplicationContextInterceptor(this));
 defaultCommandInterceptorsTxRequired.add(new JtaTransactionInterceptor(transactionManager, false));
 defaultCommandInterceptorsTxRequired.add(new CommandContextInterceptor(commandContextFactory, this));
 return defaultCommandInterceptorsTxRequired;
}
origin: camunda/camunda-bpm-platform

public Set<String> getRegisteredDeployments() {
 return commandExecutor.execute(new Command<Set<String>>() {
  public Set<String> execute(CommandContext commandContext) {
   commandContext.getAuthorizationManager().checkCamundaAdmin();
   Set<String> registeredDeployments = Context.getProcessEngineConfiguration().getRegisteredDeployments();
   return new HashSet<String>(registeredDeployments);
  }
 });
}
origin: camunda/camunda-bpm-platform

@Override
protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequiresNew() {
 List<CommandInterceptor> defaultCommandInterceptorsTxRequiresNew = new ArrayList<CommandInterceptor>();
 defaultCommandInterceptorsTxRequiresNew.add(new LogInterceptor());
 defaultCommandInterceptorsTxRequiresNew.add(new ProcessApplicationContextInterceptor(this));
 defaultCommandInterceptorsTxRequiresNew.add(new JtaTransactionInterceptor(transactionManager, true));
 defaultCommandInterceptorsTxRequiresNew.add(new CommandContextInterceptor(commandContextFactory, this, true));
 return defaultCommandInterceptorsTxRequiresNew;
}
origin: camunda/camunda-bpm-platform

public String databaseSchemaUpgrade(final Connection connection, final String catalog, final String schema) {
 return commandExecutor.execute(new Command<String>() {
  public String execute(CommandContext commandContext) {
   commandContext.getAuthorizationManager().checkCamundaAdmin();
   DbSqlSessionFactory dbSqlSessionFactory = (DbSqlSessionFactory) commandContext.getSessionFactories().get(DbSqlSession.class);
   DbSqlSession dbSqlSession = new DbSqlSession(dbSqlSessionFactory, connection, catalog, schema);
   commandContext.getSessions().put(DbSqlSession.class, dbSqlSession);
   dbSqlSession.dbSchemaUpdate();
   return "";
  }
 });
}
origin: camunda/camunda-bpm-platform

 @Override
 public T call() throws Exception {
  return next.execute(command);
 }
},
org.camunda.bpm.engine.impl.interceptor

Most used classes

  • CommandExecutor
    The command executor for internal usage/
  • CommandContext
  • Command
  • LogInterceptor
  • CommandContextInterceptor
    Interceptor used for opening the CommandContext and CommandInvocationContext. Since 7.1, this inter
  • CommandInvocationContext,
  • ProcessApplicationContextInterceptor,
  • AtomicOperationInvocation,
  • BpmnStackTrace,
  • CommandContextFactory,
  • CommandContextListener,
  • CommandExecutorImpl,
  • ContextLogger,
  • DelegateInterceptor,
  • JtaTransactionInterceptor$TransactionException,
  • JtaTransactionInterceptor,
  • Session,
  • SessionFactory,
  • TxContextCommandContextFactory
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now