Get rid of rule node configurationBytes
This commit is contained in:
parent
78d3a97dd0
commit
1ec2450c78
@ -62,9 +62,7 @@ public class RuleNode extends BaseDataWithAdditionalInfo<RuleNodeId> implements
|
|||||||
@Schema(description = "Version of rule node configuration. ", example = "0")
|
@Schema(description = "Version of rule node configuration. ", example = "0")
|
||||||
private int configurationVersion;
|
private int configurationVersion;
|
||||||
@Schema(description = "JSON with the rule node configuration. Structure depends on the rule node implementation.", implementation = JsonNode.class)
|
@Schema(description = "JSON with the rule node configuration. Structure depends on the rule node implementation.", implementation = JsonNode.class)
|
||||||
private transient JsonNode configuration;
|
private JsonNode configuration;
|
||||||
@JsonIgnore
|
|
||||||
private byte[] configurationBytes;
|
|
||||||
|
|
||||||
private RuleNodeId externalId;
|
private RuleNodeId externalId;
|
||||||
|
|
||||||
@ -92,14 +90,6 @@ public class RuleNode extends BaseDataWithAdditionalInfo<RuleNodeId> implements
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JsonNode getConfiguration() {
|
|
||||||
return BaseDataWithAdditionalInfo.getJson(() -> configuration, () -> configurationBytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setConfiguration(JsonNode data) {
|
|
||||||
setJson(data, json -> this.configuration = json, bytes -> this.configurationBytes = bytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Schema(description = "JSON object with the Rule Node Id. " +
|
@Schema(description = "JSON object with the Rule Node Id. " +
|
||||||
"Specify this field to update the Rule Node. " +
|
"Specify this field to update the Rule Node. " +
|
||||||
"Referencing non-existing Rule Node Id will cause error. " +
|
"Referencing non-existing Rule Node Id will cause error. " +
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user