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

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


    taskA.manualStart();

    // when

    // completing task A
    taskA.complete();

    // then
    List<String> expectedStateTransitions = new ArrayList<String>();

    // expected state transition:
View Full Code Here


    assertTrue(taskA.isEnabled());

    try {
      // when
      // completing task A
      taskA.complete();
      fail("It should not be possible to complete an enabled task.");
    } catch (CaseIllegalStateTransitionException e) {
      // then

      // task A is still enabled
View Full Code Here

    // task A as a child of the case instance
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");

    taskA.manualStart();
    taskA.complete();

    // task A is completed
    assertTrue(taskA.isCompleted());

    try {
View Full Code Here

    assertTrue(taskA.isCompleted());

    try {
      // when
      // complete A
      taskA.complete();
      fail("It should not be possible to complete an already completed task.");
    } catch (CaseIllegalStateTransitionException e) {
      // then

      // task A is still completed
View Full Code Here

    // task A as a child of the case instance
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");

    taskA.manualStart();
    taskA.complete();

    // task A is completed
    assertTrue(taskA.isCompleted());

    try {
View Full Code Here

    assertTrue(taskA.isTerminated());

    try {
      // when
      // complete A
      taskA.complete();
      fail("It should not be possible to complete an already completed task.");
    } catch (CaseIllegalStateTransitionException e) {
      // then

      // task A is still completed
View Full Code Here

      } catch (Exception e) {
          log.log(Level.SEVERE, "Error while completing sub process of execution " + execution, e);
          throw new ProcessEngineException("Error while completing sub process of execution " + execution, e);
      }
    } else if (superCaseExecution != null) {
      superCaseExecution.complete();
    }
  }

  public String getCanonicalName() {
    return "process-end";
View Full Code Here

    // when ////////////////////////////////////////////////////////////////

    // complete task A
    taskA.complete();
    // complete task B
    taskB.complete();

    // then ////////////////////////////////////////////////////////////////

    List<String> expectedStateTransitions = new ArrayList<String>();
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.