Package org.camunda.bpm.engine.cdi.annotation

Examples of org.camunda.bpm.engine.cdi.annotation.ProcessEngineName


public class NamedProcessEngineServicesProducer {
 
  @Produces @ProcessEngineName("")
  public ProcessEngine processEngine(InjectionPoint ip) {
   
    ProcessEngineName annotation = ip.getAnnotated().getAnnotation(ProcessEngineName.class);
    String processEngineName = annotation.value();
    if(processEngineName == null || processEngineName.length() == 0) {
     throw new ProcessEngineException("Cannot determine which process engine to inject: @ProcessEngineName must specify the name of a process engine.");
    }   
    try {
      ProcessEngineService processEngineService = BpmPlatform.getProcessEngineService();
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.cdi.annotation.ProcessEngineName

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.