Package org.camunda.bpm.engine.impl.cmmn.execution

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnCaseInstance.manualComplete()


    assertTrue(taskA.isEnabled());

    // when

    // complete caseInstance (manualCompletion == true)
    caseInstance.manualComplete();

    // then

    List<String> expectedStateTransitions = new ArrayList<String>();
View Full Code Here


    // task A is active
    assertTrue(taskA.isActive());

    try {
      // when
      caseInstance.manualComplete();
      fail("It should not be possible to complete a case instance containing an active task.");
    } catch (CaseIllegalStateTransitionException e) {
      // then

      // the case instance is still active
View Full Code Here

    // task A is enabled
    assertTrue(taskA.isEnabled());

    // case instance is already completed
    caseInstance.manualComplete();

    try {
      // when
      caseInstance.complete();
      fail("It should not be possible to complete an already completed case instance.");
View Full Code Here

    // task A is enabled
    assertTrue(taskA.isEnabled());

    // case instance is already completed
    caseInstance.manualComplete();

    try {
      // when
      caseInstance.manualComplete();
      fail("It should not be possible to complete an already completed case instance.");
View Full Code Here

    // case instance is already completed
    caseInstance.manualComplete();

    try {
      // when
      caseInstance.manualComplete();
      fail("It should not be possible to complete an already completed case instance.");
    } catch (CaseIllegalStateTransitionException e) {
      // then

      // the case instance is still completed
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.