Package org.camunda.bpm.engine.history

Examples of org.camunda.bpm.engine.history.HistoricDetail


            .createHistoricActivityInstanceQuery()
            .activityId("startEvent")
            .singleResult()
            .getId();

        HistoricDetail historicDetail = historyService
            .createHistoricDetailQuery()
            .singleResult();

        assertEquals(startEventId, historicDetail.getActivityInstanceId());

      }

    }
  }
View Full Code Here


            .createHistoricActivityInstanceQuery()
            .activityId("messageStartEvent")
            .singleResult()
            .getId();

        HistoricDetail historicDetail = historyService
            .createHistoricDetailQuery()
            .singleResult();

        assertEquals(theStartActivityInstanceId, historicDetail.getActivityInstanceId());

      }
    }

  }
View Full Code Here

          .createHistoricActivityInstanceQuery()
          .activityId("startEvent")
          .singleResult()
          .getId();

      HistoricDetail historicFormUpdate = historyService
          .createHistoricDetailQuery()
          .formFields()
          .singleResult();

      assertNotNull(historicFormUpdate);
      assertEquals(theStartActivityInstanceId, historicFormUpdate.getActivityInstanceId());

    }
  }
View Full Code Here

    ProcessInstance pi = runtimeService.startProcessInstanceByKey("testProcess");

    runtimeService.setVariable(pi.getId(), "foo", "bar");

    HistoricDetail historicDetail = historyService.createHistoricDetailQuery().singleResult();
    assertNotNull(historicDetail.getActivityInstanceId());
  }
View Full Code Here

    String variableName = "someName";
    String variableValue = "someValue";
    taskService.setVariable(newTask.getId(), variableName, variableValue);

    HistoricDetail result = historyService.createHistoricDetailQuery()
      .singleResult();

    HistoricDetail resultById = historyService.createHistoricDetailQuery().detailId(result.getId()).singleResult();
    assertNotNull(resultById);
    assertEquals(result.getId(), resultById.getId());
    assertEquals(variableName, ((HistoricVariableUpdate)resultById).getVariableName());
    assertEquals(variableValue, ((HistoricVariableUpdate)resultById).getValue());
    assertEquals(ValueType.STRING.getName(), ((HistoricVariableUpdate)resultById).getVariableTypeName());
    assertEquals(ValueType.STRING.getName(), ((HistoricVariableUpdate)resultById).getTypeName());
View Full Code Here

    String variableName = "someName";
    String variableValue = "someValue";
    taskService.setVariable(newTask.getId(), variableName, variableValue);

    HistoricDetail result = historyService.createHistoricDetailQuery().detailId("non-existing").singleResult();
    assertNull(result);

    taskService.deleteTask(newTask.getId(), true);
  }
View Full Code Here

    taskService.saveTask(newTask);

    String variableName = "binaryVariableName";
    taskService.setVariable(newTask.getId(), variableName, "some bytes".getBytes());

    HistoricDetail result = historyService.createHistoricDetailQuery()
      .variableUpdates()
      .singleResult();

    assertNotNull(((HistoricVariableUpdate)result).getValue());
View Full Code Here

    taskService.saveTask(newTask);

    String variableName = "binaryVariableName";
    taskService.setVariable(newTask.getId(), variableName, "some bytes".getBytes());

    HistoricDetail result = historyService.createHistoricDetailQuery()
      .disableBinaryFetching()
      .variableUpdates()
      .singleResult();

    assertNull(((HistoricVariableUpdate)result).getValue());
View Full Code Here

    taskService.saveTask(newTask);

    String variableName = "failingSerializable";
    taskService.setVariable(newTask.getId(), variableName, new FailingSerializable());

    HistoricDetail result = historyService.createHistoricDetailQuery()
        .disableBinaryFetching()
        .variableUpdates()
        .singleResult();

    assertNull(((HistoricVariableUpdate)result).getValue());
View Full Code Here

    if (!deserializeObjectValue) {
      query.disableCustomObjectDeserialization();
    }

    HistoricDetail detail = query.singleResult();

    if(detail != null) {
      return HistoricDetailDto.fromHistoricDetail(detail);

    } else {
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.history.HistoricDetail

Copyright © 2018 www.massapicom. 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.