Examples of VariableInstance


Examples of org.camunda.bpm.engine.runtime.VariableInstance

    DummySerializable dummy = new DummySerializable();
    runtimeService.setVariable(instance.getId(), "dummy", dummy);

    runtimeService.setVariable(instance.getId(), "dummy", 47);

    VariableInstance variableInstance = runtimeService.createVariableInstanceQuery().singleResult();

    assertEquals(47, variableInstance.getValue());
    assertEquals(ValueType.INTEGER.getName(), variableInstance.getTypeName());
  }
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.VariableInstance

  @Deployment
  public void testOutputMultipleMixedValue() {
    ProcessInstance pi = runtimeService.startProcessInstanceByKey("testProcess");

    VariableInstance var1 = runtimeService.createVariableInstanceQuery().variableName("var1").singleResult();
    assertNotNull(var1);
    assertEquals(2l, var1.getValue());
    assertEquals(pi.getId(), var1.getExecutionId());

    VariableInstance var2 = runtimeService.createVariableInstanceQuery().variableName("var2").singleResult();
    assertNotNull(var2);
    assertEquals("stringConstantValue", var2.getValue());
    assertEquals(pi.getId(), var2.getExecutionId());
  }
View Full Code Here

Examples of org.jbpm.context.exe.VariableInstance

      Map<String, VariableInstance> variableInstances = variableContainer.getVariableInstances();
      if (variableInstances == null) continue;

      // loop over all variable instances in the container
      for (Map.Entry<String, VariableInstance> entry : variableInstances.entrySet()) {
        VariableInstance variableInstance = entry.getValue();
        if (!(variableInstance instanceof UnpersistableInstance)) continue;

        // the variable is unpersistable... booom!
        String name = entry.getKey();
        Object value = variableInstance.getValue();
        if (value != null) {
          throw new JbpmException("variable '"
              + name
              + "' in "
              + variableContainer
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.