Tabnine Logo
Command.execute
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.camunda.bpm.engine.impl.interceptor.Command.execute (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.interceptorCommandexecute

Popular methods of Command

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • onRequestPermissionsResult (Fragment)
    • putExtra (Intent)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • Font (java.awt)
      The Font class represents fonts, which are used to render text in a visible way. A font provides the
    • Point (java.awt)
      A point representing a location in (x,y) coordinate space, specified in integer precision.
    • FileNotFoundException (java.io)
      Thrown when a file specified by a program cannot be found.
    • HashMap (java.util)
      HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
    • Cipher (javax.crypto)
      This class provides access to implementations of cryptographic ciphers for encryption and decryption
    • Logger (org.slf4j)
      The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
    • Top PhpStorm plugins
    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