Examples of ProcessEnginePlugin


Examples of org.camunda.bpm.engine.impl.cfg.ProcessEnginePlugin

  protected void configurePlugins(ProcessEngineConfigurationImpl configuration, ProcessEngineXml processEngineXml, ClassLoader classLoader) {

    for (ProcessEnginePluginXml pluginXml : processEngineXml.getPlugins()) {
      // create plugin instance
      Class<? extends ProcessEnginePlugin> pluginClass = loadClass(pluginXml.getPluginClass(), classLoader, ProcessEnginePlugin.class);
      ProcessEnginePlugin plugin = createInstance(pluginClass);

      // apply configured properties
      Map<String, String> properties = pluginXml.getProperties();
      PropertyHelper.applyProperties(plugin, properties);
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cfg.ProcessEnginePlugin

    // add process engine plugins:
    List<ProcessEnginePluginXml> pluginConfigurations = processEngineMetadata.getPluginConfigurations();

    for (ProcessEnginePluginXml pluginXml : pluginConfigurations) {
      // create plugin instance
      ProcessEnginePlugin plugin = null;
      String pluginClassName = pluginXml.getPluginClass();
      try {
        plugin = (ProcessEnginePlugin) createInstance(pluginClassName);
      } catch(ClassCastException e) {
        throw new ProcessEngineException("Process engine plugin '"+pluginClassName+"' does not implement interface "+ProcessEnginePlugin.class.getName()+"'.");
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin

  @Path("deployments")
  @Produces("application/json")
  public Response getDeployments()
  {

    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      List<DeploymentRef> dpls = dplPlugin.getDeployments();
      return createJsonResponse(
          new DeploymentRefWrapper(dpls)
      );
    }
    else
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin

    return doSuspend(id, false);
  }

  private Response doSuspend(String id, boolean suspended)
  {
    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      processEnginePlugin.suspendDeployment(id, suspended);
      return Response.ok().build();
    }
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin

      @PathParam("id")
      String id
  )
  {

    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      processEnginePlugin.deleteDeployment(id);
      return Response.ok().build();
    }
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin

  @Path("jobs")
  @Produces("application/json")
  public Response getJobs()
  {

    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      List<JobRef> jobs = dplPlugin.getJobs();
      return createJsonResponse(
          new JobRefWrapper(jobs)
      );
    }
    else
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin

      @PathParam("id")
      String id
  )
  {

    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      dplPlugin.executeJob(id);
      return Response.ok().build();
    }
    else
    {
      log.error("ProcessEnginePlugin not available");
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin

  @Path("deployments")
  @Produces("application/json")
  public Response getDeployments()
  {

    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      List<DeploymentRef> dpls = dplPlugin.getDeployments();
      return createJsonResponse(
          new DeploymentRefWrapper(dpls)
      );
    }
    else
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin

    return doSuspend(id, false);
  }

  private Response doSuspend(String id, boolean suspended)
  {
    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      processEnginePlugin.suspendDeployment(id, suspended);
      return Response.ok().build();
    }
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin

      @PathParam("id")
      String id
  )
  {

    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      processEnginePlugin.deleteDeployment(id);
      return Response.ok().build();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.