Package org.camunda.bpm.container.impl.jboss.service

Examples of org.camunda.bpm.container.impl.jboss.service.ProcessApplicationStartService


    AnnotationInstance postDeploy = ProcessApplicationAttachments.getPostDeployDescription(deploymentUnit);
    AnnotationInstance preUndeploy = ProcessApplicationAttachments.getPreUndeployDescription(deploymentUnit);

    // register the managed process application start service
    ProcessApplicationStartService paStartService = new ProcessApplicationStartService(deploymentServiceNames, postDeploy, preUndeploy, module);
    ServiceBuilder<ProcessApplicationStartService> serviceBuilder = phaseContext.getServiceTarget().addService(paStartServiceName, paStartService)
      .addDependency(phaseContext.getPhaseServiceName())
      .addDependency(ServiceNames.forDefaultProcessEngine(), ProcessEngine.class, paStartService.getDefaultProcessEngineInjector())
      .addDependencies(deploymentServiceNames)
      .setInitialMode(Mode.ACTIVE);

    if(paViewServiceName != null) {
      serviceBuilder.addDependency(paViewServiceName, ComponentView.class, paStartService.getPaComponentViewInjector());
    } else {
      serviceBuilder.addDependency(noViewStartService, ProcessApplicationInterface.class, paStartService.getNoViewProcessApplication());
    }

    serviceBuilder.install();
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.container.impl.jboss.service.ProcessApplicationStartService

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.