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
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected NestedOutputMapping
protected String
protected String
protected String
protected String
Fields inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
description, displayName, exampleData, mappingName, name, type
Fields 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
-
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.void
setApplyMappingConfig
(String applyMappingConfig) void
setMissingValueConfig
(String missingValueConfig) void
setMissingValueDefault
(String missingValueDefault) void
setNestedOutputMapping
(NestedOutputMapping nestedOutputMapping) void
setNullValueConfig
(String nullValueConfig) void
setNullValueDefault
(String nullValueDefault) void
void
Methods inherited from class com.flowable.serviceregistry.engine.impl.repository.BaseServiceParameter
getDescription, getDisplayName, getExampleData, getMappingName, getName, getType, setDescription, setDisplayName, setExampleData, 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, getExampleData, getMappingName, getName, getType
-
Field Details
-
path
-
nullValueConfig
-
missingValueConfig
-
nullValueDefault
-
missingValueDefault
-
source
-
applyMappingConfig
-
nestedOutputMapping
-
-
Constructor Details
-
BaseServiceOutputParameter
public BaseServiceOutputParameter()
-
-
Method Details
-
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
-
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
-
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
-
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
-
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
-
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
-
getSource
Description copied from interface:ServiceOutputParameter
Returns the optional source where the parameter value will be retrieved from of the returned service invocation result.- Specified by:
getSource
in interfaceServiceOutputParameter
- Returns:
- the optional path for the result value
-
setSource
-
getApplyMappingConfig
Description copied from interface:ServiceOutputParameter
Retrieves 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:
getApplyMappingConfig
in 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
-