Package org.camunda.bpm.engine.runtime

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


    VariableInstanceQuery query = runtimeService
      .createVariableInstanceQuery()
      .variableName("variable")
      .caseInstanceIdIn(caseInstanceId);

    Assert.assertNotNull(query.singleResult());
    Assert.assertEquals("listener-notified-1", query.singleResult().getValue());

    caseService
      .withCaseExecution(humanTaskId)
      .setVariable("variable", "manual-start")
View Full Code Here


      .createVariableInstanceQuery()
      .variableName("variable")
      .caseInstanceIdIn(caseInstanceId);

    Assert.assertNotNull(query.singleResult());
    Assert.assertEquals("listener-notified-1", query.singleResult().getValue());

    caseService
      .withCaseExecution(humanTaskId)
      .setVariable("variable", "manual-start")
      .manualStart();
View Full Code Here

    caseService
      .withCaseExecution(humanTaskId)
      .setVariable("variable", "manual-start")
      .manualStart();

    Assert.assertNotNull(query.singleResult());
    Assert.assertEquals("listener-notified-2", query.singleResult().getValue());

  }

}
View Full Code Here

      .withCaseExecution(humanTaskId)
      .setVariable("variable", "manual-start")
      .manualStart();

    Assert.assertNotNull(query.singleResult());
    Assert.assertEquals("listener-notified-2", query.singleResult().getValue());

  }

}
View Full Code Here

    VariableInstanceQuery query = runtimeService
        .createVariableInstanceQuery()
        .variableName("listener")
        .caseInstanceIdIn(caseInstanceId);

    Assert.assertNotNull(query.singleResult());
    Assert.assertEquals("listener-notified", query.singleResult().getValue());

    caseService
      .withCaseExecution(caseInstanceId)
      .removeVariable("listener")
View Full Code Here

        .createVariableInstanceQuery()
        .variableName("listener")
        .caseInstanceIdIn(caseInstanceId);

    Assert.assertNotNull(query.singleResult());
    Assert.assertEquals("listener-notified", query.singleResult().getValue());

    caseService
      .withCaseExecution(caseInstanceId)
      .removeVariable("listener")
      .execute();
View Full Code Here

    // the delegate expression listener should execute successfully
    caseService
      .withCaseExecution(humanTaskId)
      .complete();

    Assert.assertNotNull(query.singleResult());
    Assert.assertEquals("listener-notified", query.singleResult().getValue());

  }

}
View Full Code Here

    caseService
      .withCaseExecution(humanTaskId)
      .complete();

    Assert.assertNotNull(query.singleResult());
    Assert.assertEquals("listener-notified", query.singleResult().getValue());

  }

}
View Full Code Here

    if(!deserializeObjectValue) {
      baseQuery.disableCustomObjectDeserialization();
    }

    VariableInstance variableInstance = baseQuery.singleResult();

    if(variableInstance != null) {
      return VariableInstanceDto.fromVariableInstance(variableInstance);

    } else {
View Full Code Here

    // when
    VariableInstanceQuery query = runtimeService.createVariableInstanceQuery().variableId(result.getId());

    // then
    assertNotNull(query);
    VariableInstance resultById = query.singleResult();
    assertEquals(result.getId(), resultById.getId());

    // delete task
    taskService.deleteTask(task.getId(), true);
  }
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.