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 String
missingValueConfig
protected String
missingValueDefault
protected NestedOutputMapping
nestedOutputMapping
protected String
nullValueConfig
protected String
nullValueDefault
protected 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMissingValueConfig()
Returns the configuration on how to handle a missing value returned by the service invocation by this parameter.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).NestedOutputMapping
getNestedOutputMapping()
Certain output parameters have a 'nested' definition (e.g.String
getNullValueConfig()
Returns the configuration on how to handle a null value returned by the service invocation by this parameter.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).String
getPath()
Returns the optional path where the parameter value will be retrieved out of the returned service invocation result.void
setMissingValueConfig(String missingValueConfig)
void
setMissingValueDefault(String missingValueDefault)
void
setNestedOutputMapping(NestedOutputMapping nestedOutputMapping)
void
setNullValueConfig(String nullValueConfig)
void
setNullValueDefault(String nullValueDefault)
void
setPath(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 Detail
-
path
protected String path
-
nullValueConfig
protected String nullValueConfig
-
missingValueConfig
protected String missingValueConfig
-
nullValueDefault
protected String nullValueDefault
-
missingValueDefault
protected String missingValueDefault
-
nestedOutputMapping
protected NestedOutputMapping nestedOutputMapping
-
-
Method Detail
-
getPath
public 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(String path)
-
getNullValueConfig
public 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(String nullValueConfig)
-
getMissingValueConfig
public 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(String missingValueConfig)
-
getNullValueDefault
public 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(String nullValueDefault)
-
getMissingValueDefault
public 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(String missingValueDefault)
-
getNestedOutputMapping
public NestedOutputMapping getNestedOutputMapping()
Description copied from interface:ServiceOutputParameter
Certain output parameters have a 'nested' definition (e.g. when a server returns nested json). TheNestedOutputMapping
contains this mapping of the nested data.- Specified by:
getNestedOutputMapping
in interfaceServiceOutputParameter
- Returns:
- the optional nested mapping.
-
setNestedOutputMapping
public void setNestedOutputMapping(NestedOutputMapping nestedOutputMapping)
-
-