Class ServiceInvocationResultResponseImpl
java.lang.Object
com.flowable.serviceregistry.engine.impl.runtime.ServiceInvocationResultResponseImpl
- All Implemented Interfaces:
ServiceInvocationResultResponse
public class ServiceInvocationResultResponseImpl
extends Object
implements ServiceInvocationResultResponse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ServiceInvocationResultprotected longprotected ServiceInvocationResult -
Constructor Summary
ConstructorsConstructorDescriptionServiceInvocationResultResponseImpl(ServiceInvocationResult unprocessedResult, long totalCount, Map<String, Object> metadata) ServiceInvocationResultResponseImpl(ServiceInvocationResultResponse originalResultResponse, ServiceInvocationResult processedResult) Constructor used after processing the raw response of the service and creating a new instance representing the processed result.ServiceInvocationResultResponseImpl(ServiceInvocationResult unprocessedResult, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionThe type of the returned result response.longReturns the total count, when only return a subset of the results.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.flowable.serviceregistry.api.runtime.ServiceInvocationResultResponse
getValue, hasValue
-
Field Details
-
unprocessedResult
-
totalCount
protected long totalCount -
metadata
-
processedResult
-
-
Constructor Details
-
ServiceInvocationResultResponseImpl
public ServiceInvocationResultResponseImpl(ServiceInvocationResult unprocessedResult, Map<String, Object> metadata) -
ServiceInvocationResultResponseImpl
public ServiceInvocationResultResponseImpl(ServiceInvocationResult unprocessedResult, long totalCount, Map<String, Object> metadata) -
ServiceInvocationResultResponseImpl
public ServiceInvocationResultResponseImpl(ServiceInvocationResultResponse originalResultResponse, ServiceInvocationResult processedResult) Constructor used after processing the raw response of the service and creating a new instance representing the processed result.
-
-
Method Details
-
getUnprocessedResult
-
getProcessedResult
- Specified by:
getProcessedResultin interfaceServiceInvocationResultResponse
-
getResultType
Description copied from interface:ServiceInvocationResultResponseThe type of the returned result response.- Specified by:
getResultTypein interfaceServiceInvocationResultResponse
-
getTotalCount
public long getTotalCount()Description copied from interface:ServiceInvocationResultResponseReturns the total count, when only return a subset of the results. Will only be set if: - The service invoker supports it - The operation supports it, e.g. search operations might do it, but a create, update, delete, ... operation wouldn't. In those cases, the returned value will be a negative number.- Specified by:
getTotalCountin interfaceServiceInvocationResultResponse
-
getMetadata
- Specified by:
getMetadatain interfaceServiceInvocationResultResponse
-