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

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


    assertTrue(taskA.isEnabled());

    try {
      // when
      // complete caseInstance
      caseInstance.complete();
    } catch (Exception e) {
      // then
      // case instance is still active
      assertTrue(caseInstance.isActive());
View Full Code Here


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

    try {
      // when
      caseInstance.complete();
      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

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

    try {
      // when
      caseInstance.complete();
      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.