Package org.camunda.bpm.engine

Examples of org.camunda.bpm.engine.RuntimeService.startProcessInstanceByKey()


      log.info("variables for the started process: " + vars.toString());

      RuntimeService runtimeService = this.processEngine.getRuntimeService();
      ProcessInstance pi ;
      if (null != businessKey && StringUtils.hasText(businessKey)) {
        pi = runtimeService.startProcessInstanceByKey(processKey, businessKey, vars);
        log.info("the business key for the started process is '" + businessKey + "' ");
      } else {
        pi = runtimeService.startProcessInstanceByKey(processKey, vars);
      }
View Full Code Here


      ProcessInstance pi ;
      if (null != businessKey && StringUtils.hasText(businessKey)) {
        pi = runtimeService.startProcessInstanceByKey(processKey, businessKey, vars);
        log.info("the business key for the started process is '" + businessKey + "' ");
      } else {
        pi = runtimeService.startProcessInstanceByKey(processKey, vars);
      }

      String pId = pi.getId();

      if (invocation.getMethod().getReturnType().equals(void.class))
View Full Code Here

      .deploy()
      .getId();
   
    // Start process instance on second process engine -> must use revised process definition
    processDefinitionId = repositoryService2.createProcessDefinitionQuery().singleResult().getId();
    runtimeService2.startProcessInstanceByKey("oneTaskProcess");
    task = taskService2.createTaskQuery().singleResult();
    assertEquals("revised task", task.getName());
   
    // cleanup
    repositoryService1.deleteDeployment(deploymentId, true);
View Full Code Here

 
  @Test
  @Deployment
  public void ruleUsageExample() {
    RuntimeService runtimeService = activitiRule.getRuntimeService();
    runtimeService.startProcessInstanceByKey("ruleUsage");
   
    TaskService taskService = activitiRule.getTaskService();
    Task task = taskService.createTaskQuery().singleResult();
    assertEquals("My Task", task.getName());
   
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.