Package org.camunda.bpm.engine.impl.persistence.entity

Examples of org.camunda.bpm.engine.impl.persistence.entity.ByteArrayEntity


    String serializedValue = null;
    if (valueFields.getTextValue() != null) {
      serializedValue = valueFields.getTextValue();
    } else if (valueFields.getByteArrayValue() != null){
      try {
        ByteArrayEntity byteArray = valueFields.getByteArrayValue();
        serializedValue = new String(byteArray.getBytes(), "UTF-8");
      } catch (UnsupportedEncodingException e) {
        throw new ProcessEngineException("UTF-8 is not a supported encoding", e);
      }
    }
View Full Code Here


  public Object getValue(ValueFields valueFields) {
    if (valueFields.getByteArrayValueId()==null) {
      return null;
    }
    ByteArrayEntity byteArrayValue = valueFields.getByteArrayValue();
    if(byteArrayValue != null) {
      return byteArrayValue.getBytes();
    } else {
      return null;
    }
  }
View Full Code Here

      return null;
    }
  }

  public void setValue(Object value, ValueFields valueFields) {
    ByteArrayEntity byteArray = valueFields.getByteArrayValue();
    byte[] bytes = (byte[]) value;
    if (byteArray==null) {
      valueFields.setByteArrayValue(bytes);

    } else {
      byteArray.setBytes(bytes);
    }
  }
View Full Code Here

    evt.setTextValue(variableInstance.getTextValue());
    evt.setTextValue2(variableInstance.getTextValue2());
    evt.setDoubleValue(variableInstance.getDoubleValue());
    evt.setLongValue(variableInstance.getLongValue());
    if (variableInstance.getByteArrayValueId() != null) {
      ByteArrayEntity byteArrayValue = variableInstance.getByteArrayValue();
      evt.setByteValue(byteArrayValue.getBytes());
    }
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.persistence.entity.ByteArrayEntity

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.