Package org.jbpm.api

Examples of org.jbpm.api.ExecutionService.startProcessInstanceByKey()


       final ExecutionService execService = getProcessEngine(ctx).getExecutionService();
       Map vars = new HashMap();
       vars.put("processInstanceId", String.valueOf(pi.getId()));
       vars.put("initiator", user.getLogin());

       org.jbpm.api.ProcessInstance instance = execService.startProcessInstanceByKey(config.getBpmDefinitionKey(), vars, externalKey);
       pi.setInternalId(instance.getId());

      
       return pi;
     }
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.