Java Code Examples for org.camunda.bpm.engine.variable.Variables#untypedNullValue()

The following examples show how to use org.camunda.bpm.engine.variable.Variables#untypedNullValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DmnTypeDefinitionImpl.java    From camunda-engine-dmn with Apache License 2.0 5 votes vote down vote up
@Override
public TypedValue transform(Object value) {
  if (value == null) {
    return Variables.untypedNullValue();
  } else {
    return transformNotNullValue(value);
  }
}
 
Example 2
Source File: DmnTypeDefinitionImpl.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Override
public TypedValue transform(Object value) {
  if (value == null) {
    return Variables.untypedNullValue();
  } else {
    return transformNotNullValue(value);
  }
}
 
Example 3
Source File: SingleResultDecisionResultMapper.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Override
public Object mapDecisionResult(DmnDecisionResult decisionResult) {
  try {
    DmnDecisionResultEntries singleResult = decisionResult.getSingleResult();
    if (singleResult != null) {
      return singleResult.getEntryMap();
    } else
      return Variables.untypedNullValue();
  } catch (DmnEngineException e) {
    throw LOG.decisionResultMappingException(decisionResult, this, e);
  }
}
 
Example 4
Source File: SingleEntryDecisionResultMapper.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Override
public Object mapDecisionResult(DmnDecisionResult decisionResult) {
  try {
    TypedValue typedValue = decisionResult.getSingleEntryTyped();
    if (typedValue != null) {
      return typedValue;
    }
    else {
      return Variables.untypedNullValue();
    }
  } catch (DmnEngineException e) {
    throw LOG.decisionResultMappingException(decisionResult, this, e);
  }
}
 
Example 5
Source File: PrimitiveValueTypeImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public TypedValue createValue(Object value, Map<String, Object> valueInfo) {
  return Variables.untypedNullValue(isTransient(valueInfo));
}