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.JsonNode
config
protected String
description
protected List<ServiceInputParameter>
inputParameters
protected String
key
protected String
name
static String
OUTPUT_TYPE_ARRAY
static String
OUTPUT_TYPE_OBJECT
protected List<ServiceOutputParameter>
outputParameters
protected String
outputType
protected String
type
-
Constructor Summary
Constructors Constructor Description BaseServiceOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
getConfig()
String
getDescription()
List<ServiceInputParameter>
getInputParameters()
String
getKey()
String
getName()
List<ServiceOutputParameter>
getOutputParameters()
String
getOutputType()
An optional output type for the operation, which can be either an 'object' or an 'array'.String
getType()
void
setConfig(com.fasterxml.jackson.databind.JsonNode config)
void
setDescription(String description)
void
setInputParameters(List<ServiceInputParameter> inputParameters)
void
setKey(String key)
void
setName(String name)
void
setOutputParameters(List<ServiceOutputParameter> outputParameters)
void
setOutputType(String outputType)
void
setType(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:
getKey
in interfaceServiceOperation
-
setKey
public void setKey(String key)
-
getName
public String getName()
- Specified by:
getName
in interfaceServiceOperation
-
setName
public void setName(String name)
-
getType
public String getType()
- Specified by:
getType
in interfaceServiceOperation
- See Also:
ServiceOperationType
-
setType
public void setType(String type)
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceServiceOperation
-
setDescription
public void setDescription(String description)
-
getOutputType
public String getOutputType()
Description copied from interface:ServiceOperation
An 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:
getOutputType
in 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:
getConfig
in interfaceServiceOperation
-
setConfig
public void setConfig(com.fasterxml.jackson.databind.JsonNode config)
-
getInputParameters
public List<ServiceInputParameter> getInputParameters()
- Specified by:
getInputParameters
in interfaceServiceOperation
-
setInputParameters
public void setInputParameters(List<ServiceInputParameter> inputParameters)
-
getOutputParameters
public List<ServiceOutputParameter> getOutputParameters()
- Specified by:
getOutputParameters
in interfaceServiceOperation
-
setOutputParameters
public void setOutputParameters(List<ServiceOutputParameter> outputParameters)
-
-