congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Command
Code IndexAdd Tabnine to your IDE (free)

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

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

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
public Object execute(CommandContext commandContext) {
 if (callback != null) {
  return callback.execute(commandContext);
 }
 throw new ProcessEngineException("Query can't be executed. Use either sum or interval to query the metrics.");
}
origin: camunda/camunda-bpm-platform

 public Object execute(CommandContext commandContext) {
  Object result = command.execute(commandContext);
  controllableThread.returnControlToTestThreadAndWait();
  return result;
 }
}
origin: camunda/camunda-bpm-platform

 public <T> T execute(Command<T> command) {
  return command.execute(Context.getCommandContext());
 }
}
origin: camunda/camunda-bpm-platform

@Override
public Object execute(CommandContext commandContext) {
 if (callback != null) {
  return callback.execute(commandContext);
 }
 throw new ProcessEngineException("Query can't be executed. Use either sum or interval to query the metrics.");
}
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 <T> T execute(Command<T> command) {
  return command.execute(Context.getCommandContext());
 }
}
origin: camunda/camunda-bpm-platform

 public T execute(CommandContext commandContext) {
  T result = command.execute(commandContext);
  controllableThread.returnControlToTestThreadAndWait();
  return result;
 }
}
origin: camunda/camunda-bpm-platform

 public Void execute(CommandContext commandContext) {
  JobEntity job = commandContext
      .getJobManager()
      .findJobById(jobId);
  if (job != null) {
   fireHistoricJobFailedEvt(job);
   cmd.execute(commandContext);
  } else {
   LOG.debugFailedJobNotFound(jobId);
  }
  return null;
 }
});
origin: camunda/camunda-bpm-platform

 public Void execute(CommandContext commandContext) {
  JobEntity job = commandContext
      .getJobManager()
      .findJobById(jobId);
  if (job != null) {
   fireHistoricJobFailedEvt(job);
   cmd.execute(commandContext);
  } else {
   LOG.debugFailedJobNotFound(jobId);
  }
  return null;
 }
});
origin: camunda/camunda-bpm-platform

protected void executeCommand(Command<?> command) {
 try {
  if(commandExecutor != null) {
   commandExecutor.execute(command);
  } else {
   command.execute(commandContext);
  }
 } catch (NullValueException e) {
  throw new NotValidException(e.getMessage(), e);
 } catch (CaseExecutionNotFoundException e) {
  throw new NotFoundException(e.getMessage(), e);
 } catch (CaseDefinitionNotFoundException e) {
  throw new NotFoundException(e.getMessage(), e);
 } catch (CaseIllegalStateTransitionException e) {
  throw new NotAllowedException(e.getMessage(), e);
 }
}
origin: camunda/camunda-bpm-platform

protected void executeCommand(Command<?> command) {
 try {
  if(commandExecutor != null) {
   commandExecutor.execute(command);
  } else {
   command.execute(commandContext);
  }
 } catch (NullValueException e) {
  throw new NotValidException(e.getMessage(), e);
 } catch (CaseExecutionNotFoundException e) {
  throw new NotFoundException(e.getMessage(), e);
 } catch (CaseDefinitionNotFoundException e) {
  throw new NotFoundException(e.getMessage(), e);
 } catch (CaseIllegalStateTransitionException e) {
  throw new NotAllowedException(e.getMessage(), e);
 }
}
origin: org.camunda.bpm/camunda-engine

@Override
public Object execute(CommandContext commandContext) {
 if (callback != null) {
  return callback.execute(commandContext);
 }
 throw new ProcessEngineException("Query can't be executed. Use either sum or interval to query the metrics.");
}
origin: org.camunda.bpm.qa.upgrade/camunda-qa-upgrade-scenario-util

 public Object execute(CommandContext commandContext) {
  Object result = command.execute(commandContext);
  controllableThread.returnControlToTestThreadAndWait();
  return result;
 }
}
origin: org.camunda.bpm/camunda-engine

 public <T> T execute(Command<T> command) {
  return command.execute(Context.getCommandContext());
 }
}
origin: org.camunda.bpm/camunda-engine

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

 public T execute(CommandContext commandContext) {
  T result = command.execute(commandContext);
  controllableThread.returnControlToTestThreadAndWait();
  return result;
 }
}
origin: org.camunda.bpm/camunda-engine

 public Void execute(CommandContext commandContext) {
  JobEntity job = commandContext
      .getJobManager()
      .findJobById(jobId);
  if (job != null) {
   fireHistoricJobFailedEvt(job);
   cmd.execute(commandContext);
  } else {
   LOG.debugFailedJobNotFound(jobId);
  }
  return null;
 }
});
origin: org.camunda.bpm/camunda-engine

protected void executeCommand(Command<?> command) {
 try {
  if(commandExecutor != null) {
   commandExecutor.execute(command);
  } else {
   command.execute(commandContext);
  }
 } catch (NullValueException e) {
  throw new NotValidException(e.getMessage(), e);
 } catch (CaseExecutionNotFoundException e) {
  throw new NotFoundException(e.getMessage(), e);
 } catch (CaseDefinitionNotFoundException e) {
  throw new NotFoundException(e.getMessage(), e);
 } catch (CaseIllegalStateTransitionException e) {
  throw new NotAllowedException(e.getMessage(), e);
 }
}
org.camunda.bpm.engine.impl.interceptorCommand

Most used methods

  • execute

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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