APISonar


org.camunda.bpm.engine.variable.type.ValueType.DATE

> org > camunda > bpm > engine > variable > type > ValueType > DATE
org APIs camunda APIs bpm APIs engine APIs variable APIs type APIs ValueType APIs DATE APIs

Example 1
public TypedValue convertToFormValue(TypedValue modelValue) {
    if(modelValue.getValue() == null) {
      return Variables.stringValue(null);
    } else if(modelValue.getType() == ValueType.DATE) {
      return Variables.stringValue(dateFormat.format(modelValue.getValue()));
    }
    else {
      throw new ProcessEngineException("Expected value to be of type '"+ValueType.DATE+"' but got '"+modelValue.getType()+"'.");
    }
  }