Examples of startTask()


Examples of org.camunda.bpm.engine.cdi.BusinessProcess.startTask()

    BusinessProcess businessProcess = getBeanInstance(BusinessProcess.class);

    Map<String, Object> processVariables = new HashMap<String, Object>();
    businessProcess.setVariable("testKeyString", "testValue");
    businessProcess.startProcessByKey("businessProcessBeanTest", processVariables);   
    businessProcess.startTask(taskService.createTaskQuery().singleResult().getId());
   
    InjectProcessVariable injectProcessVariables = getBeanInstance(InjectProcessVariable.class);
    assertEquals("testValue", injectProcessVariables.testKeyString);

    businessProcess.completeTask();
View Full Code Here

Examples of org.camunda.bpm.engine.cdi.BusinessProcess.startTask()

    String value = "value";
    businessProcess.setVariable("key", value);
    assertEquals(value, businessProcess.getVariable("key"));

    // complete the task
    assertEquals(task.getId(), businessProcess.startTask(task.getId()).getId());
    businessProcess.completeTask();

    // assert the task is completed
    assertNull(processEngine.getTaskService().createTaskQuery().singleResult());
View Full Code Here

Examples of org.camunda.bpm.engine.cdi.BusinessProcess.startTask()


    businessProcess.startProcessByKey("businessProcessBeanTest");
    String taskId = taskService.createTaskQuery().singleResult().getId();

    businessProcess.startTask(taskId);

    // assert that now we can resolve the Task-bean
    assertEquals(taskId, getBeanInstance(Task.class).getId());
    assertEquals(taskId, getBeanInstance("taskId"));
View Full Code Here

Examples of org.camunda.bpm.engine.cdi.BusinessProcess.startTask()

    TaskService taskService = getBeanInstance(TaskService.class);
    Task task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult();

    assertNotNull(task);

    businessProcess.startTask(task.getId());

    businessProcess.setVariableLocal("aVariableName", "aVariableValue");

    // Flushing and re-getting should retain the value (CAM-1806):
    businessProcess.flushVariableCache();
View Full Code Here

Examples of org.camunda.bpm.engine.cdi.BusinessProcess.startTask()

    // start the process
    String processInstanceId = businessProcess.startProcessByKey("businessProcessBeanTest", Collections.singletonMap("key", (Object) "value")).getId();
    assertEquals("value", runtimeService.getVariable(processInstanceId, "key"));

    businessProcess.startTask(taskService.createTaskQuery().singleResult().getId());

    // assignee is not set to jonny
    assertNull(taskService.createTaskQuery().taskAssignee("jonny").singleResult());
    Task task = businessProcess.getTask();
    task.setAssignee("jonny");
View Full Code Here

Examples of org.objectweb.speedo.j2eedo.common.TraceTime.startTask()

          TraceTime traceTime = new TraceTime();
          String action = null;
          Iterator iter = null;

          for (int j = 0, i = 0; i < _nbTx; i++) {
            traceTime.startTask(Thread.currentThread().getName() + ".loop." + i);
            logger.log(BasicLevel.INFO, "Start loop " + i);
            Collections.shuffle(_methodsList);
            iter = _methodsList.iterator();
            boolean deadLock = false;
            String returnStr;
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.