Package org.camunda.bpm.engine.runtime

Examples of org.camunda.bpm.engine.runtime.VariableInstanceQuery.taskIdIn()


    // there should be five variable instance (3 process instance variables) and...
    Assert.assertEquals(5, variableInstanceQuery.count());

    // ...2 task variable
    Assert.assertEquals(2, variableInstanceQuery.taskIdIn(task.getId()).count());

    // add a new task variable
    taskService.setVariableLocal(task.getId(), "aNewLocalTaskVariableName", "aNewLockTaskVariableValue");

    // change task variable value
View Full Code Here


    taskService.setVariableLocal(task.getId(), "aNewLocalTaskVariableName", "aNewLockTaskVariableValue");

    // change task variable value
    taskService.setVariableLocal(task.getId(), "aLocalTaskVariableName", "aNewValue");

    Assert.assertEquals(3, variableInstanceQuery.taskIdIn(task.getId()).count());

    // complete task
    taskService.complete(task.getId());

    variableInstanceQuery = getClearVariableInstanceQuery(pi.getId());
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.