Class InvokeServiceCmd.ServiceInvocationResultResponseImpl
- java.lang.Object
-
- com.flowable.serviceregistry.engine.impl.cmd.InvokeServiceCmd.ServiceInvocationResultResponseImpl
-
- All Implemented Interfaces:
ServiceInvocationResultResponse
- Enclosing class:
- InvokeServiceCmd<T>
public static class InvokeServiceCmd.ServiceInvocationResultResponseImpl extends Object implements ServiceInvocationResultResponse
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceInvocationResponse
invocationResponse
protected Object
responseLookupId
protected Map<String,Object>
resultMap
protected ResultType
resultType
-
Constructor Summary
Constructors Constructor Description ServiceInvocationResultResponseImpl(Object responseLookupId, Map<String,Object> resultMap, ServiceInvocationResponse invocationResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getResponseLookupId()
Object
getResult()
The result response.ResultType
getResultType()
The type of the returned result response.ServiceInvocationResponse
getServiceInvocationResponse()
The service invocation response returned by the specific Service Invoker.Object
getValue(String name)
The the value for the given name.boolean
hasValue(String name)
Whether the result response has a value with the given name.-
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.runtime.ServiceInvocationResultResponse
getResponseObject
-
-
-
-
Field Detail
-
responseLookupId
protected Object responseLookupId
-
invocationResponse
protected ServiceInvocationResponse invocationResponse
-
resultType
protected ResultType resultType
-
-
Constructor Detail
-
ServiceInvocationResultResponseImpl
public ServiceInvocationResultResponseImpl(Object responseLookupId, Map<String,Object> resultMap, ServiceInvocationResponse invocationResponse)
-
-
Method Detail
-
getResponseLookupId
public Object getResponseLookupId()
- Specified by:
getResponseLookupId
in interfaceServiceInvocationResultResponse
-
hasValue
public boolean hasValue(String name)
Description copied from interface:ServiceInvocationResultResponse
Whether the result response has a value with the given name. The value can also benull
.- Specified by:
hasValue
in interfaceServiceInvocationResultResponse
- Parameters:
name
- the name of the value- Returns:
true
if the result has such a value,false
otherwise
-
getValue
public Object getValue(String name)
Description copied from interface:ServiceInvocationResultResponse
The the value for the given name.null
does not mean that there is no value, it can mean that the value that was present isnull
. UseServiceInvocationResultResponse.hasValue(String)
to check if the result has a certain value or not.- Specified by:
getValue
in interfaceServiceInvocationResultResponse
- Parameters:
name
- the name of the value- Returns:
- the value
-
getResultType
public ResultType getResultType()
Description copied from interface:ServiceInvocationResultResponse
The type of the returned result response.- Specified by:
getResultType
in interfaceServiceInvocationResultResponse
-
getResult
public Object getResult()
Description copied from interface:ServiceInvocationResultResponse
The result response. Mostly needed when accessing the result type.- Specified by:
getResult
in interfaceServiceInvocationResultResponse
-
getServiceInvocationResponse
public ServiceInvocationResponse getServiceInvocationResponse()
Description copied from interface:ServiceInvocationResultResponse
The service invocation response returned by the specific Service Invoker. This is a low level response.- Specified by:
getServiceInvocationResponse
in interfaceServiceInvocationResultResponse
-
-