Package org.camunda.bpm.engine

Examples of org.camunda.bpm.engine.ProcessEngineException


      } else {
        return appName;
      }
 
    } catch (NamingException e) {
      throw new ProcessEngineException("Could not autodetect EjbProcessApplicationName: "+e.getMessage(), e);
    }
   
   
  }
View Full Code Here


          } catch(Exception e2) {
            log.log(Level.SEVERE, "Exception while rolling back operation " + e2.getMessage(), e2);
          }

          // re-throw the original exception
          throw new ProcessEngineException("Exception while performing '" + name+" => "+currentStep.getName()+"': " + e.getMessage(), e);

        } else {
          log.log(Level.SEVERE, "Exception while performing operation step '" + currentStep.getName() + "': " + e.getMessage(), e);

        }
View Full Code Here

  public synchronized <S> void startService(String name, PlatformService<S> service) {

    ObjectName serviceName = getObjectName(name);

    if (getService(serviceName) != null) {
      throw new ProcessEngineException("Cannot register service " + serviceName + " with MBeans Container, service with same name already registered.");
    }

    final MBeanServer beanServer = getmBeanServer();
    // call the service-provided start behavior
    service.start(this);

    try {
      beanServer.registerMBean(service, serviceName);
      servicesByName.put(serviceName, service);

      Stack<DeploymentOperation> currentOperationContext = activeDeploymentOperations.get();
      if (currentOperationContext != null) {
        currentOperationContext.peek().serviceAdded(name);
      }

    } catch (Exception e) {
      throw new ProcessEngineException("Could not register service " + serviceName + " with the MBean server", e);
    }
  }
View Full Code Here

  public static ObjectName getObjectName(String serviceName) {
    try {
      return new ObjectName(serviceName);
    } catch(Exception e) {
      throw new ProcessEngineException("Could not compose name for '"+serviceName+"'", e);
    }
  }
View Full Code Here

      try {
        mBeanServer.unregisterMBean(serviceName);
        servicesByName.remove(serviceName);

      } catch (Throwable t) {
        throw new ProcessEngineException("Exception while unregistering " + serviceName.getCanonicalName() + " with the MBeanServer", t);
      }
    }

  }
View Full Code Here

        Class<?> parameterClass = setter.getParameterTypes()[0];
        Object value = PropertyHelper.convertToClass(stringValue, parameterClass);
       
        setter.invoke(configuration, value);
      } catch (Exception e) {
        throw new ProcessEngineException("Could not set value for property '"+key + "' on class " + configurationClass.getCanonicalName(), e);
      }
    } else {
      throw new ProcessEngineException("Could not find setter for property '"+ key + "' on class " + configurationClass.getCanonicalName());
    }
  }
View Full Code Here

        }
      };
      try {
        performNotification(execution, notification);
      } catch(Exception e) {
        throw new ProcessEngineException("Exception while notifying process application task listener.", e);
      }
    }
  }
View Full Code Here

    return processEngine;
  }

  protected Collection< ? extends CommandInterceptor> getDefaultCommandInterceptorsTxRequired() {
    if (transactionManager==null) {
      throw new ProcessEngineException("transactionManager is required property for SpringProcessEngineConfiguration, use "+StandaloneProcessEngineConfiguration.class.getName()+" otherwise");
    }

    List<CommandInterceptor> defaultCommandInterceptorsTxRequired = new ArrayList<CommandInterceptor>();
    defaultCommandInterceptorsTxRequired.add(new LogInterceptor());
    defaultCommandInterceptorsTxRequired.add(new SpringTransactionInterceptor(transactionManager, TransactionTemplate.PROPAGATION_REQUIRED));
View Full Code Here

        LOGGER.log(Level.INFO, "Found camunda bpm platform configuration in CATALINA_BASE/CATALINA_HOME conf directory [" + bpmPlatformFileLocation + "] at " + fileLocation.toString());
      }

      return fileLocation;
    } catch (MalformedURLException e) {
      throw new ProcessEngineException("'" + bpmPlatformFileLocation + "' is not a valid camunda bpm platform configuration resource location.", e);
    }
  }
View Full Code Here

            deploymentBuilder.addZipInputStream(new ZipInputStream(resource.getInputStream()));
          } else {
            deploymentBuilder.addInputStream(resourceName, resource.getInputStream());
          }
        } catch (IOException e) {
          throw new ProcessEngineException("couldn't auto deploy resource '"+resource+"': "+e.getMessage(), e);
        }
      }

      deploymentBuilder.deploy();
    }
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.