Class BaseServiceOutputParameter
java.lang.Object
com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
com.flowable.serviceregistry.engine.impl.repository.BaseServiceOutputParameter
- All Implemented Interfaces:
ServiceOutputParameter
,ServiceParameter
public class BaseServiceOutputParameter extends BaseServiceParameter implements ServiceOutputParameter
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
missingValueConfig
protected java.lang.String
missingValueDefault
protected java.lang.String
nullValueConfig
protected java.lang.String
nullValueDefault
protected java.lang.String
path
Fields inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
description, displayName, mappingName, name, type
Fields inherited from interface com.flowable.serviceregistry.api.repository.ServiceOutputParameter
MISSING_VALUE_CONFIG_IGNORE, MISSING_VALUE_CONFIG_SET_TO_DEFAULT, MISSING_VALUE_CONFIG_SET_TO_NULL, MISSING_VALUE_CONFIG_THROW_EXCEPTION, NULL_VALUE_CONFIG_REMOVE, NULL_VALUE_CONFIG_SET_TO_DEFAULT, NULL_VALUE_CONFIG_SET_TO_NULL, NULL_VALUE_CONFIG_THROW_EXCEPTION
-
Constructor Summary
Constructors Constructor Description BaseServiceOutputParameter()
-
Method Summary
Modifier and Type Method Description java.lang.String
getMissingValueConfig()
Returns the configuration on how to handle a missing value returned by the service invocation by this parameter.java.lang.String
getMissingValueDefault()
If the null value config returned byServiceOutputParameter.getMissingValueConfig()
is set toServiceOutputParameter.MISSING_VALUE_CONFIG_SET_TO_DEFAULT
, this method returns the default value to be returned instead of null (might be an expression or any value converted into the target parameter type).java.lang.String
getNullValueConfig()
Returns the configuration on how to handle a null value returned by the service invocation by this parameter.java.lang.String
getNullValueDefault()
If the null value config returned byServiceOutputParameter.getNullValueConfig()
is set toServiceOutputParameter.NULL_VALUE_CONFIG_SET_TO_DEFAULT
, this method returns the default value to be returned instead of null (might be an expression or any value converted into the target parameter type).java.lang.String
getPath()
Returns the optional path where the parameter value will be retrieved out of the returned service invocation result.void
setMissingValueConfig(java.lang.String missingValueConfig)
void
setMissingValueDefault(java.lang.String missingValueDefault)
void
setNullValueConfig(java.lang.String nullValueConfig)
void
setNullValueDefault(java.lang.String nullValueDefault)
void
setPath(java.lang.String path)
Methods inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
getDescription, getDisplayName, getMappingName, getName, getType, setDescription, setDisplayName, setMappingName, setName, setType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.serviceregistry.api.repository.ServiceParameter
getDescription, getDisplayName, getMappingName, getName, getType
-
Field Details
-
path
protected java.lang.String path -
nullValueConfig
protected java.lang.String nullValueConfig -
missingValueConfig
protected java.lang.String missingValueConfig -
nullValueDefault
protected java.lang.String nullValueDefault -
missingValueDefault
protected java.lang.String missingValueDefault
-
-
Constructor Details
-
BaseServiceOutputParameter
public BaseServiceOutputParameter()
-
-
Method Details
-
getPath
public java.lang.String getPath()Description copied from interface:ServiceOutputParameter
Returns the optional path where the parameter value will be retrieved out of the returned service invocation result.- Specified by:
getPath
in interfaceServiceOutputParameter
- Returns:
- the optional path for the result value
-
setPath
public void setPath(java.lang.String path) -
getNullValueConfig
public java.lang.String getNullValueConfig()Description copied from interface:ServiceOutputParameter
Returns the configuration on how to handle a null value returned by the service invocation by this parameter. Might be 'remove', 'setToDefault', 'setToNull' or 'throwException' (see constant definition documentation for details).- Specified by:
getNullValueConfig
in interfaceServiceOutputParameter
- Returns:
- the configuration on how to handle a null value as the output for this parameter
-
setNullValueConfig
public void setNullValueConfig(java.lang.String nullValueConfig) -
getMissingValueConfig
public java.lang.String getMissingValueConfig()Description copied from interface:ServiceOutputParameter
Returns the configuration on how to handle a missing value returned by the service invocation by this parameter. Might be 'ignore', 'setToDefault', 'setToNull' or 'throwException' (see constant definition documentation for details).- Specified by:
getMissingValueConfig
in interfaceServiceOutputParameter
- Returns:
- the configuration on how to handle a missing value as the output for this parameter
-
setMissingValueConfig
public void setMissingValueConfig(java.lang.String missingValueConfig) -
getNullValueDefault
public java.lang.String getNullValueDefault()Description copied from interface:ServiceOutputParameter
If the null value config returned byServiceOutputParameter.getNullValueConfig()
is set toServiceOutputParameter.NULL_VALUE_CONFIG_SET_TO_DEFAULT
, this method returns the default value to be returned instead of null (might be an expression or any value converted into the target parameter type).- Specified by:
getNullValueDefault
in interfaceServiceOutputParameter
- Returns:
- the optional default value to be used if the null value config is actually set to default
-
setNullValueDefault
public void setNullValueDefault(java.lang.String nullValueDefault) -
getMissingValueDefault
public java.lang.String getMissingValueDefault()Description copied from interface:ServiceOutputParameter
If the null value config returned byServiceOutputParameter.getMissingValueConfig()
is set toServiceOutputParameter.MISSING_VALUE_CONFIG_SET_TO_DEFAULT
, this method returns the default value to be returned instead of null (might be an expression or any value converted into the target parameter type).- Specified by:
getMissingValueDefault
in interfaceServiceOutputParameter
- Returns:
- the optional default value to be used if the missing value config is actually set to default
-
setMissingValueDefault
public void setMissingValueDefault(java.lang.String missingValueDefault)
-