Package org.camunda.bpm.engine

Examples of org.camunda.bpm.engine.ProcessEngineException


        execution.executeActivity(activity);

      } catch (RuntimeException e) {
        throw e;
      } catch (Exception e) {
        throw new ProcessEngineException("exception while sending signal for event subscription '" + eventSubscription + "':" + e.getMessage(), e);
      }

    } else if (activityBehavior instanceof EventSubProcessStartEventActivityBehavior) {

      try {
        execution.executeActivity(activity.getParentActivity());

      } catch (RuntimeException e) {
        throw e;
      } catch (Exception e) {
        throw new ProcessEngineException("exception while sending signal for event subscription '" + eventSubscription + "':" + e.getMessage(), e);
      }

    } else { // not boundary
      if (activityBehavior instanceof IntermediateCatchEventActivityBehavior) {
        IntermediateCatchEventActivityBehavior catchBehavior = (IntermediateCatchEventActivityBehavior) activityBehavior;
View Full Code Here


      try {
        ProcessApplicationInterface processApplication = processApplicationReference.getProcessApplication();
        return processApplication.getElResolver();

      } catch (ProcessApplicationUnavailableException e) {
        throw new ProcessEngineException("Cannot access process application '"+processApplicationReference.getName()+"'", e);
      }

    } else {
      return null;
    }
View Full Code Here

  public Session openSession() {
    try {
      return managerImplementation.newInstance();
    } catch (Exception e) {
      throw new ProcessEngineException("couldn't instantiate "+managerImplementation.getName()+": "+e.getMessage(), e);
    }
  }
View Full Code Here

    setCharset(email, charSetStr);

    try {
      email.send();
    } catch (EmailException e) {
      throw new ProcessEngineException("Could not send e-mail", e);
    }
    leave(execution);
  }
View Full Code Here

    if (html != null) {
      return createHtmlEmail(text, html);
    } else if (text != null) {
      return createTextOnlyEmail(text);
    } else {
      throw new ProcessEngineException("'html' or 'text' is required to be defined when using the mail activity");
    }
  }
View Full Code Here

      if (text != null) { // for email clients that don't support html
        email.setTextMsg(text);
      }
      return email;
    } catch (EmailException e) {
      throw new ProcessEngineException("Could not create HTML email", e);
    }
  }
View Full Code Here

    SimpleEmail email = new SimpleEmail();
    try {
      email.setMsg(text);
      return email;
    } catch (EmailException e) {
      throw new ProcessEngineException("Could not create text-only email", e);
    }
  }
View Full Code Here

    if (tos != null) {
      for (String t : tos) {
        try {
          email.addTo(t);
        } catch (EmailException e) {
          throw new ProcessEngineException("Could not add " + t + " as recipient", e);
        }
      }
    } else {
      throw new ProcessEngineException("No recipient could be found for sending email");
    }
  }
View Full Code Here

    }

    try {
      email.setFrom(fromAddres);
    } catch (EmailException e) {
      throw new ProcessEngineException("Could not set " + from + " as from address in email", e);
    }
  }
View Full Code Here

    if (ccs != null) {
      for (String c : ccs) {
        try {
          email.addCc(c);
        } catch (EmailException e) {
          throw new ProcessEngineException("Could not add " + c + " as cc recipient", e);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.ProcessEngineException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.