Class BaseServiceOperation
- java.lang.Object
-
- com.flowable.serviceregistry.engine.impl.repository.BaseServiceOperation
-
- All Implemented Interfaces:
ServiceOperation
public class BaseServiceOperation extends Object implements ServiceOperation
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.JsonNodeconfigprotected Stringdescriptionprotected List<ServiceInputParameter>inputParametersprotected Stringkeyprotected Stringnamestatic StringOUTPUT_TYPE_ARRAYstatic StringOUTPUT_TYPE_OBJECTprotected List<ServiceOutputParameter>outputParametersprotected StringoutputTypeprotected Stringtype
-
Constructor Summary
Constructors Constructor Description BaseServiceOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodegetConfig()StringgetDescription()List<ServiceInputParameter>getInputParameters()StringgetKey()StringgetName()List<ServiceOutputParameter>getOutputParameters()StringgetOutputType()An optional output type for the operation, which can be either an 'object' or an 'array'.StringgetType()voidsetConfig(com.fasterxml.jackson.databind.JsonNode config)voidsetDescription(String description)voidsetInputParameters(List<ServiceInputParameter> inputParameters)voidsetKey(String key)voidsetName(String name)voidsetOutputParameters(List<ServiceOutputParameter> outputParameters)voidsetOutputType(String outputType)voidsetType(String type)
-
-
-
Field Detail
-
OUTPUT_TYPE_OBJECT
public static final String OUTPUT_TYPE_OBJECT
- See Also:
- Constant Field Values
-
OUTPUT_TYPE_ARRAY
public static final String OUTPUT_TYPE_ARRAY
- See Also:
- Constant Field Values
-
key
protected String key
-
name
protected String name
-
type
protected String type
-
description
protected String description
-
outputType
protected String outputType
-
config
protected com.fasterxml.jackson.databind.JsonNode config
-
inputParameters
protected List<ServiceInputParameter> inputParameters
-
outputParameters
protected List<ServiceOutputParameter> outputParameters
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceServiceOperation
-
setKey
public void setKey(String key)
-
getName
public String getName()
- Specified by:
getNamein interfaceServiceOperation
-
setName
public void setName(String name)
-
getType
public String getType()
- Specified by:
getTypein interfaceServiceOperation- See Also:
ServiceOperationType
-
setType
public void setType(String type)
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceServiceOperation
-
setDescription
public void setDescription(String description)
-
getOutputType
public String getOutputType()
Description copied from interface:ServiceOperationAn optional output type for the operation, which can be either an 'object' or an 'array'. If set, the caller of the service can be sure that specified type will be returned. For example, when 'array' is set, the runtime will wrap a non-array response into an array. If not set (default), the service response is determined based on the type the service returns at runtime.- Specified by:
getOutputTypein interfaceServiceOperation- Returns:
- the configured output type for the operation. If left empty, the default behaviour is used to return based on the service implementation response.
-
setOutputType
public void setOutputType(String outputType)
-
getConfig
public com.fasterxml.jackson.databind.JsonNode getConfig()
- Specified by:
getConfigin interfaceServiceOperation
-
setConfig
public void setConfig(com.fasterxml.jackson.databind.JsonNode config)
-
getInputParameters
public List<ServiceInputParameter> getInputParameters()
- Specified by:
getInputParametersin interfaceServiceOperation
-
setInputParameters
public void setInputParameters(List<ServiceInputParameter> inputParameters)
-
getOutputParameters
public List<ServiceOutputParameter> getOutputParameters()
- Specified by:
getOutputParametersin interfaceServiceOperation
-
setOutputParameters
public void setOutputParameters(List<ServiceOutputParameter> outputParameters)
-
-