Skip to content

Dynamic Updates to SolutionTemplates #2241

@ysknkd

Description

@ysknkd

SolutionTemplates are very useful, but the current requirement for a deployment when adding a new template introduces a lead time from when a user requests an addition to when it is deployed. I was wondering if there are any plans or considerations for enabling Solution Templates to be dynamically updated in the future. Do you have any plans for this?

void loadSolutionTemplates() {
// get the configured path for the list of service templates
String solutionTemplatesFname = System.getProperty(ZMSConsts.ZMS_PROP_SOLUTION_TEMPLATE_FNAME,
getRootDir() + "/conf/zms_server/solution_templates.json");
Path path = Paths.get(solutionTemplatesFname);
try {
serverSolutionTemplates = JSON.fromBytes(Files.readAllBytes(path), SolutionTemplates.class);
} catch (IOException ex) {
LOG.error("Unable to parse solution templates file {}: {}",
solutionTemplatesFname, ex.getMessage());
}
if (serverSolutionTemplates == null) {
LOG.error("Generating empty solution template list...");
serverSolutionTemplates = new SolutionTemplates();
serverSolutionTemplates.setTemplates(new HashMap<>());
serverSolutionTemplateNames = Collections.emptyList();
} else {
serverSolutionTemplateNames = new ArrayList<>(serverSolutionTemplates.names());
Collections.sort(serverSolutionTemplateNames);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions