Examples of findCaseExecution()


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

    CmmnActivityExecution stageX = caseInstance.findCaseExecution("X");

    stageX.manualStart();

    // a case execution associated with Task A
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");
    taskA.manualStart();
    taskA.suspend();

    // a case execution associated with Task B
    CmmnActivityExecution taskB = caseInstance.findCaseExecution("B");
View Full Code Here

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

    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");
    taskA.manualStart();
    taskA.suspend();

    // a case execution associated with Task B
    CmmnActivityExecution taskB = caseInstance.findCaseExecution("B");

    // when
    taskA.resume();

    // then
View Full Code Here

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

    // an active case instance
    CmmnCaseInstance caseInstance = caseDefinition.createCaseInstance();
    caseInstance.create();

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

    // when

    // completing
    milestoneA.occur();
View Full Code Here

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

    assertTrue(milestoneA.isCompleted());
    // ... and the case instance is also completed
    assertTrue(caseInstance.isCompleted());

    // task A is not part of the case instance anymore
    assertNull(caseInstance.findCaseExecution("A"));
    // the case instance has no children
    assertTrue(((CaseExecutionImpl) caseInstance).getCaseExecutions().isEmpty());
  }

}
View Full Code Here

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

    // an active case instance
    CmmnCaseInstance caseInstance = caseDefinition.createCaseInstance();
    caseInstance.create();

    // a case execution associated with Stage X
    CmmnActivityExecution stageX = caseInstance.findCaseExecution("X");

    stageX.manualStart();

    // a case execution associated with Task A
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");
View Full Code Here

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

    CmmnActivityExecution stageX = caseInstance.findCaseExecution("X");

    stageX.manualStart();

    // a case execution associated with Task A
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");

    // a case execution associated with Task B
    CmmnActivityExecution taskB = caseInstance.findCaseExecution("B");

    // when
View Full Code Here

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

    // a case execution associated with Task A
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");

    // a case execution associated with Task B
    CmmnActivityExecution taskB = caseInstance.findCaseExecution("B");

    // when

    caseInstance.suspend();
View Full Code Here

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

    // an active case instance
    CmmnCaseInstance caseInstance = caseDefinition.createCaseInstance();
    caseInstance.create();

    // a case execution associated with Stage X
    CmmnActivityExecution stageX = caseInstance.findCaseExecution("X");

    stageX.manualStart();

    // a case execution associated with Task A
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");
View Full Code Here

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

    CmmnActivityExecution stageX = caseInstance.findCaseExecution("X");

    stageX.manualStart();

    // a case execution associated with Task A
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");

    // a case execution associated with Task B
    CmmnActivityExecution taskB = caseInstance.findCaseExecution("B");

    // when
View Full Code Here

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

    // a case execution associated with Task A
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");

    // a case execution associated with Task B
    CmmnActivityExecution taskB = caseInstance.findCaseExecution("B");

    // when

    stageX.suspend();
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.