Skip to content

Commit 5073fa4

Browse files
committed
Constanst.setRefValue() was always null
Setting the ref value when constant is an uri to allow implementations to try load them in case default loading fails Signed-off-by: Francisco Javier Tirado Sarti <[email protected]>
1 parent 96cc7a6 commit 5073fa4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/src/main/java/io/serverlessworkflow/api/deserializers/ConstantsDeserializer.java

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public Constants deserialize(JsonParser jp, DeserializationContext ctxt) throws
6363
} else {
6464
String constantsFileDef = node.asText();
6565
String constantsFileSrc = Utils.getResourceFileAsString(constantsFileDef);
66+
constants.setConstantsDef(constantsDefinition);
6667
JsonNode constantsRefNode;
6768
ObjectMapper jsonWriter = new ObjectMapper();
6869
if (constantsFileSrc != null && constantsFileSrc.trim().length() > 0) {

0 commit comments

Comments
 (0)