Skip to content

Commit 7611b39

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 7611b39

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public Constants deserialize(JsonParser jp, DeserializationContext ctxt) throws
6262
constantsDefinition = node;
6363
} else {
6464
String constantsFileDef = node.asText();
65+
constants.setRefValue(constantsFileDef);
6566
String constantsFileSrc = Utils.getResourceFileAsString(constantsFileDef);
6667
JsonNode constantsRefNode;
6768
ObjectMapper jsonWriter = new ObjectMapper();

0 commit comments

Comments
 (0)