Package org.activiti.crystalball.simulator

Examples of org.activiti.crystalball.simulator.CrystalballException


    for (SimulationEvent event : events) {
      if (eventTypeToReplay.equals(event.getType()) && processInstanceId.equals(event.getProperty(ProcessInstanceCreateTransformer.PROCESS_INSTANCE_ID))) {
        return event;
      }
    }
    throw new CrystalballException("ProcessInstance to replay start not found");
  }
View Full Code Here


      ObjectMapper objectMapper = new ObjectMapper();
      Map<String, Object> data;
      try {
        data = objectMapper.readValue(event.getData(), new TypeReference<HashMap<String, Object>>() {});
      } catch (IOException e) {
        throw new CrystalballException("unable to parse JSON string.", e);
      }
      String taskIdValue = (String) data.get(Fields.ACTIVITY_ID);
      boolean localScope = false;
      Map<String, Object> variableMap = null;
      if (data.get(Fields.VARIABLES) != null) {
View Full Code Here

      ObjectMapper objectMapper = new ObjectMapper();
      Map<String, Object> data;
      try {
        data = objectMapper.readValue(event.getData(), new TypeReference<HashMap<String, Object>>() {});
      } catch (IOException e) {
        throw new CrystalballException("unable to parse JSON string.", e);
      }
      String processDefinitionId = (String) data.get(Fields.PROCESS_DEFINITION_ID);
      Map<String, Object> variableMap = (Map<String, Object>) data.get(Fields.VARIABLES);
      String businessKeyValue = (String) data.get(Fields.BUSINESS_KEY);
      String processInstanceId= (String) data.get(Fields.PROCESS_INSTANCE_ID);
View Full Code Here

TOP

Related Classes of org.activiti.crystalball.simulator.CrystalballException

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.