Skip to content

Commit

Permalink
Fix ontology based select lists
Browse files Browse the repository at this point in the history
  • Loading branch information
beepsoft committed Nov 6, 2023
1 parent b1cbbbe commit b85d37b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ public class CedarTemplateToDescriboProfileConverter {
private ArpServiceBean arpService;


public CedarTemplateToDescriboProfileConverter(String language) {
public CedarTemplateToDescriboProfileConverter(String language, ArpServiceBean arpService) {
if (language == null) {
this.language = "en";
}
else {
this.language = language;
}
this.arpService = arpService;
}

// TODO: Pass override/inherit values for the classes, maybe store the profile in a seperated file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ public String convertTemplateToDescriboProfile(String cedarTemplate, String lang
String conversionResult;

try {
CedarTemplateToDescriboProfileConverter cedarTemplateToDescriboProfileConverter = new CedarTemplateToDescriboProfileConverter(language);
CedarTemplateToDescriboProfileConverter cedarTemplateToDescriboProfileConverter = new CedarTemplateToDescriboProfileConverter(language, this);
conversionResult = cedarTemplateToDescriboProfileConverter.processCedarTemplate(cedarTemplate);
} catch (Exception exception) {
throw new Exception("An error occurred during converting the template", exception);
Expand Down

0 comments on commit b85d37b

Please sign in to comment.