Skip to content

Commit 97a27cd

Browse files
committed
service task params fix
1 parent 7994afd commit 97a27cd

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

docker/all-in-one/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ cd $BASE_PWD
3737

3838
echo "Building Docker image for version: $FLOWABLE_VERSION"
3939

40-
docker build -t adito/flowable:2022.0.3.1 .
40+
docker build -t adito/flowable:2022.0.3.2 .
137 Bytes
Binary file not shown.
-151 Bytes
Binary file not shown.

docker/base-image/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ cd $BASE_PWD
3737

3838
echo "Building Docker image for version: $FLOWABLE_VERSION"
3939

40-
docker build -t adito/flowable:2022.0.3.1 .
40+
docker build -t adito/flowable:2022.0.3.2 .

modules/adito-data-service/src/main/java/org/flowable/aditoDataService/RestClientService.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.flowable.aditoDataService;
22

3+
import com.google.gson.Gson;
34
import io.netty.handler.ssl.SslContext;
45
import io.netty.handler.ssl.SslContextBuilder;
56
import io.netty.handler.ssl.util.InsecureTrustManagerFactory;
@@ -101,19 +102,21 @@ private void loadEndpointConfigFromSpring(String springAditoBaseUrl, String spri
101102

102103
public String get(String url, MultiValueMap<String, String> queryParams, Map<String,String> headers)
103104
{
104-
105+
WebClient.RequestHeadersUriSpec<?> spec = getWebClient().get();
105106
if (queryParams == null || queryParams.isEmpty())
106-
return get(url);
107-
WebClient.RequestHeadersSpec<?> spec = getWebClient().get().uri(uriBuilder -> uriBuilder.path(url).queryParams(queryParams).build());
107+
spec.uri(url);
108+
else
109+
spec.uri(uriBuilder -> uriBuilder.path(url).queryParams(queryParams).build());
110+
108111
if (headers != null)
109112
headers.forEach(spec::header);
113+
logger.info("headers: " + new Gson().toJson(headers));
110114
return spec.retrieve().bodyToMono(String.class).block();
111115
}
112116

113117
protected String get(String url)
114118
{
115-
WebClient.RequestHeadersSpec<?> spec = getWebClient().get().uri(url);
116-
return spec.retrieve().bodyToMono(String.class).block();
119+
return get(url, null, null);
117120
}
118121

119122
}

0 commit comments

Comments
 (0)