update(REQ-2516) - 调整 ComplexInvokeClient 的响应处理逻辑
This commit is contained in:
parent
89e390f102
commit
d278f3903c
@ -1,5 +1,6 @@
|
||||
package cn.axzo.workflow.starter.feign.ext;
|
||||
|
||||
import cn.axzo.workflow.common.model.response.BpmPageResult;
|
||||
import cn.axzo.workflow.starter.common.exception.WorkflowEngineStarterException;
|
||||
import cn.axzo.workflow.starter.common.exception.WorkflowRpcInvokeException;
|
||||
import cn.azxo.framework.common.model.CommonResponse;
|
||||
@ -64,7 +65,7 @@ final class WorkflowEngineStarterDecoder implements Decoder {
|
||||
*/
|
||||
Object convert(Response response, Type type) throws IOException {
|
||||
ParameterizedTypeImpl wrappedType;
|
||||
List<Class<?>> cls = Lists.newArrayList(Collection.class, List.class, Map.class);
|
||||
List<Class<?>> cls = Lists.newArrayList(BpmPageResult.class, Collection.class, List.class, Map.class);
|
||||
if (type instanceof ParameterizedType && !cls.contains(((ParameterizedType) type).getRawType())) {
|
||||
wrappedType = (ParameterizedTypeImpl) type;
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user