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 BooleanerrorParameterprotected StringmissingValueConfigprotected StringmissingValueDefaultprotected NestedOutputMappingnestedOutputMappingprotected StringnullValueConfigprotected StringnullValueDefaultprotected Stringpathprotected Stringsource-
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 BooleangetErrorParameter()Returns whether this ServiceOutputParameter is only used for handling errorsStringgetMissingValueConfig()Returns the configuration on how to handle a missing value returned by the service invocation by this parameter.StringgetMissingValueDefault()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).NestedOutputMappinggetNestedOutputMapping()Certain output parameters have a 'nested' definition (e.g.StringgetNullValueConfig()Returns the configuration on how to handle a null value returned by the service invocation by this parameter.StringgetNullValueDefault()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).StringgetPath()Returns the optional path where the parameter value will be retrieved out of the returned service invocation result.StringgetSource()Returns the optional source where the parameter value will be retrieved from of the returned service invocation result.voidsetErrorParameter(Boolean errorParameter)voidsetMissingValueConfig(String missingValueConfig)voidsetMissingValueDefault(String missingValueDefault)voidsetNestedOutputMapping(NestedOutputMapping nestedOutputMapping)voidsetNullValueConfig(String nullValueConfig)voidsetNullValueDefault(String nullValueDefault)voidsetPath(String path)voidsetSource(String source)-
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
-
source
protected String source
-
errorParameter
protected Boolean errorParameter
-
nestedOutputMapping
protected NestedOutputMapping nestedOutputMapping
-
-
Method Detail
-
getPath
public String getPath()
Description copied from interface:ServiceOutputParameterReturns the optional path where the parameter value will be retrieved out of the returned service invocation result.- Specified by:
getPathin interfaceServiceOutputParameter- Returns:
- the optional path for the result value
-
setPath
public void setPath(String path)
-
getNullValueConfig
public String getNullValueConfig()
Description copied from interface:ServiceOutputParameterReturns 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:
getNullValueConfigin 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:ServiceOutputParameterReturns 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:
getMissingValueConfigin 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:ServiceOutputParameterIf 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:
getNullValueDefaultin 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:ServiceOutputParameterIf 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:
getMissingValueDefaultin 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:ServiceOutputParameterCertain output parameters have a 'nested' definition (e.g. when a server returns nested json). TheNestedOutputMappingcontains this mapping of the nested data.- Specified by:
getNestedOutputMappingin interfaceServiceOutputParameter- Returns:
- the optional nested mapping.
-
setNestedOutputMapping
public void setNestedOutputMapping(NestedOutputMapping nestedOutputMapping)
-
getSource
public String getSource()
Description copied from interface:ServiceOutputParameterReturns the optional source where the parameter value will be retrieved from of the returned service invocation result.- Specified by:
getSourcein interfaceServiceOutputParameter- Returns:
- the optional path for the result value
-
setSource
public void setSource(String source)
-
getErrorParameter
public Boolean getErrorParameter()
Description copied from interface:ServiceOutputParameterReturns whether this ServiceOutputParameter is only used for handling errors- Specified by:
getErrorParameterin interfaceServiceOutputParameter- Returns:
- true, if it is an error output parameter
-
setErrorParameter
public void setErrorParameter(Boolean errorParameter)
-
-