Package org.camunda.bpm.engine

Examples of org.camunda.bpm.engine.BadUserRequestException


  public PersistentVariableInstance createVariableInstanceFromSerialized(String variableName, Object value, String variableTypeName,
      Map<String, Object> configuration, CoreVariableScope<PersistentVariableInstance> sourceActivityExecution) {
    VariableType type = getVariableTypeByName(variableTypeName);

    if (!type.isAbleToStoreSerializedValue(value, configuration)) {
      throw new BadUserRequestException("Variable type " + variableTypeName + " cannot store provided serialized value and "
          + "configuration");
    }

    VariableInstanceEntity variableInstance = VariableInstanceEntity.createFromSerializedValue(variableName, type, value, configuration);
    VariableInstanceEntity.insert(variableInstance);
View Full Code Here


    if (type == null) {
      String message = "No variable type '" + variableTypeName + "' found";
      if (ProcessEngineVariableType.SPIN.getName().equals(variableTypeName)) {
        message += ". If you want to use the '" + ProcessEngineVariableType.SPIN.getName() + "' type please adjust your 'defaultSerializationFormat' configuration";
      }
      throw new BadUserRequestException(message);
    }

    return type;
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.BadUserRequestException

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.