Uploaded image for project: 'Fidelis AI'
  1. Fidelis AI
  2. FAI-487

Score Cards: Refactor (un)marshaller

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major

    Description

      The vision within BSIG is to have a single source code base for marshallers for a domain. The single source code being compiled to execute in different runtimes; i.e. JRE, GWT or Type/JavaScript.

      The Score Card editor currently has a(n incomplete) bespoke (un)marshaller that only handles a small subset of the Score Card model, yet alone PMML.

      In order to support features that have been identified as being required in the Score Card editor we need to be able to handle (un)marshalling much more of the complete model. Work to improve the marshaller is therefore of paramount importance to the new features and hence a priority.

      This JIRA represents research into re-using the work started by dtikhomi@redhat.com whereby a JAXB/JSON annotated Java model can have (un)marshallers generated that target both JRE and GWT. We would then need to work collaboratively with others to complete the re-use in TypeScript.

      Considerations:-

      • JAXB annotations lead to the creation of Java POJOs during unmarshalling; that would then need to be exposed to TypeScript. It may be that we need to compile the marshallers with J2CL to better expose to TypeScript vs GWT compilation. We would have "Java" object creation and manipulation in TypeScript.
      • JSON annotations lead to (un)marshallers emitting JSON. This may be a better fit for re-use in TypeScript.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              manstis@redhat.com Michael Anstis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: