Examples of CaseExecution


Examples of org.camunda.bpm.engine.runtime.CaseExecution

    when(mockCaseService.createCaseInstanceQuery()).thenReturn(mockCaseInstanceQuery);
  }

  private void createCaseExecutionMock() {
    List<CaseExecution> caseExecutions = new ArrayList<CaseExecution>();
    CaseExecution mockCaseExecution = MockProvider.createMockCaseExecution();
    caseExecutions.add(mockCaseExecution);

    CaseExecutionQuery mockCaseExecutionQuery = mock(CaseExecutionQuery.class);
    when(mockCaseExecutionQuery.list()).thenReturn(caseExecutions);
    when(mockCaseService.createCaseExecutionQuery()).thenReturn(mockCaseExecutionQuery);
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.CaseExecution

  @Deployment(resources={"org/camunda/bpm/engine/test/api/cmmn/oneTaskCase.cmmn"})
  public void testSubmitTaskFormForCmmnHumanTask() {
    caseService.createCaseInstanceByKey("oneTaskCase");

    CaseExecution caseExecution = caseService.createCaseExecutionQuery().enabled().singleResult();
    caseService.withCaseExecution(caseExecution.getId()).manualStart();

    Task task = taskService.createTaskQuery().singleResult();

    String stringValue = "some string";
    String serializedValue = "some value";
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.CaseExecution

    // then

    // the corresponding case execution has been also
    // deleted and completed
    CaseExecution caseExecution = caseService
        .createCaseExecutionQuery()
        .activityId("PI_HumanTask_1")
        .singleResult();

    assertNull(caseExecution);
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.CaseExecution

    // then

    // the corresponding case execution has been also
    // deleted and completed
    CaseExecution caseExecution = caseService
        .createCaseExecutionQuery()
        .activityId("PI_Stage_1")
        .singleResult();

    assertNull(caseExecution);
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.CaseExecution

      fail("It should not be possible to complete a case instance containing an active task.");
    } catch (ProcessEngineException e) {}

    // then

    CaseExecution caseExecution = caseService
        .createCaseExecutionQuery()
        .activityId("PI_HumanTask_1")
        .singleResult();

    assertNotNull(caseExecution);
    assertTrue(caseExecution.isActive());

    // the case instance is still active
    CaseInstance caseInstance = caseService
        .createCaseInstanceQuery()
        .singleResult();
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.CaseExecution

      fail("It should not be possible to complete a case instance containing an active stage.");
    } catch (ProcessEngineException e) {}

    // then

    CaseExecution caseExecution = caseService
        .createCaseExecutionQuery()
        .activityId("PI_Stage_1")
        .singleResult();

    assertNotNull(caseExecution);
    assertTrue(caseExecution.isActive());

    // the case instance is still active
    CaseInstance caseInstance = caseService
        .createCaseInstanceQuery()
        .singleResult();
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.CaseExecution

    processInstance = queryProcessInstance();

    assertNotNull(processInstance);
    assertEquals(caseInstanceId, processInstance.getCaseInstanceId());

    CaseExecution processTask = queryCaseExecutionByActivityId(PROCESS_TASK_KEY);
    assertTrue(processTask.isActive());
  }
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.CaseExecution

    processInstance = queryProcessInstance();

    assertNotNull(processInstance);
    assertEquals(caseInstanceId, processInstance.getCaseInstanceId());

    CaseExecution processTask = queryCaseExecutionByActivityId(PROCESS_TASK_KEY);
    assertTrue(processTask.isActive());

    // the case instance has two variables:
    // - aVariableName
    // - anotherVariableName
    List<VariableInstance> result = runtimeService
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.CaseExecution

    processInstance = queryProcessInstance();

    assertNotNull(processInstance);
    assertEquals(caseInstanceId, processInstance.getCaseInstanceId());

    CaseExecution processTask = queryCaseExecutionByActivityId(PROCESS_TASK_KEY);
    assertTrue(processTask.isActive());

    // the case instance has two variables:
    // - aVariableName
    // - anotherVariableName
    List<VariableInstance> result = runtimeService
View Full Code Here

Examples of org.camunda.bpm.engine.runtime.CaseExecution

    processInstance = queryProcessInstance();

    assertNotNull(processInstance);
    assertEquals(caseInstanceId, processInstance.getCaseInstanceId());

    CaseExecution processTask = queryCaseExecutionByActivityId(PROCESS_TASK_KEY);
    assertTrue(processTask.isActive());

    // the case instance has two variables:
    // - aVariableName
    // - anotherVariableName
    List<VariableInstance> result = runtimeService
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.