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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected NestedOutputMappingprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
description, displayName, exampleData, mappingName, name, type, typeReferenceFields inherited from interface com.flowable.serviceregistry.api.repository.ServiceOutputParameter
APPLY_MAPPING_CONFIG_ALWAYS, APPLY_MAPPING_CONFIG_ERROR, APPLY_MAPPING_CONFIG_SUCCESS, 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 -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the configuration that determines when to apply output parameter mapping.Returns the configuration on how to handle a missing value returned by the service invocation by this parameter.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).Certain output parameters have a 'nested' definition (e.g.Returns the configuration on how to handle a null value returned by the service invocation by this parameter.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).getPath()Returns the optional path where the parameter value will be retrieved out of the returned service invocation result.Returns the optional source where the parameter value will be retrieved from of the returned service invocation result.voidsetApplyMappingConfig(String applyMappingConfig) voidsetMissingValueConfig(String missingValueConfig) voidsetMissingValueDefault(String missingValueDefault) voidsetNestedOutputMapping(NestedOutputMapping nestedOutputMapping) voidsetNullValueConfig(String nullValueConfig) voidsetNullValueDefault(String nullValueDefault) voidvoidMethods inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
getDescription, getDisplayName, getExampleData, getMappingName, getName, getType, getTypeReference, setDescription, setDisplayName, setExampleData, setMappingName, setName, setType, setTypeReferenceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.flowable.serviceregistry.api.repository.ServiceParameter
getDescription, getDisplayName, getExampleData, getMappingName, getName, getType, getTypeReference
-
Field Details
-
path
-
nullValueConfig
-
missingValueConfig
-
nullValueDefault
-
missingValueDefault
-
source
-
applyMappingConfig
-
nestedOutputMapping
-
-
Constructor Details
-
BaseServiceOutputParameter
public BaseServiceOutputParameter()
-
-
Method Details
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
getApplyMappingConfig
Description copied from interface:ServiceOutputParameterRetrieves the configuration that determines when to apply output parameter mapping. The mapping can be applied under various conditions: Only for successful responses, only for error responses or always.- Specified by:
getApplyMappingConfigin interfaceServiceOutputParameter- Returns:
- The configuration for mapping application, which can be one of the following:
ServiceOutputParameter.APPLY_MAPPING_CONFIG_ALWAYS- Mapping is always appliedServiceOutputParameter.APPLY_MAPPING_CONFIG_SUCCESS- Mapping is applied only for success responsesServiceOutputParameter.APPLY_MAPPING_CONFIG_ERROR- Mapping is applied only for error responses
-
setApplyMappingConfig
-